This patch was borrowed from Debian's package: https://salsa.debian.org/multimedia-team/ableton-link/-/blob/9c65141bf5bba0872811c179af77ac95770352cc/debian/patches/DEBIAN_system_libraries.patch Description: Drop dependencies on included 3rd-party libs upstream includes git-submodules for Catch and ASIO (not found in the tarball). on Debian we want to use the system provided libraries. Author: IOhannes m zmölnig Origin: Debian Forwarded: not-needed Last-Update: 2016-10-26 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- ableton-link.orig/cmake_include/AsioStandaloneConfig.cmake +++ ableton-link/cmake_include/AsioStandaloneConfig.cmake @@ -1,6 +1,2 @@ add_library(AsioStandalone::AsioStandalone IMPORTED INTERFACE) -set_property(TARGET AsioStandalone::AsioStandalone APPEND PROPERTY - INTERFACE_INCLUDE_DIRECTORIES - ${CMAKE_CURRENT_LIST_DIR}/../modules/asio-standalone/asio/include -) --- ableton-link.orig/cmake_include/CatchConfig.cmake +++ ableton-link/cmake_include/CatchConfig.cmake @@ -1,6 +1,2 @@ add_library(Catch::Catch IMPORTED INTERFACE) -set_property(TARGET Catch::Catch APPEND PROPERTY - INTERFACE_INCLUDE_DIRECTORIES - ${CMAKE_SOURCE_DIR}/third_party/catch -) util.cc?id=692c75eaa6c87c73ad2e20cbded6c32b9ae6b8a2'>treecommitdiff
path: root/nix/libutil/util.cc
AgeCommit message (Expand)Author
2020-12-08daemon: 'Agent' constructor takes a list of environment variables....* nix/libutil/util.hh (struct Agent)[Agent]: Add 'env' parameter. * nix/libutil/util.cc (Agent::Agent): Honor it. Ludovic Courtès
2020-09-14daemon: Move 'Agent' to libutil....* nix/libstore/build.cc (DerivationGoal::tryBuildHook): Add "offload" to 'args' and pass settings.guixProgram as the first argument to Agent::Agent. (pathNullDevice, commonChildInit, Agent, Agent::Agent) (Agent::~Agent): Move to... * nix/libutil/util.cc: ... here. * nix/libutil/util.hh (struct Agent, commonChildInit): New declarations. Ludovic Courtès
2020-03-26daemon: Avoid kill -1 bug on the Hurd....This allows for native builds on the Hurd, doing sudo ./pre-inst-env guix-daemon --disable-chroot --build-users-group=guixbuild & ./pre-inst-env guix build hello * nix/libutil/util.cc (killUser)[__GNU__]: Avoid kill -1 bug; kill only current process and ignore SIGKILL status in parent. Co-authored-by: Jan Nieuwenhuizen <janneke@gnu.org> Manolis Ragkousis
2020-01-12daemon: Account for deleted store files when deduplication is on....Previously, a store item that is a regular file would not be accounted for in the 'bytesFreed' value computed by 'deletePath' because its 'st_nlink' count would always be >= 2. This commit fixes that. * nix/libutil/util.hh (deletePath): Add optional 'linkThreshold' argument. * nix/libutil/util.cc (_deletePath): Add 'linkThreshold' argument and honor it. Pass it down in recursive call. (deletePath): Add 'linkThreshold' and honor it. * nix/libstore/gc.cc (LocalStore::deleteGarbage): Pass 'linkThreshold' argument to 'deletePath', with a value of 2 when PATH is a store item and deduplication is on. Ludovic Courtès
2019-11-29daemon: 'pathExists' uses 'statx' when available....* nix/libutil/util.cc (pathExists) [HAVE_STATX]: New code. Ludovic Courtès
2019-11-27daemon: 'deletePath' uses 'statx' when available....* nix/libutil/util.cc (_deletePath) [HAVE_STATX]: Use 'statx'. Ludovic Courtès
2019-08-30daemon: Don't reply on 'st_blocks'....Ported by Ludovic Courtès <ludo@gnu.org> from <https://github.com/NixOS/nix/commit/a2c4fcd5e9782dc8d2998773380c7171ee53b813>. * nix/libstore/gc.cc (LocalStore::removeUnusedLinks): Use 'st.st_size' instead of 'st.st_blocks * 512'. * nix/libutil/util.cc (_deletePath): Likewise. Eelco Dolstra
2017-08-18nix: Remove unused function....* nix/libutil/util.hh: * nix/libutil/util.cc (decodeOctalEscaped): Remove unused and buggy function. Andy Wingo