···44 export QT_PLUGIN_PATH=${qtbase.bin}/${qtbase.qtPluginPrefix}
45 '';
4647- # During build, binaries are called that rely on freshly built
48- # libraries. These reside in build/lib, and are not found by
49- # default.
50- preBuild = ''
51- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib:$PWD/VTK/ThirdParty/vtkm/vtk-m/lib
52- '';
53-54 cmakeFlags = [
55 "-DCMAKE_BUILD_TYPE=Release"
56 "-DPARAVIEW_ENABLE_FFMPEG=ON"
···27 wayland qtwayland
28 ];
29 outputs = [ "out" "dev" ];
30- # We need the RPATH for linking, because the `libkdeinit5_dolphin.so` links
31- # private against its dependencies and without the correct RPATH, these
32- # dependencies are not found.
33- cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
34}
···1617 outputs = [ "out" "doc" ]; # headers are just two and very small
1819- preConfigure =
20- if stdenv.isDarwin then ''
21- export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}"`pwd`/build/src
22- '' else ''
23- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}"`pwd`/build/src
24- '';
25-26 nativeBuildInputs = [ cmake ];
2728 meta = with lib; {
···1617 outputs = [ "out" "doc" ]; # headers are just two and very small
18000000019 nativeBuildInputs = [ cmake ];
2021 meta = with lib; {
+2
pkgs/applications/misc/edgetx/default.nix
···29 "-DGTEST_ROOT=${gtest.src}/googletest"
30 "-DQT_TRANSLATIONS_DIR=${qttranslations}/translations"
31 "-DDFU_UTIL_PATH=${dfu-util}/bin/dfu-util"
0032 ];
3334 meta = with lib; {
···29 "-DGTEST_ROOT=${gtest.src}/googletest"
30 "-DQT_TRANSLATIONS_DIR=${qttranslations}/translations"
31 "-DDFU_UTIL_PATH=${dfu-util}/bin/dfu-util"
32+ # file RPATH_CHANGE could not write new RPATH
33+ "-DCMAKE_SKIP_BUILD_RPATH=ON"
34 ];
3536 meta = with lib; {
+3
pkgs/applications/misc/opentx/default.nix
···31 # XXX I would prefer to include these here, though we will need to file a bug upstream to get that changed.
32 #"-DDFU_UTIL_PATH=${dfu-util}/bin/dfu-util"
33 #"-DAVRDUDE_PATH=${avrdude}/bin/avrdude"
00034 ];
3536 meta = with lib; {
···31 # XXX I would prefer to include these here, though we will need to file a bug upstream to get that changed.
32 #"-DDFU_UTIL_PATH=${dfu-util}/bin/dfu-util"
33 #"-DAVRDUDE_PATH=${avrdude}/bin/avrdude"
34+35+ # file RPATH_CHANGE could not write new RPATH
36+ "-DCMAKE_SKIP_BUILD_RPATH=ON"
37 ];
3839 meta = with lib; {
···83 cmakeFlags = [
84 "-DMINIZIP_INCLUDE_DIRS=${minizip2}/include"
85 "-DMINIZIP_LIBRARIES=minizip"
00086 ];
8788 # The default install phase fails because the paths are somehow messed up in
···83 cmakeFlags = [
84 "-DMINIZIP_INCLUDE_DIRS=${minizip2}/include"
85 "-DMINIZIP_LIBRARIES=minizip"
86+87+ # RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
88+ "-DCMAKE_SKIP_BUILD_RPATH=ON"
89 ];
9091 # The default install phase fails because the paths are somehow messed up in
···40 ];
4142 # Disable warnings that are irrelevant to us as packagers
43- cmakeFlags = "-Wno-dev";
4445 # We run one of the executables we build while the build is
46 # still running (and patchelf hasn't been invoked) which means
···40 ];
4142 # Disable warnings that are irrelevant to us as packagers
43+ cmakeFlags = [ "-Wno-dev" ];
4445 # We run one of the executables we build while the build is
46 # still running (and patchelf hasn't been invoked) which means
···61 CXXFLAGS = [
62 ''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"''
63 ];
64- cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
65 postInstall = ''
66 # Some package(s) refer to these service types by the wrong name.
67 # I would prefer to patch those packages, but I cannot find them!
···61 CXXFLAGS = [
62 ''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"''
63 ];
064 postInstall = ''
65 # Some package(s) refer to these service types by the wrong name.
66 # I would prefer to patch those packages, but I cannot find them!
···3233 cmakeFlags = [ "-DWARNINGS_AS_ERRORS=OFF" "-DWITH_PYTHON_BINDINGS=OFF" ];
3435- # To handle the lack of 'local' RPATH; required, as they call one of
36- # their built binaries requiring their libs, in the build process.
37- preBuild = ''
38- export LD_LIBRARY_PATH="$(pwd)/src''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
39- '';
40-41 # Note: only openblas and not atlas part of this Nix expression
42 # see pkgs/development/libraries/science/math/liblapack/3.5.0.nix
43 # to get a hint howto setup atlas instead of openblas
···3233 cmakeFlags = [ "-DWARNINGS_AS_ERRORS=OFF" "-DWITH_PYTHON_BINDINGS=OFF" ];
3400000035 # Note: only openblas and not atlas part of this Nix expression
36 # see pkgs/development/libraries/science/math/liblapack/3.5.0.nix
37 # to get a hint howto setup atlas instead of openblas
···1-# New rust versions should first go to staging.
2-# Things to check after updating:
3-# 1. Rustc should produce rust binaries on x86_64-linux, aarch64-linux and x86_64-darwin:
4-# i.e. nix-shell -p fd or @GrahamcOfBorg build fd on github
5-# This testing can be also done by other volunteers as part of the pull
6-# request review, in case platforms cannot be covered.
7-# 2. The LLVM version used for building should match with rust upstream.
8-# Check the version number in the src/llvm-project git submodule in:
9-# https://github.com/rust-lang/rust/blob/<version-tag>/.gitmodules
10-# 3. Firefox and Thunderbird should still build on x86_64-linux.
11-12-{ stdenv, lib
13-, buildPackages
14-, newScope, callPackage
15-, CoreFoundation, Security, SystemConfiguration
16-, pkgsBuildTarget, pkgsBuildBuild, pkgsBuildHost
17-, makeRustPlatform
18-, llvmPackages_11
19-, llvmPackages_14, llvm_14
20-} @ args:
21-22-import ./default.nix {
23- rustcVersion = "1.61.0";
24- rustcSha256 = "1vfs05hkf9ilk19b2vahqn8l6k17pl9nc1ky9kgspaascx8l62xd";
25-26- llvmSharedForBuild = pkgsBuildBuild.llvmPackages_14.libllvm.override { enableSharedLibraries = true; };
27- llvmSharedForHost = pkgsBuildHost.llvmPackages_14.libllvm.override { enableSharedLibraries = true; };
28- llvmSharedForTarget = pkgsBuildTarget.llvmPackages_14.libllvm.override { enableSharedLibraries = true; };
29-30- llvmBootstrapForDarwin = llvmPackages_11;
31-32- # For use at runtime
33- llvmShared = llvm_14.override { enableSharedLibraries = true; };
34-35- # Expose llvmPackages used for rustc from rustc via passthru for LTO in Firefox
36- llvmPackages = llvmPackages_14;
37-38- # Note: the version MUST be one version prior to the version we're
39- # building
40- bootstrapVersion = "1.60.0";
41-42- # fetch hashes by running `print-hashes.sh ${bootstrapVersion}`
43- bootstrapHashes = {
44- i686-unknown-linux-gnu = "2a635269dc9ad8f7bbdf168cdf120e1ec803d36adc832c0804f38e0acc3e2357";
45- x86_64-unknown-linux-gnu = "b8a4c3959367d053825e31f90a5eb86418eb0d80cacda52bfa80b078e18150d5";
46- x86_64-unknown-linux-musl = "f0feefcb1985c5c894ad9b0f44e6f09900b31c0eb5f49827da9f37d332a63894";
47- arm-unknown-linux-gnueabihf = "161b2b97d4512080350cc6656b0765ebae870335e86c2896bed08b32c66fbdf4";
48- armv7-unknown-linux-gnueabihf = "f2d76e9458949675bab8fcae44f600d30d91f62bf93c127b6b1fe3130e67d5d9";
49- aarch64-unknown-linux-gnu = "99c419c2f35d4324446481c39402c7baecd7a8baed7edca9f8d6bbd33c05550c";
50- aarch64-unknown-linux-musl = "fe7e9bad8beea84973f7ffa39879929de4ac8afad872650fb0af6b068f05faa6";
51- x86_64-apple-darwin = "0b10dc45cddc4d2355e38cac86d71a504327cb41d41d702d4050b9847ad4258c";
52- aarch64-apple-darwin = "b532672c278c25683ca63d78e82bae829eea1a32308e844954fb66cfe34ad222";
53- powerpc64le-unknown-linux-gnu = "80125e90285b214c2b1f56ab86a09c8509aa17aec9d7127960a86a7008e8f7de";
54- riscv64gc-unknown-linux-gnu = "9cc7c6804bcbbecb9c35232035fc488dbcc8487606cc6be3da553cc446bf0fcd";
55- mips64el-unknown-linux-gnuabi64 = "d413681c22511259f7cd15414a00050cf151d46ac0f9282e765faeb86688deac";
56- };
57-58- selectRustPackage = pkgs: pkgs.rust_1_61;
59-60- rustcPatches = [
61- ];
62-}
63-64-(builtins.removeAttrs args [ "fetchpatch" "pkgsBuildHost" "llvmPackages_11" "llvmPackages_14" "llvm_14"])
···1+# New rust versions should first go to staging.
2+# Things to check after updating:
3+# 1. Rustc should produce rust binaries on x86_64-linux, aarch64-linux and x86_64-darwin:
4+# i.e. nix-shell -p fd or @GrahamcOfBorg build fd on github
5+# This testing can be also done by other volunteers as part of the pull
6+# request review, in case platforms cannot be covered.
7+# 2. The LLVM version used for building should match with rust upstream.
8+# Check the version number in the src/llvm-project git submodule in:
9+# https://github.com/rust-lang/rust/blob/<version-tag>/.gitmodules
10+# 3. Firefox and Thunderbird should still build on x86_64-linux.
11+12+{ stdenv, lib
13+, buildPackages
14+, newScope, callPackage
15+, CoreFoundation, Security, SystemConfiguration
16+, pkgsBuildTarget, pkgsBuildBuild, pkgsBuildHost
17+, makeRustPlatform
18+, llvmPackages_11
19+, llvmPackages_14, llvm_14
20+} @ args:
21+22+import ./default.nix {
23+ rustcVersion = "1.62.0";
24+ rustcSha256 = "09y06qmh7ihi9kgimpp3h4nj3cmgc1zypqyaba10dlk4kf07h23x";
25+26+ llvmSharedForBuild = pkgsBuildBuild.llvmPackages_14.libllvm.override { enableSharedLibraries = true; };
27+ llvmSharedForHost = pkgsBuildHost.llvmPackages_14.libllvm.override { enableSharedLibraries = true; };
28+ llvmSharedForTarget = pkgsBuildTarget.llvmPackages_14.libllvm.override { enableSharedLibraries = true; };
29+30+ llvmBootstrapForDarwin = llvmPackages_11;
31+32+ # For use at runtime
33+ llvmShared = llvm_14.override { enableSharedLibraries = true; };
34+35+ # Expose llvmPackages used for rustc from rustc via passthru for LTO in Firefox
36+ llvmPackages = llvmPackages_14;
37+38+ # Note: the version MUST be one version prior to the version we're
39+ # building
40+ bootstrapVersion = "1.61.0";
41+42+ # fetch hashes by running `print-hashes.sh ${bootstrapVersion}`
43+ bootstrapHashes = {
44+ i686-unknown-linux-gnu = "b15eb0ad44b7253e0b5b1a8cd285feb10e9fb0402840dba9a13112c3349a4b39";
45+ x86_64-unknown-linux-gnu = "066b324239d30787ce64142d7e04912f2e1850c07db3b2354d8654e02ff8b23a";
46+ x86_64-unknown-linux-musl = "0904f6b769ae28c259e0e25a41e99290a4ae2a36bca63ae153790b2ebbc427bf";
47+ arm-unknown-linux-gnueabihf = "cc32705cd1b583aaac74e6663f71392131dc0355a0f484cb56f0378b71ea7ebc";
48+ armv7-unknown-linux-gnueabihf = "2782ec75ea4abb402513e2e57becc6c14e67b492d57228cddedef6db0853b165";
49+ aarch64-unknown-linux-gnu = "261cd47bc3c98c9f97b601d1ad2a7d9b33c9ea63c9a351119c2f6d4e82f5d436";
50+ aarch64-unknown-linux-musl = "feb79985cb161a10b252236852df8db3bf3593c78905b84c7e94cd4454327e47";
51+ x86_64-apple-darwin = "d851f1a473926a5d8f111ed08002047a5dc4ad944a5b7f8d5d2f1f266b51e66a";
52+ aarch64-apple-darwin = "2dbafd13d007543aada47179fa273f9a3865f27e0a07bd69be61801232a0819e";
53+ powerpc64le-unknown-linux-gnu = "6d5cd579b68a2adc20384406c69a92beaaf4941056e126ff0ed1ec2f3a4e721f";
54+ riscv64gc-unknown-linux-gnu = "3d0f3b1a8522e09fffdf920a061794ac3107410eb1fe8f5d62a7aae3c6dcb81e";
55+ mips64el-unknown-linux-gnuabi64 = "6ed5b6492e68f45488108abd06dbcd4b89c46cdbd4715331bb11e88f18500815";
56+ };
57+58+ selectRustPackage = pkgs: pkgs.rust_1_62;
59+60+ rustcPatches = [
61+ ];
62+}
63+64+(builtins.removeAttrs args [ "fetchpatch" "pkgsBuildHost" "llvmPackages_11" "llvmPackages_14" "llvm_14"])
···30 "-DLLVM_DIR=${llvm_11.dev}"
31 "-DBUILD_SHARED_LIBS=YES"
32 "-DLLVM_SPIRV_BUILD_EXTERNAL=YES"
0033 ];
3435 # FIXME: CMake tries to run "/llvm-lit" which of course doesn't exist
···30 "-DLLVM_DIR=${llvm_11.dev}"
31 "-DBUILD_SHARED_LIBS=YES"
32 "-DLLVM_SPIRV_BUILD_EXTERNAL=YES"
33+ # RPATH of binary /nix/store/.../bin/llvm-spirv contains a forbidden reference to /build/
34+ "-DCMAKE_SKIP_BUILD_RPATH=ON"
35 ];
3637 # FIXME: CMake tries to run "/llvm-lit" which of course doesn't exist
···2122 doCheck = true;
23 checkTarget = "test";
24- preCheck = ''
25- export LD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
26- export DYLD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
27- '';
2829 meta = with lib; {
30 description = "An open source implementation of the actor model in C++";
···2122 doCheck = true;
23 checkTarget = "test";
00002425 meta = with lib; {
26 description = "An open source implementation of the actor model in C++";
···23 sed -r -i 's/(\<_Complex)(\s+)(float|double)/\3\2\1/' $out/include/$pname/freedv_api.h
24 '';
250000026 meta = with lib; {
27 description = "Speech codec designed for communications quality speech at low data rates";
28 homepage = "https://www.rowetel.com/codec2.html";
···23 sed -r -i 's/(\<_Complex)(\s+)(float|double)/\3\2\1/' $out/include/$pname/freedv_api.h
24 '';
2526+ cmakeFlags = [
27+ # RPATH of binary /nix/store/.../bin/freedv_rx contains a forbidden reference to /build/
28+ "-DCMAKE_SKIP_BUILD_RPATH=ON"
29+ ];
30+31 meta = with lib; {
32 description = "Speech codec designed for communications quality speech at low data rates";
33 homepage = "https://www.rowetel.com/codec2.html";
-5
pkgs/development/libraries/cpp-netlib/default.nix
···19 "-DCPP-NETLIB_BUILD_SHARED_LIBS=ON"
20 ];
2122- # The test driver binary lacks an RPath to the library's libs
23- preCheck = ''
24- export LD_LIBRARY_PATH=$PWD/libs/network/src
25- '';
26-27 # Most tests make network GET requests to various websites
28 doCheck = false;
29
···19 "-DCPP-NETLIB_BUILD_SHARED_LIBS=ON"
20 ];
210000022 # Most tests make network GET requests to various websites
23 doCheck = false;
24
···16 sed -ie 's/<stdlib.h>/<stdlib.h>\n#include <unistd.h>/' src/CTPP2FileSourceLoader.cpp
17 '';
180000019 doCheck = false; # fails
2021 meta = with lib; {
···16 sed -ie 's/<stdlib.h>/<stdlib.h>\n#include <unistd.h>/' src/CTPP2FileSourceLoader.cpp
17 '';
1819+ cmakeFlags = [
20+ # RPATH of binary /nix/store/.../bin/ctpp2json contains a forbidden reference to /build/
21+ "-DCMAKE_SKIP_BUILD_RPATH=ON"
22+ ];
23+24 doCheck = false; # fails
2526 meta = with lib; {
-8
pkgs/development/libraries/cutelyst/default.nix
···31 "-DPLUGIN_VIEW_GRANTLEE=ON"
32 ];
3334- preBuild = lib.optionalString stdenv.isLinux ''
35- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}`pwd`/Cutelyst:`pwd`/EventLoopEPoll"
36- '';
37-38- postBuild = lib.optionalString stdenv.isLinux ''
39- unset LD_LIBRARY_PATH
40- '';
41-42 meta = with lib; {
43 description = "C++ Web Framework built on top of Qt";
44 homepage = "https://cutelyst.org/";
···31 "-DPLUGIN_VIEW_GRANTLEE=ON"
32 ];
330000000034 meta = with lib; {
35 description = "C++ Web Framework built on top of Qt";
36 homepage = "https://cutelyst.org/";
+1-1
pkgs/development/libraries/docopt_cpp/default.nix
···33 "@CMAKE_INSTALL_LIBDIR@"
34 '';
3536- checkPhase = "LD_LIBRARY_PATH=$(pwd) python ./run_tests";
3738 meta = with lib; {
39 description = "C++11 port of docopt";
···33 "@CMAKE_INSTALL_LIBDIR@"
34 '';
3536+ checkPhase = "python ./run_tests";
3738 meta = with lib; {
39 description = "C++11 port of docopt";
···1718 cmakeFlags = [
19 "-DBUILD_SHARED_LIBS=ON"
20- # Mak CMake place RPATHs such that tests will find the built libraries.
21- # See https://github.com/NixOS/nixpkgs/pull/144561#discussion_r742468811 and https://github.com/NixOS/nixpkgs/pull/108496
22- "-DCMAKE_SKIP_BUILD_RPATH=OFF"
23 ];
2425 # TODO: Re-enable Darwin tests once we're on a release that has https://github.com/google/glog/issues/709#issuecomment-960381653 fixed
···1718 cmakeFlags = [
19 "-DBUILD_SHARED_LIBS=ON"
00020 ];
2122 # TODO: Re-enable Darwin tests once we're on a release that has https://github.com/google/glog/issues/709#issuecomment-960381653 fixed
···43 sed -i 's/#define JSONCPP_USING_SECURE_MEMORY 0/#define JSONCPP_USING_SECURE_MEMORY 1/' include/json/version.h
44 '';
4546- # Hack to be able to run the test, broken because we use
47- # CMAKE_SKIP_BUILD_RPATH to avoid cmake resetting rpath on install
48- preBuild = if stdenv.isDarwin then ''
49- export DYLD_LIBRARY_PATH="$PWD/lib''${DYLD_LIBRARY_PATH:+:}$DYLD_LIBRARY_PATH"
50- '' else ''
51- export LD_LIBRARY_PATH="$PWD/lib''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
52- '';
53-54 nativeBuildInputs = [ cmake python3 validatePkgConfig ];
5556 cmakeFlags = [
···129130 doCheck = !stdenv.hostPlatform.isi686;
131132- # The test driver runs a test `LibraryCLinkageTest` which without
133- # LD_LIBRARY_PATH setting errors with:
134- # /build/source/build/tools/tests/libjxl_test: error while loading shared libraries: libjxl.so.0
135- # The required file is in the build directory (`$PWD`).
136- preCheck = if stdenv.isDarwin then ''
137- export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD
138- '' else ''
139- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD
140- '';
141-142 meta = with lib; {
143 homepage = "https://github.com/libjxl/libjxl";
144 description = "JPEG XL image format reference implementation.";
···129130 doCheck = !stdenv.hostPlatform.isi686;
1310000000000132 meta = with lib; {
133 homepage = "https://github.com/libjxl/libjxl";
134 description = "JPEG XL image format reference implementation.";
···52 # the other libraries as `libGL` is part of our `buildInputs`.
53 NIX_CFLAGS_LINK = "-Wl,-rpath,${libGL}/lib";
540000055 preFixup = ''
56 mkdir -p "$out/bin"
57 cp -a "./bin/"* "$out/bin"
···52 # the other libraries as `libGL` is part of our `buildInputs`.
53 NIX_CFLAGS_LINK = "-Wl,-rpath,${libGL}/lib";
5455+ cmakeFlags = [
56+ # RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
57+ "-DCMAKE_SKIP_BUILD_RPATH=ON"
58+ ];
59+60 preFixup = ''
61 mkdir -p "$out/bin"
62 cp -a "./bin/"* "$out/bin"
···21 # Tests fail on some Hydra builders, because they do not support SSE4.2.
22 doCheck = false;
2324- # The test driver doesn't add an RPath to the build libdir
25- preCheck = ''
26- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/src
27- export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD/src
28- '';
29-30 # The cmake install gets tripped up and installs a nix tree into $out, in
31 # addition to the correct install; clean it up.
32 postInstall = ''
···21 # Tests fail on some Hydra builders, because they do not support SSE4.2.
22 doCheck = false;
2300000024 # The cmake install gets tripped up and installs a nix tree into $out, in
25 # addition to the correct install; clean it up.
26 postInstall = ''
···1-From 4d8a88c134df634ba610ff8db1eb8478ac5fd345 Mon Sep 17 00:00:00 2001
2-From: Xi Ruoyao <xry111@xry111.site>
3-Date: Wed, 22 Jun 2022 18:07:05 +0800
4-Subject: [PATCH] rsa: fix bn_reduce_once_in_place call for
5- rsaz_mod_exp_avx512_x2
6-7-bn_reduce_once_in_place expects the number of BN_ULONG, but factor_size
8-is moduli bit size.
9-10-Fixes #18625.
11-12-Signed-off-by: Xi Ruoyao <xry111@xry111.site>
13-14-Reviewed-by: Tomas Mraz <tomas@openssl.org>
15-Reviewed-by: Paul Dale <pauli@openssl.org>
16-(Merged from https://github.com/openssl/openssl/pull/18626)
17----
18- crypto/bn/rsaz_exp_x2.c | 3 +++
19- 1 file changed, 3 insertions(+)
20-21-diff --git a/crypto/bn/rsaz_exp_x2.c b/crypto/bn/rsaz_exp_x2.c
22-index 6b04486e3f56..f979cebd6fb7 100644
23---- a/crypto/bn/rsaz_exp_x2.c
24-+++ b/crypto/bn/rsaz_exp_x2.c
25-@@ -257,6 +257,9 @@ int ossl_rsaz_mod_exp_avx512_x2(BN_ULONG *res1,
26- from_words52(res1, factor_size, rr1_red);
27- from_words52(res2, factor_size, rr2_red);
28-29-+ /* bn_reduce_once_in_place expects number of BN_ULONG, not bit size */
30-+ factor_size /= sizeof(BN_ULONG) * 8;
31-+
32- bn_reduce_once_in_place(res1, /*carry=*/0, m1, storage, factor_size);
33- bn_reduce_once_in_place(res2, /*carry=*/0, m2, storage, factor_size);
34-
···0000000000000000000000000000000000
+4-8
pkgs/development/libraries/openssl/default.nix
···186187188 openssl_1_1 = common rec {
189- version = "1.1.1p";
190- sha256 = "sha256-v2G2Kqpmx8djmUKpTeTJroKAwI8X1OrC5EZE2fyKzm8=";
191 patches = [
192 ./1.1/nix-ssl-cert-file.patch
193···201 };
202203 openssl_3 = common {
204- version = "3.0.4";
205- sha256 = "sha256-KDGEPppmigq0eOcCCtY9LWXlH3KXdHLcc+/O+6/AwA8=";
206 patches = [
207 ./3.0/nix-ssl-cert-file.patch
208209 # openssl will only compile in KTLS if the current kernel supports it.
210 # This patch disables build-time detection.
211 ./3.0/openssl-disable-kernel-detection.patch
212-213- # https://guidovranken.com/2022/06/27/notes-on-openssl-remote-memory-corruption/
214- # https://github.com/openssl/openssl/commit/4d8a88c134df634ba610ff8db1eb8478ac5fd345.patch
215- 3.0/rsa-fix-bn_reduce_once_in_place-call-for-rsaz_mod_exp_avx512_x2.patch
216217 (if stdenv.hostPlatform.isDarwin
218 then ./use-etc-ssl-certs-darwin.patch
···186187188 openssl_1_1 = common rec {
189+ version = "1.1.1q";
190+ sha256 = "sha256-15Oc5hQCnN/wtsIPDi5XAxWKSJpyslB7i9Ub+Mj9EMo=";
191 patches = [
192 ./1.1/nix-ssl-cert-file.patch
193···201 };
202203 openssl_3 = common {
204+ version = "3.0.5";
205+ sha256 = "sha256-qn2Nm+9xrWUlxVuhHl9Dl4ic5Jwsk0nc6m0+TwsCSno=";
206 patches = [
207 ./3.0/nix-ssl-cert-file.patch
208209 # openssl will only compile in KTLS if the current kernel supports it.
210 # This patch disables build-time detection.
211 ./3.0/openssl-disable-kernel-detection.patch
0000212213 (if stdenv.hostPlatform.isDarwin
214 then ./use-etc-ssl-certs-darwin.patch
-5
pkgs/development/libraries/orcania/default.nix
···1819 doCheck = true;
2021- preCheck = ''
22- export LD_LIBRARY_PATH="$(pwd)''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
23- export DYLD_FALLBACK_LIBRARY_PATH="$(pwd):$DYLD_FALLBACK_LIBRARY_PATH"
24- '';
25-26 meta = with lib; {
27 description = "Potluck with different functions for different purposes that can be shared among C programs";
28 homepage = "https://github.com/babelouest/orcania";
···1819 doCheck = true;
200000021 meta = with lib; {
22 description = "Potluck with different functions for different purposes that can be shared among C programs";
23 homepage = "https://github.com/babelouest/orcania";
···2223 checkInputs = [ check ];
2425- # Hack to be able to run the test, broken because we use
26- # CMAKE_SKIP_BUILD_RPATH to avoid cmake resetting rpath on install
27- preCheck = if stdenv.isDarwin then ''
28- export DYLD_LIBRARY_PATH="$(pwd)''${DYLD_LIBRARY_PATH:+:}$DYLD_LIBRARY_PATH"
29- '' else ''
30- export LD_LIBRARY_PATH="$(pwd)''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
31- '';
32-33 preConfigure = ''
34 # Enable long long support (required for filezilla)
35 sed -ire '/PUGIXML_HAS_LONG_LONG/ s/^\/\///' src/pugiconfig.hpp
···2223 checkInputs = [ check ];
240000000025 preConfigure = ''
26 # Enable long long support (required for filezilla)
27 sed -ire '/PUGIXML_HAS_LONG_LONG/ s/^\/\///' src/pugiconfig.hpp
···6768 # Run single threaded
69 export OMP_NUM_THREADS=1
70-71- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}`pwd`/lib
72 '';
7374 meta = with lib; {
···6768 # Run single threaded
69 export OMP_NUM_THREADS=1
0070 '';
7172 meta = with lib; {
···5354 patches = map fetchpatch patchesToFetch;
5556- preBuild = ''
57- export LD_LIBRARY_PATH="$(pwd)/lib";
58- '';
59-60 dontWrapQtApps = true;
6162 # Shared libraries don't work, because of rpath troubles with the current
···5354 patches = map fetchpatch patchesToFetch;
55000056 dontWrapQtApps = true;
5758 # Shared libraries don't work, because of rpath troubles with the current
···102 cmakeFlags="-DBUILD_TESTING=OFF $cmakeFlags"
103 fi
104105- # Avoid cmake resetting the rpath of binaries, on make install
106- # And build always Release, to ensure optimisation flags
107- cmakeFlags="-DCMAKE_BUILD_TYPE=${cmakeBuildType:-Release} -DCMAKE_SKIP_BUILD_RPATH=ON $cmakeFlags"
108109 # Disable user package registry to avoid potential side effects
110 # and unecessary attempts to access non-existent home folder
···102 cmakeFlags="-DBUILD_TESTING=OFF $cmakeFlags"
103 fi
104105+ # Always build Release, to ensure optimisation flags
106+ cmakeFlags="-DCMAKE_BUILD_TYPE=${cmakeBuildType:-Release} $cmakeFlags"
0107108 # Disable user package registry to avoid potential side effects
109 # and unecessary attempts to access non-existent home folder
+1
pkgs/development/tools/misc/libtool/default.nix
···15 # Don't fixup "#! /bin/sh" in Libtool, otherwise it will use the
16 # "fixed" path in generated files!
17 dontPatchShebangs = true;
01819 meta = {
20 description = "Generic library support script";
···15 # Don't fixup "#! /bin/sh" in Libtool, otherwise it will use the
16 # "fixed" path in generated files!
17 dontPatchShebangs = true;
18+ dontFixLibtool = true;
1920 meta = {
21 description = "Generic library support script";
+1
pkgs/development/tools/misc/libtool/libtool2.nix
···51 # Don't fixup "#! /bin/sh" in Libtool, otherwise it will use the
52 # "fixed" path in generated files!
53 dontPatchShebangs = true;
05455 # XXX: The GNU ld wrapper does all sorts of nasty things wrt. RPATH, which
56 # leads to the failure of a number of tests.
···51 # Don't fixup "#! /bin/sh" in Libtool, otherwise it will use the
52 # "fixed" path in generated files!
53 dontPatchShebangs = true;
54+ dontFixLibtool = true;
5556 # XXX: The GNU ld wrapper does all sorts of nasty things wrt. RPATH, which
57 # leads to the failure of a number of tests.
···108 "-DTCAM_INTERNAL_ARAVIS=OFF"
109 "-DTCAM_ARAVIS_USB_VISION=${if withAravis && withAravisUsbVision then "ON" else "OFF"}"
110 "-DTCAM_INSTALL_FORCE_PREFIX=ON"
111- # There are gobject introspection commands launched as part of the build. Those have a runtime
112- # dependency on `libtcam` (which itself is built as part of this build). In order to allow
113- # that, we set the dynamic linker's path to point on the build time location of the library.
114- "-DCMAKE_SKIP_BUILD_RPATH=OFF"
115 ];
116117 doCheck = true;
···34 outputs = [ "out" "static" ];
3536 cmakeFlags = [
37- "-DCMAKE_SKIP_BUILD_RPATH=OFF" # To run libmysql/libmysql_api_test during build.
38 "-DFORCE_UNSUPPORTED_COMPILER=1" # To configure on Darwin.
39 "-DWITH_ROUTER=OFF" # It may be packaged separately.
40 "-DWITH_SYSTEM_LIBS=ON"
···34 outputs = [ "out" "static" ];
3536 cmakeFlags = [
037 "-DFORCE_UNSUPPORTED_COMPILER=1" # To configure on Darwin.
38 "-DWITH_ROUTER=OFF" # It may be packaged separately.
39 "-DWITH_SYSTEM_LIBS=ON"
···60 "generic"
61 "D_USE_BZ2=-DUSE_BZIP2"
62 "L_BZ2=-lbz2"
63+ ]
64+ # `lchmod` is not available on Linux, so we remove it to fix "not supported" errors (when the zip file contains symlinks).
65+ # Alpine (musl) and Debian (glibc) also add this flag.
66+ ++ lib.optionals stdenv.isLinux [ "LOCAL_UNZIP=-DNO_LCHMOD" ];
6768 preConfigure = ''
69 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
···45 "-DWITH_ZLIB=system"
46 "-DWITH_VALGRIND=ON"
47 "-DWITH_MAN_PAGES=OFF"
48- "-DCMAKE_SKIP_BUILD_RPATH=OFF" # To run libmysql/libmysql_api_test during build.
49 ];
5051 postInstall = ''
···184 substituteInPlace src/common/module.c --replace "/sbin/modprobe" "modprobe"
185 substituteInPlace src/common/module.c --replace "/bin/grep" "grep"
186187- # for pybind/rgw to find internal dep
188- export LD_LIBRARY_PATH="$PWD/build/lib''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
189 # install target needs to be in PYTHONPATH for "*.pth support" check to succeed
190 # set PYTHONPATH, so the build system doesn't silently skip installing ceph-volume and others
191 export PYTHONPATH=${ceph-python-env}/${sitePackages}:$lib/${sitePackages}:$out/${sitePackages}
···184 substituteInPlace src/common/module.c --replace "/sbin/modprobe" "modprobe"
185 substituteInPlace src/common/module.c --replace "/bin/grep" "grep"
18600187 # install target needs to be in PYTHONPATH for "*.pth support" check to succeed
188 # set PYTHONPATH, so the build system doesn't silently skip installing ceph-volume and others
189 export PYTHONPATH=${ceph-python-env}/${sitePackages}:$lib/${sitePackages}:$out/${sitePackages}
···123 # TODO(19b98110126fde7cbb1127af7e3fe1568eacad3d): Needed for fstatfs() I
124 # don't know why it is not properly detected cross building with glibc.
125 "fu_cv_sys_stat_statfs2_bsize=yes"
126- ];
00000127128 # The tests are known broken on Cygwin
129 # (http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/19025),
···123 # TODO(19b98110126fde7cbb1127af7e3fe1568eacad3d): Needed for fstatfs() I
124 # don't know why it is not properly detected cross building with glibc.
125 "fu_cv_sys_stat_statfs2_bsize=yes"
126+ ]
127+ # /proc/uptime is available on Linux and produces accurate results even if
128+ # the boot time is set to the epoch because the system has no RTC. We
129+ # explicitly enable it for cases where it can't be detected automatically,
130+ # such as when cross-compiling.
131+ ++ optional stdenv.hostPlatform.isLinux "gl_cv_have_proc_uptime=yes";
132133 # The tests are known broken on Cygwin
134 # (http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/19025),
···66 #
67 # Build inputs is used for extra deps that may be needed. And zendExtension
68 # will mark the extension as a zend extension or not.
69- mkExtension =
70- { name
71 , configureFlags ? [ "--enable-${name}" ]
72 , internalDeps ? [ ]
73 , postPhpize ? ""
···151 description = "PHP upstream extension: ${name}";
152 inherit (php.meta) maintainers homepage license;
153 };
154- });
155156 php = phpPackage;
157
···66 #
67 # Build inputs is used for extra deps that may be needed. And zendExtension
68 # will mark the extension as a zend extension or not.
69+ mkExtension = lib.makeOverridable
70+ ({ name
71 , configureFlags ? [ "--enable-${name}" ]
72 , internalDeps ? [ ]
73 , postPhpize ? ""
···151 description = "PHP upstream extension: ${name}";
152 inherit (php.meta) maintainers homepage license;
153 };
154+ }));
155156 php = phpPackage;
157