···4444 export QT_PLUGIN_PATH=${qtbase.bin}/${qtbase.qtPluginPrefix}
4545 '';
46464747- # During build, binaries are called that rely on freshly built
4848- # libraries. These reside in build/lib, and are not found by
4949- # default.
5050- preBuild = ''
5151- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib:$PWD/VTK/ThirdParty/vtkm/vtk-m/lib
5252- '';
5353-5447 cmakeFlags = [
5548 "-DCMAKE_BUILD_TYPE=Release"
5649 "-DPARAVIEW_ENABLE_FFMPEG=ON"
-4
pkgs/applications/kde/dolphin.nix
···2727 wayland qtwayland
2828 ];
2929 outputs = [ "out" "dev" ];
3030- # We need the RPATH for linking, because the `libkdeinit5_dolphin.so` links
3131- # private against its dependencies and without the correct RPATH, these
3232- # dependencies are not found.
3333- cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
3430}
-7
pkgs/applications/misc/audio/soxr/default.nix
···16161717 outputs = [ "out" "doc" ]; # headers are just two and very small
18181919- preConfigure =
2020- if stdenv.isDarwin then ''
2121- export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}"`pwd`/build/src
2222- '' else ''
2323- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}"`pwd`/build/src
2424- '';
2525-2619 nativeBuildInputs = [ cmake ];
27202821 meta = with lib; {
+2
pkgs/applications/misc/edgetx/default.nix
···2929 "-DGTEST_ROOT=${gtest.src}/googletest"
3030 "-DQT_TRANSLATIONS_DIR=${qttranslations}/translations"
3131 "-DDFU_UTIL_PATH=${dfu-util}/bin/dfu-util"
3232+ # file RPATH_CHANGE could not write new RPATH
3333+ "-DCMAKE_SKIP_BUILD_RPATH=ON"
3234 ];
33353436 meta = with lib; {
+3
pkgs/applications/misc/opentx/default.nix
···3131 # XXX I would prefer to include these here, though we will need to file a bug upstream to get that changed.
3232 #"-DDFU_UTIL_PATH=${dfu-util}/bin/dfu-util"
3333 #"-DAVRDUDE_PATH=${avrdude}/bin/avrdude"
3434+3535+ # file RPATH_CHANGE could not write new RPATH
3636+ "-DCMAKE_SKIP_BUILD_RPATH=ON"
3437 ];
35383639 meta = with lib; {
···8383 cmakeFlags = [
8484 "-DMINIZIP_INCLUDE_DIRS=${minizip2}/include"
8585 "-DMINIZIP_LIBRARIES=minizip"
8686+8787+ # RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
8888+ "-DCMAKE_SKIP_BUILD_RPATH=ON"
8689 ];
87908891 # The default install phase fails because the paths are somehow messed up in
···4040 ];
41414242 # Disable warnings that are irrelevant to us as packagers
4343- cmakeFlags = "-Wno-dev";
4343+ cmakeFlags = [ "-Wno-dev" ];
44444545 # We run one of the executables we build while the build is
4646 # still running (and patchelf hasn't been invoked) which means
···6161 CXXFLAGS = [
6262 ''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"''
6363 ];
6464- cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
6564 postInstall = ''
6665 # Some package(s) refer to these service types by the wrong name.
6766 # I would prefer to patch those packages, but I cannot find them!
···222222 ++ lib.optionals (langD) [
223223 "--with-target-system-zlib=yes"
224224 ]
225225- # Make -fcommon default on gcc10
226226- # TODO: fix all packages (probably 100+) and remove that
227227- ++ lib.optional (version >= "10.1.0") "--with-specs=%{!fno-common:%{!fcommon:-fcommon}}"
228225 ;
229226230227in configureFlags
-6
pkgs/development/compilers/halide/default.nix
···32323333 cmakeFlags = [ "-DWARNINGS_AS_ERRORS=OFF" "-DWITH_PYTHON_BINDINGS=OFF" ];
34343535- # To handle the lack of 'local' RPATH; required, as they call one of
3636- # their built binaries requiring their libs, in the build process.
3737- preBuild = ''
3838- export LD_LIBRARY_PATH="$(pwd)/src''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
3939- '';
4040-4135 # Note: only openblas and not atlas part of this Nix expression
4236 # see pkgs/development/libraries/science/math/liblapack/3.5.0.nix
4337 # to get a hint howto setup atlas instead of openblas
···11-# New rust versions should first go to staging.
22-# Things to check after updating:
33-# 1. Rustc should produce rust binaries on x86_64-linux, aarch64-linux and x86_64-darwin:
44-# i.e. nix-shell -p fd or @GrahamcOfBorg build fd on github
55-# This testing can be also done by other volunteers as part of the pull
66-# request review, in case platforms cannot be covered.
77-# 2. The LLVM version used for building should match with rust upstream.
88-# Check the version number in the src/llvm-project git submodule in:
99-# https://github.com/rust-lang/rust/blob/<version-tag>/.gitmodules
1010-# 3. Firefox and Thunderbird should still build on x86_64-linux.
1111-1212-{ stdenv, lib
1313-, buildPackages
1414-, newScope, callPackage
1515-, CoreFoundation, Security, SystemConfiguration
1616-, pkgsBuildTarget, pkgsBuildBuild, pkgsBuildHost
1717-, makeRustPlatform
1818-, llvmPackages_11
1919-, llvmPackages_14, llvm_14
2020-} @ args:
2121-2222-import ./default.nix {
2323- rustcVersion = "1.61.0";
2424- rustcSha256 = "1vfs05hkf9ilk19b2vahqn8l6k17pl9nc1ky9kgspaascx8l62xd";
2525-2626- llvmSharedForBuild = pkgsBuildBuild.llvmPackages_14.libllvm.override { enableSharedLibraries = true; };
2727- llvmSharedForHost = pkgsBuildHost.llvmPackages_14.libllvm.override { enableSharedLibraries = true; };
2828- llvmSharedForTarget = pkgsBuildTarget.llvmPackages_14.libllvm.override { enableSharedLibraries = true; };
2929-3030- llvmBootstrapForDarwin = llvmPackages_11;
3131-3232- # For use at runtime
3333- llvmShared = llvm_14.override { enableSharedLibraries = true; };
3434-3535- # Expose llvmPackages used for rustc from rustc via passthru for LTO in Firefox
3636- llvmPackages = llvmPackages_14;
3737-3838- # Note: the version MUST be one version prior to the version we're
3939- # building
4040- bootstrapVersion = "1.60.0";
4141-4242- # fetch hashes by running `print-hashes.sh ${bootstrapVersion}`
4343- bootstrapHashes = {
4444- i686-unknown-linux-gnu = "2a635269dc9ad8f7bbdf168cdf120e1ec803d36adc832c0804f38e0acc3e2357";
4545- x86_64-unknown-linux-gnu = "b8a4c3959367d053825e31f90a5eb86418eb0d80cacda52bfa80b078e18150d5";
4646- x86_64-unknown-linux-musl = "f0feefcb1985c5c894ad9b0f44e6f09900b31c0eb5f49827da9f37d332a63894";
4747- arm-unknown-linux-gnueabihf = "161b2b97d4512080350cc6656b0765ebae870335e86c2896bed08b32c66fbdf4";
4848- armv7-unknown-linux-gnueabihf = "f2d76e9458949675bab8fcae44f600d30d91f62bf93c127b6b1fe3130e67d5d9";
4949- aarch64-unknown-linux-gnu = "99c419c2f35d4324446481c39402c7baecd7a8baed7edca9f8d6bbd33c05550c";
5050- aarch64-unknown-linux-musl = "fe7e9bad8beea84973f7ffa39879929de4ac8afad872650fb0af6b068f05faa6";
5151- x86_64-apple-darwin = "0b10dc45cddc4d2355e38cac86d71a504327cb41d41d702d4050b9847ad4258c";
5252- aarch64-apple-darwin = "b532672c278c25683ca63d78e82bae829eea1a32308e844954fb66cfe34ad222";
5353- powerpc64le-unknown-linux-gnu = "80125e90285b214c2b1f56ab86a09c8509aa17aec9d7127960a86a7008e8f7de";
5454- riscv64gc-unknown-linux-gnu = "9cc7c6804bcbbecb9c35232035fc488dbcc8487606cc6be3da553cc446bf0fcd";
5555- mips64el-unknown-linux-gnuabi64 = "d413681c22511259f7cd15414a00050cf151d46ac0f9282e765faeb86688deac";
5656- };
5757-5858- selectRustPackage = pkgs: pkgs.rust_1_61;
5959-6060- rustcPatches = [
6161- ];
6262-}
6363-6464-(builtins.removeAttrs args [ "fetchpatch" "pkgsBuildHost" "llvmPackages_11" "llvmPackages_14" "llvm_14"])
+64
pkgs/development/compilers/rust/1_62.nix
···11+# New rust versions should first go to staging.
22+# Things to check after updating:
33+# 1. Rustc should produce rust binaries on x86_64-linux, aarch64-linux and x86_64-darwin:
44+# i.e. nix-shell -p fd or @GrahamcOfBorg build fd on github
55+# This testing can be also done by other volunteers as part of the pull
66+# request review, in case platforms cannot be covered.
77+# 2. The LLVM version used for building should match with rust upstream.
88+# Check the version number in the src/llvm-project git submodule in:
99+# https://github.com/rust-lang/rust/blob/<version-tag>/.gitmodules
1010+# 3. Firefox and Thunderbird should still build on x86_64-linux.
1111+1212+{ stdenv, lib
1313+, buildPackages
1414+, newScope, callPackage
1515+, CoreFoundation, Security, SystemConfiguration
1616+, pkgsBuildTarget, pkgsBuildBuild, pkgsBuildHost
1717+, makeRustPlatform
1818+, llvmPackages_11
1919+, llvmPackages_14, llvm_14
2020+} @ args:
2121+2222+import ./default.nix {
2323+ rustcVersion = "1.62.0";
2424+ rustcSha256 = "09y06qmh7ihi9kgimpp3h4nj3cmgc1zypqyaba10dlk4kf07h23x";
2525+2626+ llvmSharedForBuild = pkgsBuildBuild.llvmPackages_14.libllvm.override { enableSharedLibraries = true; };
2727+ llvmSharedForHost = pkgsBuildHost.llvmPackages_14.libllvm.override { enableSharedLibraries = true; };
2828+ llvmSharedForTarget = pkgsBuildTarget.llvmPackages_14.libllvm.override { enableSharedLibraries = true; };
2929+3030+ llvmBootstrapForDarwin = llvmPackages_11;
3131+3232+ # For use at runtime
3333+ llvmShared = llvm_14.override { enableSharedLibraries = true; };
3434+3535+ # Expose llvmPackages used for rustc from rustc via passthru for LTO in Firefox
3636+ llvmPackages = llvmPackages_14;
3737+3838+ # Note: the version MUST be one version prior to the version we're
3939+ # building
4040+ bootstrapVersion = "1.61.0";
4141+4242+ # fetch hashes by running `print-hashes.sh ${bootstrapVersion}`
4343+ bootstrapHashes = {
4444+ i686-unknown-linux-gnu = "b15eb0ad44b7253e0b5b1a8cd285feb10e9fb0402840dba9a13112c3349a4b39";
4545+ x86_64-unknown-linux-gnu = "066b324239d30787ce64142d7e04912f2e1850c07db3b2354d8654e02ff8b23a";
4646+ x86_64-unknown-linux-musl = "0904f6b769ae28c259e0e25a41e99290a4ae2a36bca63ae153790b2ebbc427bf";
4747+ arm-unknown-linux-gnueabihf = "cc32705cd1b583aaac74e6663f71392131dc0355a0f484cb56f0378b71ea7ebc";
4848+ armv7-unknown-linux-gnueabihf = "2782ec75ea4abb402513e2e57becc6c14e67b492d57228cddedef6db0853b165";
4949+ aarch64-unknown-linux-gnu = "261cd47bc3c98c9f97b601d1ad2a7d9b33c9ea63c9a351119c2f6d4e82f5d436";
5050+ aarch64-unknown-linux-musl = "feb79985cb161a10b252236852df8db3bf3593c78905b84c7e94cd4454327e47";
5151+ x86_64-apple-darwin = "d851f1a473926a5d8f111ed08002047a5dc4ad944a5b7f8d5d2f1f266b51e66a";
5252+ aarch64-apple-darwin = "2dbafd13d007543aada47179fa273f9a3865f27e0a07bd69be61801232a0819e";
5353+ powerpc64le-unknown-linux-gnu = "6d5cd579b68a2adc20384406c69a92beaaf4941056e126ff0ed1ec2f3a4e721f";
5454+ riscv64gc-unknown-linux-gnu = "3d0f3b1a8522e09fffdf920a061794ac3107410eb1fe8f5d62a7aae3c6dcb81e";
5555+ mips64el-unknown-linux-gnuabi64 = "6ed5b6492e68f45488108abd06dbcd4b89c46cdbd4715331bb11e88f18500815";
5656+ };
5757+5858+ selectRustPackage = pkgs: pkgs.rust_1_62;
5959+6060+ rustcPatches = [
6161+ ];
6262+}
6363+6464+(builtins.removeAttrs args [ "fetchpatch" "pkgsBuildHost" "llvmPackages_11" "llvmPackages_14" "llvm_14"])
···3030 "-DLLVM_DIR=${llvm_11.dev}"
3131 "-DBUILD_SHARED_LIBS=YES"
3232 "-DLLVM_SPIRV_BUILD_EXTERNAL=YES"
3333+ # RPATH of binary /nix/store/.../bin/llvm-spirv contains a forbidden reference to /build/
3434+ "-DCMAKE_SKIP_BUILD_RPATH=ON"
3335 ];
34363537 # FIXME: CMake tries to run "/llvm-lit" which of course doesn't exist
···21212222 doCheck = true;
2323 checkTarget = "test";
2424- preCheck = ''
2525- export LD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
2626- export DYLD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
2727- '';
28242925 meta = with lib; {
3026 description = "An open source implementation of the actor model in C++";
···2323 sed -r -i 's/(\<_Complex)(\s+)(float|double)/\3\2\1/' $out/include/$pname/freedv_api.h
2424 '';
25252626+ cmakeFlags = [
2727+ # RPATH of binary /nix/store/.../bin/freedv_rx contains a forbidden reference to /build/
2828+ "-DCMAKE_SKIP_BUILD_RPATH=ON"
2929+ ];
3030+2631 meta = with lib; {
2732 description = "Speech codec designed for communications quality speech at low data rates";
2833 homepage = "https://www.rowetel.com/codec2.html";
-5
pkgs/development/libraries/cpp-netlib/default.nix
···1919 "-DCPP-NETLIB_BUILD_SHARED_LIBS=ON"
2020 ];
21212222- # The test driver binary lacks an RPath to the library's libs
2323- preCheck = ''
2424- export LD_LIBRARY_PATH=$PWD/libs/network/src
2525- '';
2626-2722 # Most tests make network GET requests to various websites
2823 doCheck = false;
2924
···17171818 cmakeFlags = [
1919 "-DBUILD_SHARED_LIBS=ON"
2020- # Mak CMake place RPATHs such that tests will find the built libraries.
2121- # See https://github.com/NixOS/nixpkgs/pull/144561#discussion_r742468811 and https://github.com/NixOS/nixpkgs/pull/108496
2222- "-DCMAKE_SKIP_BUILD_RPATH=OFF"
2320 ];
24212522 # TODO: Re-enable Darwin tests once we're on a release that has https://github.com/google/glog/issues/709#issuecomment-960381653 fixed
···87878888 doCheck = true;
89899090- # needed to find libigraph, and liblas on darwin
9191- preCheck = if stdenv.isDarwin then ''
9292- export DYLD_LIBRARY_PATH="${lib.makeLibraryPath [ blas ]}:$PWD/src"
9393- '' else ''
9494- export LD_LIBRARY_PATH="$PWD/src"
9595- '';
9696-9790 postInstall = ''
9891 mkdir -p "$out/share"
9992 cp -r doc "$out/share"
-8
pkgs/development/libraries/jsoncpp/default.nix
···4343 sed -i 's/#define JSONCPP_USING_SECURE_MEMORY 0/#define JSONCPP_USING_SECURE_MEMORY 1/' include/json/version.h
4444 '';
45454646- # Hack to be able to run the test, broken because we use
4747- # CMAKE_SKIP_BUILD_RPATH to avoid cmake resetting rpath on install
4848- preBuild = if stdenv.isDarwin then ''
4949- export DYLD_LIBRARY_PATH="$PWD/lib''${DYLD_LIBRARY_PATH:+:}$DYLD_LIBRARY_PATH"
5050- '' else ''
5151- export LD_LIBRARY_PATH="$PWD/lib''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
5252- '';
5353-5446 nativeBuildInputs = [ cmake python3 validatePkgConfig ];
55475648 cmakeFlags = [
···129129130130 doCheck = !stdenv.hostPlatform.isi686;
131131132132- # The test driver runs a test `LibraryCLinkageTest` which without
133133- # LD_LIBRARY_PATH setting errors with:
134134- # /build/source/build/tools/tests/libjxl_test: error while loading shared libraries: libjxl.so.0
135135- # The required file is in the build directory (`$PWD`).
136136- preCheck = if stdenv.isDarwin then ''
137137- export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD
138138- '' else ''
139139- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD
140140- '';
141141-142132 meta = with lib; {
143133 homepage = "https://github.com/libjxl/libjxl";
144134 description = "JPEG XL image format reference implementation.";
···5252 # the other libraries as `libGL` is part of our `buildInputs`.
5353 NIX_CFLAGS_LINK = "-Wl,-rpath,${libGL}/lib";
54545555+ cmakeFlags = [
5656+ # RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
5757+ "-DCMAKE_SKIP_BUILD_RPATH=ON"
5858+ ];
5959+5560 preFixup = ''
5661 mkdir -p "$out/bin"
5762 cp -a "./bin/"* "$out/bin"
···2121 # Tests fail on some Hydra builders, because they do not support SSE4.2.
2222 doCheck = false;
23232424- # The test driver doesn't add an RPath to the build libdir
2525- preCheck = ''
2626- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/src
2727- export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD/src
2828- '';
2929-3024 # The cmake install gets tripped up and installs a nix tree into $out, in
3125 # addition to the correct install; clean it up.
3226 postInstall = ''
+3
pkgs/development/libraries/openhmd/default.nix
···3737 "-DOPENHMD_EXAMPLE_SIMPLE=${examplesOnOff}"
3838 "-DOPENHMD_EXAMPLE_SDL=${examplesOnOff}"
3939 "-DOpenGL_GL_PREFERENCE=GLVND"
4040+4141+ # RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
4242+ "-DCMAKE_SKIP_BUILD_RPATH=ON"
4043 ];
41444245 postInstall = lib.optionalString withExamples ''
···11-From 4d8a88c134df634ba610ff8db1eb8478ac5fd345 Mon Sep 17 00:00:00 2001
22-From: Xi Ruoyao <xry111@xry111.site>
33-Date: Wed, 22 Jun 2022 18:07:05 +0800
44-Subject: [PATCH] rsa: fix bn_reduce_once_in_place call for
55- rsaz_mod_exp_avx512_x2
66-77-bn_reduce_once_in_place expects the number of BN_ULONG, but factor_size
88-is moduli bit size.
99-1010-Fixes #18625.
1111-1212-Signed-off-by: Xi Ruoyao <xry111@xry111.site>
1313-1414-Reviewed-by: Tomas Mraz <tomas@openssl.org>
1515-Reviewed-by: Paul Dale <pauli@openssl.org>
1616-(Merged from https://github.com/openssl/openssl/pull/18626)
1717----
1818- crypto/bn/rsaz_exp_x2.c | 3 +++
1919- 1 file changed, 3 insertions(+)
2020-2121-diff --git a/crypto/bn/rsaz_exp_x2.c b/crypto/bn/rsaz_exp_x2.c
2222-index 6b04486e3f56..f979cebd6fb7 100644
2323---- a/crypto/bn/rsaz_exp_x2.c
2424-+++ b/crypto/bn/rsaz_exp_x2.c
2525-@@ -257,6 +257,9 @@ int ossl_rsaz_mod_exp_avx512_x2(BN_ULONG *res1,
2626- from_words52(res1, factor_size, rr1_red);
2727- from_words52(res2, factor_size, rr2_red);
2828-2929-+ /* bn_reduce_once_in_place expects number of BN_ULONG, not bit size */
3030-+ factor_size /= sizeof(BN_ULONG) * 8;
3131-+
3232- bn_reduce_once_in_place(res1, /*carry=*/0, m1, storage, factor_size);
3333- bn_reduce_once_in_place(res2, /*carry=*/0, m2, storage, factor_size);
3434-
+4-8
pkgs/development/libraries/openssl/default.nix
···186186187187188188 openssl_1_1 = common rec {
189189- version = "1.1.1p";
190190- sha256 = "sha256-v2G2Kqpmx8djmUKpTeTJroKAwI8X1OrC5EZE2fyKzm8=";
189189+ version = "1.1.1q";
190190+ sha256 = "sha256-15Oc5hQCnN/wtsIPDi5XAxWKSJpyslB7i9Ub+Mj9EMo=";
191191 patches = [
192192 ./1.1/nix-ssl-cert-file.patch
193193···201201 };
202202203203 openssl_3 = common {
204204- version = "3.0.4";
205205- sha256 = "sha256-KDGEPppmigq0eOcCCtY9LWXlH3KXdHLcc+/O+6/AwA8=";
204204+ version = "3.0.5";
205205+ sha256 = "sha256-qn2Nm+9xrWUlxVuhHl9Dl4ic5Jwsk0nc6m0+TwsCSno=";
206206 patches = [
207207 ./3.0/nix-ssl-cert-file.patch
208208209209 # openssl will only compile in KTLS if the current kernel supports it.
210210 # This patch disables build-time detection.
211211 ./3.0/openssl-disable-kernel-detection.patch
212212-213213- # https://guidovranken.com/2022/06/27/notes-on-openssl-remote-memory-corruption/
214214- # https://github.com/openssl/openssl/commit/4d8a88c134df634ba610ff8db1eb8478ac5fd345.patch
215215- 3.0/rsa-fix-bn_reduce_once_in_place-call-for-rsaz_mod_exp_avx512_x2.patch
216212217213 (if stdenv.hostPlatform.isDarwin
218214 then ./use-etc-ssl-certs-darwin.patch
-5
pkgs/development/libraries/orcania/default.nix
···18181919 doCheck = true;
20202121- preCheck = ''
2222- export LD_LIBRARY_PATH="$(pwd)''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
2323- export DYLD_FALLBACK_LIBRARY_PATH="$(pwd):$DYLD_FALLBACK_LIBRARY_PATH"
2424- '';
2525-2621 meta = with lib; {
2722 description = "Potluck with different functions for different purposes that can be shared among C programs";
2823 homepage = "https://github.com/babelouest/orcania";
+2-9
pkgs/development/libraries/pipewire/default.nix
···22, lib
33, buildPackages
44, fetchFromGitLab
55-, fetchpatch
65, removeReferencesTo
76, python3
87, meson
···70697170 self = stdenv.mkDerivation rec {
7271 pname = "pipewire";
7373- version = "0.3.52";
7272+ version = "0.3.54";
74737574 outputs = [
7675 "out"
···8887 owner = "pipewire";
8988 repo = "pipewire";
9089 rev = version;
9191- sha256 = "sha256-JWmO36+OF2O9sLB+Z0znwm3TH+O+pEv3cXnuwP6Wy1E=";
9090+ sha256 = "sha256-EFkx/K5v4f7clFguiU1xFt9VacSHeVksRye73rOjPPI=";
9291 };
93929493 patches = [
···104103 ./0090-pipewire-config-template-paths.patch
105104 # Place SPA data files in lib output to avoid dependency cycles
106105 ./0095-spa-data-dir.patch
107107- # Remove 44.1KHz from allowed rates (multiple regressions reported)
108108- # To be removed when 0.3.53 is released
109109- (fetchpatch {
110110- url = "https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/16a7c274989f47b0c0d8ba192a30316b545bd26a.patch";
111111- sha256 = "sha256-VZ7ChjcR/PGfmH2DmLxfIhd3mj9668l9zLO4k2KBoqg=";
112112- })
113106 ];
114107115108 nativeBuildInputs = [
···22222323 checkInputs = [ check ];
24242525- # Hack to be able to run the test, broken because we use
2626- # CMAKE_SKIP_BUILD_RPATH to avoid cmake resetting rpath on install
2727- preCheck = if stdenv.isDarwin then ''
2828- export DYLD_LIBRARY_PATH="$(pwd)''${DYLD_LIBRARY_PATH:+:}$DYLD_LIBRARY_PATH"
2929- '' else ''
3030- export LD_LIBRARY_PATH="$(pwd)''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
3131- '';
3232-3325 preConfigure = ''
3426 # Enable long long support (required for filezilla)
3527 sed -ire '/PUGIXML_HAS_LONG_LONG/ s/^\/\///' src/pugiconfig.hpp
···3030index 92a9112bca..b80ec1e801 100644
3131--- a/mkspecs/features/mac/default_post.prf
3232+++ b/mkspecs/features/mac/default_post.prf
3333-@@ -68,212 +68,6 @@ qt {
3333+@@ -1,9 +1,5 @@
3434+ load(default_post)
3535+3636+-# Recompute SDK version in case the user set it explicitly
3737+-sdk_version = $$QMAKE_MAC_SDK_VERSION
3838+-QMAKE_MAC_SDK_VERSION = $$xcodeSDKInfo(SDKVersion)
3939+-
4040+ contains(TEMPLATE, .*app) {
4141+ !macx-xcode:if(isEmpty(BUILDS)|build_pass) {
4242+ # Detect changes to the platform SDK
4343+@@ -16,36 +12,6 @@ contains(TEMPLATE, .*app) {
4444+ QMAKE_EXTRA_INCLUDES += $$shell_quote($$PWD/sdk.mk)
4545+ }
4646+4747+- # Detect incompatible SDK versions
4848+-
4949+- isEmpty(QT_MAC_SDK_VERSION_MIN): \
5050+- QT_MAC_SDK_VERSION_MIN = $$QT_MAC_SDK_VERSION
5151+-
5252+- !versionAtLeast(QMAKE_MAC_SDK_VERSION, $$QT_MAC_SDK_VERSION_MIN): \
5353+- warning("Qt requires at least version $$QT_MAC_SDK_VERSION_MIN of the platform SDK," \
5454+- "you're building against version $${QMAKE_MAC_SDK_VERSION}. Please upgrade.")
5555+-
5656+- !isEmpty(QT_MAC_SDK_VERSION_MAX) {
5757+- # For Qt developers only
5858+- !isEmpty($$list($$(QT_MAC_SDK_NO_VERSION_CHECK))): \
5959+- CONFIG += sdk_no_version_check
6060+-
6161+- QMAKE_MAC_SDK_MAJOR_VERSION = $$replace(QMAKE_MAC_SDK_VERSION, "(\\d+)(\\.\\d+)(\\.\\d+)?", \\1)
6262+-
6363+- !sdk_no_version_check:!versionAtMost(QMAKE_MAC_SDK_MAJOR_VERSION, $$QT_MAC_SDK_VERSION_MAX) {
6464+- warning("Qt has only been tested with version $$QT_MAC_SDK_VERSION_MAX"\
6565+- "of the platform SDK, you're using $${QMAKE_MAC_SDK_MAJOR_MINOR_VERSION}.")
6666+- warning("This is an unsupported configuration. You may experience build issues," \
6767+- "and by using")
6868+- warning("the $$QMAKE_MAC_SDK_VERSION SDK you are opting in to new features" \
6969+- "that Qt has not been prepared for.")
7070+-
7171+- warning("Please downgrade the SDK you use to build your app to version" \
7272+- "$$QT_MAC_SDK_VERSION_MAX, or configure")
7373+- warning("with CONFIG+=sdk_no_version_check when running qmake" \
7474+- "to silence this warning.")
7575+- }
7676+- }
7777+ }
7878+7979+ !no_objective_c:CONFIG += objective_c
8080+@@ -73,212 +39,6 @@ qt {
3481 }
3582 }
3683···308355-xcode_copy_phase_strip_setting.name = COPY_PHASE_STRIP
309356-xcode_copy_phase_strip_setting.value = NO
310357-QMAKE_MAC_XCODE_SETTINGS += xcode_copy_phase_strip_setting
311311-diff --git a/mkspecs/features/mac/sdk.mk b/mkspecs/features/mac/sdk.mk
312312---- a/mkspecs/features/mac/sdk.mk
313313-+++ b/mkspecs/features/mac/sdk.mk
314314-@@ -1,25 +0,0 @@
315315--
316316--ifeq ($(QT_MAC_SDK_NO_VERSION_CHECK),)
317317-- CHECK_SDK_COMMAND = /usr/bin/xcrun --sdk $(EXPORT_QMAKE_MAC_SDK) -show-sdk-version 2>&1
318318-- CURRENT_MAC_SDK_VERSION := $(shell DEVELOPER_DIR=$(EXPORT_QMAKE_XCODE_DEVELOPER_PATH) $(CHECK_SDK_COMMAND))
319319-- ifneq ($(CURRENT_MAC_SDK_VERSION),$(EXPORT_QMAKE_MAC_SDK_VERSION))
320320-- # We don't want to complain about out of date SDK unless the target needs to be remade.
321321-- # This covers use-cases such as running 'make check' after moving the build to a
322322-- # computer without Xcode or with a different Xcode version.
323323-- TARGET_UP_TO_DATE := $(shell QT_MAC_SDK_NO_VERSION_CHECK=1 $(MAKE) --question $(QMAKE_TARGET) && echo 1 || echo 0)
324324-- ifeq ($(TARGET_UP_TO_DATE),0)
325325-- ifneq ($(findstring missing DEVELOPER_DIR path,$(CURRENT_MAC_SDK_VERSION)),)
326326-- $(info The developer dir $(EXPORT_QMAKE_XCODE_DEVELOPER_PATH) is no longer valid.)
327327-- else ifneq ($(findstring SDK "$(EXPORT_QMAKE_MAC_SDK)" cannot be located,$(CURRENT_MAC_SDK_VERSION)),)
328328-- $(info The developer dir $(EXPORT_QMAKE_XCODE_DEVELOPER_PATH) no longer contains the $(EXPORT_QMAKE_MAC_SDK_VERSION) platform SDK.)
329329-- else ifneq ($(CURRENT_MAC_SDK_VERSION),)
330330-- $(info The platform SDK has been changed from version $(EXPORT_QMAKE_MAC_SDK_VERSION) to version $(CURRENT_MAC_SDK_VERSION).)
331331-- else
332332-- $(info Unknown error resolving current platform SDK version.)
333333-- endif
334334-- $(info This requires a fresh build. Please wipe the build directory completely,)
335335-- $(info including any .qmake.stash and .qmake.cache files generated by qmake.)
336336-- $(error ^)
337337-- endif
338338-- endif
339339--endif
340358diff --git a/mkspecs/features/mac/sdk.prf b/mkspecs/features/mac/sdk.prf
341359deleted file mode 100644
342360index 3a9c2778bb..0000000000
···404422- $$tool = $$sysrooted $$member(value, 1, -1)
405423- cache($$tool_variable, set stash, $$tool)
406424-}
407407---
408408-2.25.4
409409-425425+diff --git a/mkspecs/features/mac/toolchain.prf b/mkspecs/features/mac/toolchain.prf
426426+deleted file mode 100644
427427+index df191eb13c..0000000000
428428+--- a/mkspecs/features/mac/toolchain.prf
429429++++ /dev/null
430430+@@ -1,5 +0,0 @@
431431+-# Ensure that we process sdk.prf first, as it will update QMAKE_CXX,
432432+-# which the default path determination uses.
433433+-sdk: load(sdk)
434434+-
435435+-load(toolchain)
···67676868 # Run single threaded
6969 export OMP_NUM_THREADS=1
7070-7171- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}`pwd`/lib
7270 '';
73717472 meta = with lib; {
···102102 cmakeFlags="-DBUILD_TESTING=OFF $cmakeFlags"
103103 fi
104104105105- # Avoid cmake resetting the rpath of binaries, on make install
106106- # And build always Release, to ensure optimisation flags
107107- cmakeFlags="-DCMAKE_BUILD_TYPE=${cmakeBuildType:-Release} -DCMAKE_SKIP_BUILD_RPATH=ON $cmakeFlags"
105105+ # Always build Release, to ensure optimisation flags
106106+ cmakeFlags="-DCMAKE_BUILD_TYPE=${cmakeBuildType:-Release} $cmakeFlags"
108107109108 # Disable user package registry to avoid potential side effects
110109 # and unecessary attempts to access non-existent home folder
+1
pkgs/development/tools/misc/libtool/default.nix
···1515 # Don't fixup "#! /bin/sh" in Libtool, otherwise it will use the
1616 # "fixed" path in generated files!
1717 dontPatchShebangs = true;
1818+ dontFixLibtool = true;
18191920 meta = {
2021 description = "Generic library support script";
+1
pkgs/development/tools/misc/libtool/libtool2.nix
···5151 # Don't fixup "#! /bin/sh" in Libtool, otherwise it will use the
5252 # "fixed" path in generated files!
5353 dontPatchShebangs = true;
5454+ dontFixLibtool = true;
54555556 # XXX: The GNU ld wrapper does all sorts of nasty things wrt. RPATH, which
5657 # leads to the failure of a number of tests.
···108108 "-DTCAM_INTERNAL_ARAVIS=OFF"
109109 "-DTCAM_ARAVIS_USB_VISION=${if withAravis && withAravisUsbVision then "ON" else "OFF"}"
110110 "-DTCAM_INSTALL_FORCE_PREFIX=ON"
111111- # There are gobject introspection commands launched as part of the build. Those have a runtime
112112- # dependency on `libtcam` (which itself is built as part of this build). In order to allow
113113- # that, we set the dynamic linker's path to point on the build time location of the library.
114114- "-DCMAKE_SKIP_BUILD_RPATH=OFF"
115111 ];
116112117113 doCheck = true;
···4747 "-DWITH_CURL=ON"
4848 "-DWITH_CLIENT_WMS=ON"
4949 "-DWITH_CLIENT_WFS=ON"
5050+5151+ # RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
5252+ "-DCMAKE_SKIP_BUILD_RPATH=ON"
5053 ] ++ lib.optional withPython "-DWITH_PYTHON=ON";
51545255 meta = with lib; {
-1
pkgs/servers/sql/mysql/5.7.x.nix
···3131 outputs = [ "out" "static" ];
32323333 cmakeFlags = [
3434- "-DCMAKE_SKIP_BUILD_RPATH=OFF" # To run libmysql/libmysql_api_test during build.
3534 "-DWITH_SSL=yes"
3635 "-DWITH_EMBEDDED_SERVER=yes"
3736 "-DWITH_UNIT_TESTS=no"
-1
pkgs/servers/sql/mysql/8.0.x.nix
···3434 outputs = [ "out" "static" ];
35353636 cmakeFlags = [
3737- "-DCMAKE_SKIP_BUILD_RPATH=OFF" # To run libmysql/libmysql_api_test during build.
3837 "-DFORCE_UNSUPPORTED_COMPILER=1" # To configure on Darwin.
3938 "-DWITH_ROUTER=OFF" # It may be packaged separately.
4039 "-DWITH_SYSTEM_LIBS=ON"
···330330 ++ optional (elem "host" configurePlatforms) "--host=${stdenv.hostPlatform.config}"
331331 ++ optional (elem "target" configurePlatforms) "--target=${stdenv.targetPlatform.config}";
332332333333+ cmakeFlags =
334334+ let
335335+ explicitFlags =
336336+ if lib.isString cmakeFlags then lib.warn
337337+ "String 'cmakeFlags' is deprecated and will be removed in release 23.05. Please use a list of strings. Derivation name: ${derivationArg.name}, file: ${pos.file or "unknown file"}"
338338+ [cmakeFlags]
339339+ else if cmakeFlags == null then
340340+ lib.warn
341341+ "Null 'cmakeFlags' is deprecated and will be removed in release 23.05. Please use a empty list instead '[]'. Derivation name: ${derivationArg.name}, file: ${pos.file or "unknown file"}"
342342+ []
343343+ else
344344+ cmakeFlags;
345345+346346+ crossFlags = [
347347+ "-DCMAKE_SYSTEM_NAME=${lib.findFirst lib.isString "Generic" (lib.optional (!stdenv.hostPlatform.isRedox) stdenv.hostPlatform.uname.system)}"
348348+ ] ++ lib.optionals (stdenv.hostPlatform.uname.processor != null) [
349349+ "-DCMAKE_SYSTEM_PROCESSOR=${stdenv.hostPlatform.uname.processor}"
350350+ ] ++ lib.optionals (stdenv.hostPlatform.uname.release != null) [
351351+ "-DCMAKE_SYSTEM_VERSION=${stdenv.hostPlatform.uname.release}"
352352+ ] ++ lib.optionals (stdenv.hostPlatform.isDarwin) [
353353+ "-DCMAKE_OSX_ARCHITECTURES=${stdenv.hostPlatform.darwinArch}"
354354+ ] ++ lib.optionals (stdenv.buildPlatform.uname.system != null) [
355355+ "-DCMAKE_HOST_SYSTEM_NAME=${stdenv.buildPlatform.uname.system}"
356356+ ] ++ lib.optionals (stdenv.buildPlatform.uname.processor != null) [
357357+ "-DCMAKE_HOST_SYSTEM_PROCESSOR=${stdenv.buildPlatform.uname.processor}"
358358+ ] ++ lib.optionals (stdenv.buildPlatform.uname.release != null) [
359359+ "-DCMAKE_HOST_SYSTEM_VERSION=${stdenv.buildPlatform.uname.release}"
360360+ ];
361361+ in
362362+ explicitFlags ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) crossFlags;
363363+364364+ mesonFlags =
365365+ let
366366+ explicitFlags =
367367+ if lib.isString mesonFlags then lib.warn
368368+ "String 'mesonFlags' is deprecated and will be removed in release 23.05. Please use a list of strings. Derivation name: ${derivationArg.name}, file: ${pos.file or "unknown file"}"
369369+ [mesonFlags]
370370+ else if mesonFlags == null then
371371+ lib.warn
372372+ "Null 'mesonFlags' is deprecated and will be removed in release 23.05. Please use a empty list instead '[]'. Derivation name: ${derivationArg.name}, file: ${pos.file or "unknown file"}"
373373+ []
374374+ else
375375+ mesonFlags;
376376+377377+ # See https://mesonbuild.com/Reference-tables.html#cpu-families
378378+ cpuFamily = platform: with platform;
379379+ /**/ if isAarch32 then "arm"
380380+ else if isAarch64 then "aarch64"
381381+ else if isx86_32 then "x86"
382382+ else if isx86_64 then "x86_64"
383383+ else platform.parsed.cpu.family + builtins.toString platform.parsed.cpu.bits;
384384+385385+ crossFile = builtins.toFile "cross-file.conf" ''
386386+ [properties]
387387+ needs_exe_wrapper = true
388388+389389+ [host_machine]
390390+ system = '${stdenv.targetPlatform.parsed.kernel.name}'
391391+ cpu_family = '${cpuFamily stdenv.targetPlatform}'
392392+ cpu = '${stdenv.targetPlatform.parsed.cpu.name}'
393393+ endian = ${if stdenv.targetPlatform.isLittleEndian then "'little'" else "'big'"}
394394+395395+ [binaries]
396396+ llvm-config = 'llvm-config-native'
397397+ '';
398398+ crossFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ "--cross-file=${crossFile}" ];
399399+ in crossFlags ++ explicitFlags;
400400+333401 inherit patches;
334402335403 inherit doCheck doInstallCheck;
···341409 # most people won't care about these anyways
342410 outputHashAlgo = attrs.outputHashAlgo or "sha256";
343411 outputHashMode = attrs.outputHashMode or "recursive";
344344- } // lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform) {
345345- cmakeFlags =
346346- (/**/ if lib.isString cmakeFlags then [cmakeFlags]
347347- else if cmakeFlags == null then []
348348- else cmakeFlags)
349349- ++ [ "-DCMAKE_SYSTEM_NAME=${lib.findFirst lib.isString "Generic" (
350350- lib.optional (!stdenv.hostPlatform.isRedox) stdenv.hostPlatform.uname.system)}"]
351351- ++ lib.optional (stdenv.hostPlatform.uname.processor != null) "-DCMAKE_SYSTEM_PROCESSOR=${stdenv.hostPlatform.uname.processor}"
352352- ++ lib.optional (stdenv.hostPlatform.uname.release != null) "-DCMAKE_SYSTEM_VERSION=${stdenv.hostPlatform.uname.release}"
353353- ++ lib.optional (stdenv.hostPlatform.isDarwin) "-DCMAKE_OSX_ARCHITECTURES=${stdenv.hostPlatform.darwinArch}"
354354- ++ lib.optional (stdenv.buildPlatform.uname.system != null) "-DCMAKE_HOST_SYSTEM_NAME=${stdenv.buildPlatform.uname.system}"
355355- ++ lib.optional (stdenv.buildPlatform.uname.processor != null) "-DCMAKE_HOST_SYSTEM_PROCESSOR=${stdenv.buildPlatform.uname.processor}"
356356- ++ lib.optional (stdenv.buildPlatform.uname.release != null) "-DCMAKE_HOST_SYSTEM_VERSION=${stdenv.buildPlatform.uname.release}";
357357-358358- mesonFlags = if mesonFlags == null then null else let
359359- # See https://mesonbuild.com/Reference-tables.html#cpu-families
360360- cpuFamily = platform: with platform;
361361- /**/ if isAarch32 then "arm"
362362- else if isAarch64 then "aarch64"
363363- else if isx86_32 then "x86"
364364- else if isx86_64 then "x86_64"
365365- else platform.parsed.cpu.family + builtins.toString platform.parsed.cpu.bits;
366366- crossFile = builtins.toFile "cross-file.conf" ''
367367- [properties]
368368- needs_exe_wrapper = true
369369-370370- [host_machine]
371371- system = '${stdenv.targetPlatform.parsed.kernel.name}'
372372- cpu_family = '${cpuFamily stdenv.targetPlatform}'
373373- cpu = '${stdenv.targetPlatform.parsed.cpu.name}'
374374- endian = ${if stdenv.targetPlatform.isLittleEndian then "'little'" else "'big'"}
375375-376376- [binaries]
377377- llvm-config = 'llvm-config-native'
378378- '';
379379- in [ "--cross-file=${crossFile}" ] ++ mesonFlags;
380412 } // lib.optionalAttrs (enableParallelBuilding) {
381413 enableParallelChecking = attrs.enableParallelChecking or true;
382414 } // lib.optionalAttrs (hardeningDisable != [] || hardeningEnable != [] || stdenv.hostPlatform.isMusl) {
-3
pkgs/stdenv/linux/default.nix
···356356 # stage5.gcc -> stage4.coreutils -> stage3.glibc -> bootstrap
357357 gmp = lib.makeOverridable (super.gmp.override { stdenv = self.stdenv; }).overrideAttrs (a: { pname = "${a.pname}-stage4"; });
358358359359- # coreutils gets rebuilt both here and also in the final stage; we rename this one to avoid confusion
360360- coreutils = super.coreutils.overrideAttrs (a: { pname = "${a.pname}-stage4"; });
361361-362359 gcc = lib.makeOverridable (import ../../build-support/cc-wrapper) {
363360 nativeTools = false;
364361 nativeLibc = false;
+4-1
pkgs/tools/archivers/unzip/default.nix
···6060 "generic"
6161 "D_USE_BZ2=-DUSE_BZIP2"
6262 "L_BZ2=-lbz2"
6363- ];
6363+ ]
6464+ # `lchmod` is not available on Linux, so we remove it to fix "not supported" errors (when the zip file contains symlinks).
6565+ # Alpine (musl) and Debian (glibc) also add this flag.
6666+ ++ lib.optionals stdenv.isLinux [ "LOCAL_UNZIP=-DNO_LCHMOD" ];
64676568 preConfigure = ''
6669 sed -i -e 's@CF="-O3 -Wall -I. -DASM_CRC $(LOC)"@CF="-O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(LOC)"@' unix/Makefile
-1
pkgs/tools/backup/percona-xtrabackup/generic.nix
···4545 "-DWITH_ZLIB=system"
4646 "-DWITH_VALGRIND=ON"
4747 "-DWITH_MAN_PAGES=OFF"
4848- "-DCMAKE_SKIP_BUILD_RPATH=OFF" # To run libmysql/libmysql_api_test during build.
4948 ];
50495150 postInstall = ''
-2
pkgs/tools/filesystems/ceph/default.nix
···184184 substituteInPlace src/common/module.c --replace "/sbin/modprobe" "modprobe"
185185 substituteInPlace src/common/module.c --replace "/bin/grep" "grep"
186186187187- # for pybind/rgw to find internal dep
188188- export LD_LIBRARY_PATH="$PWD/build/lib''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
189187 # install target needs to be in PYTHONPATH for "*.pth support" check to succeed
190188 # set PYTHONPATH, so the build system doesn't silently skip installing ceph-volume and others
191189 export PYTHONPATH=${ceph-python-env}/${sitePackages}:$lib/${sitePackages}:$out/${sitePackages}
···123123 # TODO(19b98110126fde7cbb1127af7e3fe1568eacad3d): Needed for fstatfs() I
124124 # don't know why it is not properly detected cross building with glibc.
125125 "fu_cv_sys_stat_statfs2_bsize=yes"
126126- ];
126126+ ]
127127+ # /proc/uptime is available on Linux and produces accurate results even if
128128+ # the boot time is set to the epoch because the system has no RTC. We
129129+ # explicitly enable it for cases where it can't be detected automatically,
130130+ # such as when cross-compiling.
131131+ ++ optional stdenv.hostPlatform.isLinux "gl_cv_have_proc_uptime=yes";
127132128133 # The tests are known broken on Cygwin
129134 # (http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/19025),