Skip to content

Commit

Permalink
treewide: Stop setting CMAKE_SKIP_BUILD_RPATH=OFF
Browse files Browse the repository at this point in the history
This is now the new default and thus doesn't need to be set manually
anymore.
  • Loading branch information
knedlsepp authored and Artturin committed Jul 4, 2022
1 parent f7414e2 commit 1ca04aa
Show file tree
Hide file tree
Showing 36 changed files with 9 additions and 58 deletions.
1 change: 0 additions & 1 deletion pkgs/applications/gis/qgis/unwrapped-ltr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ in mkDerivation rec {
'';

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DWITH_3D=True"
"-DWITH_PDAL=TRUE"
"-DPYQT5_SIP_DIR=${py.pkgs.pyqt5}/${py.pkgs.python.sitePackages}/PyQt5/bindings"
Expand Down
1 change: 0 additions & 1 deletion pkgs/applications/gis/qgis/unwrapped.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ in mkDerivation rec {
'';

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DWITH_3D=True"
"-DWITH_PDAL=TRUE"
"-DPYQT5_SIP_DIR=${py.pkgs.pyqt5}/${py.pkgs.python.sitePackages}/PyQt5/bindings"
Expand Down
4 changes: 0 additions & 4 deletions pkgs/applications/kde/dolphin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,4 @@ mkDerivation {
wayland qtwayland
];
outputs = [ "out" "dev" ];
# We need the RPATH for linking, because the `libkdeinit5_dolphin.so` links
# private against its dependencies and without the correct RPATH, these
# dependencies are not found.
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
}
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ stdenv.mkDerivation rec {
"-DCMAKE_DISABLE_FIND_PACKAGE_Mosek=ON"
"-DCMAKE_DISABLE_FIND_PACKAGE_TFLogger=ON"
"-DCMAKE_DISABLE_FIND_PACKAGE_ViennaCL=ON"
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DCMAKE_CTEST_ARGUMENTS='--exclude-regex;TrainedModelSerialization'" # Sporadic segfault
"-DENABLE_TESTING=${enableIf doCheck}"
"-DDISABLE_META_INTEGRATION_TESTS=ON"
Expand Down
1 change: 0 additions & 1 deletion pkgs/desktops/gnome/core/evolution-data-server/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ stdenv.mkDerivation rec {
"-DENABLE_UOA=OFF"
"-DENABLE_VALA_BINDINGS=ON"
"-DENABLE_INTROSPECTION=ON"
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DINCLUDE_INSTALL_DIR=${placeholder "dev"}/include"
"-DWITH_PHONENUMBER=ON"
"-DWITH_GWEATHER4=ON"
Expand Down
1 change: 0 additions & 1 deletion pkgs/desktops/plasma-5/kwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ mkDerivation {
CXXFLAGS = [
''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"''
];
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
postInstall = ''
# Some package(s) refer to these service types by the wrong name.
# I would prefer to patch those packages, but I cannot find them!
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/arrow-cpp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (!enableShared) [
"-DARROW_TEST_LINKAGE=static"
] ++ lib.optionals stdenv.isDarwin [
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # needed for tests
"-DCMAKE_INSTALL_RPATH=@loader_path/../lib" # needed for tools executables
] ++ lib.optional (!stdenv.isx86_64) "-DARROW_USE_SIMD=OFF"
++ lib.optional enableS3 "-DAWSSDK_CORE_HEADER_FILE=${aws-sdk-cpp}/include/aws/core/Aws.h";
Expand Down
3 changes: 0 additions & 3 deletions pkgs/development/libraries/audio/libkeyfinder/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ stdenv.mkDerivation rec {
sha256 = "sha256-7w/Wc9ncLinbnM2q3yv5DBtFoJFAM2e9xAUTsqvE9mg=";
};

# needed for finding libkeyfinder.so to link it into keyfinder-tests executable
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];

nativeBuildInputs = [ cmake ];

buildInputs = [ fftw ];
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/aws-c-auth/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ stdenv.mkDerivation rec {
];

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DBUILD_SHARED_LIBS=ON"
];

Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/aws-c-common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ stdenv.mkDerivation rec {

cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
] ++ lib.optionals stdenv.hostPlatform.isRiscV [
"-DCMAKE_C_FLAGS=-fasynchronous-unwind-tables"
];
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/aws-c-compression/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ stdenv.mkDerivation rec {
];

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DBUILD_SHARED_LIBS=ON"
];

Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/aws-c-http/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ stdenv.mkDerivation rec {
];

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DBUILD_SHARED_LIBS=ON"
];

Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/aws-c-mqtt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ stdenv.mkDerivation rec {
];

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DBUILD_SHARED_LIBS=ON"
];

Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/aws-c-s3/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ stdenv.mkDerivation rec {
];

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DBUILD_SHARED_LIBS=ON"
];

Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/aws-c-sdkutils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ stdenv.mkDerivation rec {
];

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DBUILD_SHARED_LIBS=ON"
];

Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/aws-crt-cpp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ stdenv.mkDerivation rec {

cmakeFlags = [
"-DBUILD_DEPS=OFF"
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DBUILD_SHARED_LIBS=ON"
];

Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/aws-sdk-cpp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ stdenv.mkDerivation rec {

cmakeFlags = [
"-DBUILD_DEPS=OFF"
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
] ++ lib.optional (!customMemoryManagement) "-DCUSTOM_MEMORY_MANAGEMENT=0"
++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"-DENABLE_TESTING=OFF"
Expand Down
2 changes: 0 additions & 2 deletions pkgs/development/libraries/crc32c/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ stdenv.mkDerivation rec {
"-DCRC32C_BUILD_BENCHMARKS=0"
"-DCRC32C_USE_GLOG=0"
"-DBUILD_SHARED_LIBS=${if staticOnly then "0" else "1"}"
] ++ lib.optionals stdenv.isDarwin [
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
];

doCheck = false;
Expand Down
7 changes: 6 additions & 1 deletion pkgs/development/libraries/fcppt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ boost catch2 metal ];

cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=false" "-DENABLE_BOOST=true" "-DENABLE_EXAMPLES=true" "-DENABLE_CATCH=true" "-DENABLE_TEST=true" ];
cmakeFlags = [
"-DENABLE_BOOST=true"
"-DENABLE_EXAMPLES=true"
"-DENABLE_CATCH=true"
"-DENABLE_TEST=true"
];

meta = with lib; {
description = "Freundlich's C++ toolkit";
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/fmt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ let

cmakeFlags = [
"-DBUILD_SHARED_LIBS=${if enableShared then "ON" else "OFF"}"
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
];

doCheck = true;
Expand Down
3 changes: 0 additions & 3 deletions pkgs/development/libraries/glog/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ stdenv.mkDerivation rec {

cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
# Mak CMake place RPATHs such that tests will find the built libraries.
# See https://github.com/NixOS/nixpkgs/pull/144561#discussion_r742468811 and https://github.com/NixOS/nixpkgs/pull/108496
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
];

# TODO: Re-enable Darwin tests once we're on a release that has https://github.com/google/glog/issues/709#issuecomment-960381653 fixed
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/grpc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ stdenv.mkDerivation rec {
"-DgRPC_PROTOBUF_PROVIDER=package"
"-DgRPC_ABSL_PROVIDER=package"
"-DBUILD_SHARED_LIBS=ON"
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-D_gRPC_PROTOBUF_PROTOC_EXECUTABLE=${buildPackages.protobuf}/bin/protoc"
] ++ lib.optionals ((stdenv.hostPlatform.useLLVM or false) && lib.versionOlder stdenv.cc.cc.version "11.0") [
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/leveldb/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ stdenv.mkDerivation rec {
# NOTE: disabling tests due to gtest issue
cmakeFlags = [
"-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}"
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DLEVELDB_BUILD_TESTS=OFF"
"-DLEVELDB_BUILD_BENCHMARKS=OFF"
];
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/lib2geom/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ stdenv.mkDerivation rec {
];

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
"-D2GEOM_BUILD_SHARED=ON"
];

Expand Down
2 changes: 0 additions & 2 deletions pkgs/development/libraries/libtiff/aarch64-darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ stdenv.mkDerivation rec {
sha256 = "1jrkjv0xya9radddn8idxvs2gqzp3l2b1s8knlizmn7ad3jq817b";
};

cmakeFlags = lib.optional stdenv.isDarwin "-DCMAKE_SKIP_BUILD_RPATH=OFF";

# FreeImage needs this patch
patches = [ ./headers-cmake.patch ];

Expand Down
4 changes: 0 additions & 4 deletions pkgs/development/libraries/libuchardet/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ cmake ];

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
];

doCheck = !stdenv.isi686; # tests fail on i686

meta = with lib; {
Expand Down
4 changes: 0 additions & 4 deletions pkgs/development/libraries/libversion/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ cmake ];

cmakeFlags = lib.optional stdenv.isDarwin [
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # needed for tests
];

preCheck = ''
export LD_LIBRARY_PATH=/build/source/build/libversion/''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
'';
Expand Down
4 changes: 3 additions & 1 deletion pkgs/development/libraries/plplot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ in stdenv.mkDerivation rec {
;
};

cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" "-DBUILD_TEST=ON" ];
cmakeFlags = [
"-DBUILD_TEST=ON"
];

doCheck = true;

Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/s2n-tls/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ stdenv.mkDerivation rec {

cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DUNSAFE_TREAT_WARNINGS_AS_ERRORS=OFF" # disable -Werror
] ++ lib.optionals stdenv.hostPlatform.isMips64 [
# See https://github.com/aws/s2n-tls/issues/1592 and https://github.com/aws/s2n-tls/pull/1609
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/snappy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ stdenv.mkDerivation rec {

cmakeFlags = [
"-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}"
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DSNAPPY_BUILD_TESTS=OFF"
"-DSNAPPY_BUILD_BENCHMARKS=OFF"
];
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/libraries/utf8proc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DUTF8PROC_ENABLE_TESTING=ON"
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
];

doCheck = true;
Expand Down
4 changes: 0 additions & 4 deletions pkgs/os-specific/linux/tiscamera/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ stdenv.mkDerivation rec {
"-DTCAM_INTERNAL_ARAVIS=OFF"
"-DTCAM_ARAVIS_USB_VISION=${if withAravis && withAravisUsbVision then "ON" else "OFF"}"
"-DTCAM_INSTALL_FORCE_PREFIX=ON"
# There are gobject introspection commands launched as part of the build. Those have a runtime
# dependency on `libtcam` (which itself is built as part of this build). In order to allow
# that, we set the dynamic linker's path to point on the build time location of the library.
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
];

doCheck = true;
Expand Down
1 change: 0 additions & 1 deletion pkgs/servers/sql/mysql/5.7.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ self = stdenv.mkDerivation rec {
outputs = [ "out" "static" ];

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # To run libmysql/libmysql_api_test during build.
"-DWITH_SSL=yes"
"-DWITH_EMBEDDED_SERVER=yes"
"-DWITH_UNIT_TESTS=no"
Expand Down
1 change: 0 additions & 1 deletion pkgs/servers/sql/mysql/8.0.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ self = stdenv.mkDerivation rec {
outputs = [ "out" "static" ];

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # To run libmysql/libmysql_api_test during build.
"-DFORCE_UNSUPPORTED_COMPILER=1" # To configure on Darwin.
"-DWITH_ROUTER=OFF" # It may be packaged separately.
"-DWITH_SYSTEM_LIBS=ON"
Expand Down
1 change: 0 additions & 1 deletion pkgs/tools/backup/percona-xtrabackup/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ stdenv.mkDerivation rec {
"-DWITH_ZLIB=system"
"-DWITH_VALGRIND=ON"
"-DWITH_MAN_PAGES=OFF"
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # To run libmysql/libmysql_api_test during build.
];

postInstall = ''
Expand Down
5 changes: 0 additions & 5 deletions pkgs/tools/security/yubihsm-shell/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ stdenv.mkDerivation rec {
openssl
];

cmakeFlags = [
# help2man fails without this
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
];

postPatch = ''
# Can't find libyubihsm at runtime because of dlopen() in C code
substituteInPlace lib/yubihsm.c \
Expand Down

0 comments on commit 1ca04aa

Please sign in to comment.