summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2022-08-05 08:42:30 +0200
committerVladimír Čunát <v@cunat.cz>2022-08-05 08:42:30 +0200
commit2ed5b6b0f5d8a06c9db95c2c6b7bd559507e1c24 (patch)
treecd439583bdad0dfe31cb23488a4e0c004d10f603
parentMerge pull request #185163 from NixOS/backport-185131-to-release-22.05 (diff)
parentMerge release-22.05 into staging-next-22.05 (diff)
downloadnixpkgs-2ed5b6b0f5d8a06c9db95c2c6b7bd559507e1c24.tar.gz
Merge #184513: staging-next-22.05 - iteration 6
... into release-22.05
-rw-r--r--nixos/tests/openldap.nix12
-rw-r--r--pkgs/development/compilers/llvm/14/llvm/default.nix14
-rw-r--r--pkgs/development/libraries/SDL2/default.nix2
-rw-r--r--pkgs/development/libraries/openldap/default.nix3
-rw-r--r--pkgs/development/libraries/pixman/default.nix5
-rw-r--r--pkgs/development/libraries/zeroc-ice/default.nix3
-rw-r--r--pkgs/development/python-modules/lxml/default.nix9
-rw-r--r--pkgs/os-specific/linux/kexec-tools/default.nix10
-rw-r--r--pkgs/top-level/perl-packages.nix13
9 files changed, 62 insertions, 9 deletions
diff --git a/nixos/tests/openldap.nix b/nixos/tests/openldap.nix
index 3c388119d5d2..96459d21a5ef 100644
--- a/nixos/tests/openldap.nix
+++ b/nixos/tests/openldap.nix
@@ -13,10 +13,17 @@ let
objectClass: organizationalUnit
ou: users
'';
+ ldapClientConfig = {
+ enable = true;
+ loginPam = false;
+ nsswitch = false;
+ server = "ldap://";
+ base = "dc=example";
+ };
testScript = ''
machine.wait_for_unit("openldap.service")
machine.succeed(
- 'ldapsearch -LLL -D "cn=root,dc=example" -w notapassword -b "dc=example"',
+ 'ldapsearch -LLL -D "cn=root,dc=example" -w notapassword',
)
'';
in {
@@ -57,6 +64,7 @@ in {
};
declarativeContents."dc=example" = dbContents;
};
+ users.ldap = ldapClientConfig;
};
}) { inherit pkgs system; };
@@ -76,6 +84,7 @@ in {
rootpw = "notapassword";
declarativeContents."dc=example" = dbContents;
};
+ users.ldap = ldapClientConfig;
};
}) { inherit system pkgs; };
@@ -88,6 +97,7 @@ in {
enable = true;
configDir = "/var/db/slapd.d";
};
+ users.ldap = ldapClientConfig;
};
testScript = let
diff --git a/pkgs/development/compilers/llvm/14/llvm/default.nix b/pkgs/development/compilers/llvm/14/llvm/default.nix
index 05aac728b452..be80189454af 100644
--- a/pkgs/development/compilers/llvm/14/llvm/default.nix
+++ b/pkgs/development/compilers/llvm/14/llvm/default.nix
@@ -92,6 +92,20 @@ in stdenv.mkDerivation (rec {
'' + optionalString (stdenv.hostPlatform.system == "armv6l-linux") ''
# Seems to require certain floating point hardware (NEON?)
rm test/ExecutionEngine/frem.ll
+ '' + optionalString stdenv.hostPlatform.isRiscV ''
+ rm test/ExecutionEngine/frem.ll
+ rm test/ExecutionEngine/mov64zext32.ll
+ rm test/ExecutionEngine/test-interp-vec-arithm_float.ll
+ rm test/ExecutionEngine/test-interp-vec-arithm_int.ll
+ rm test/ExecutionEngine/test-interp-vec-logical.ll
+ rm test/ExecutionEngine/test-interp-vec-setcond-fp.ll
+ rm test/ExecutionEngine/test-interp-vec-setcond-int.ll
+ substituteInPlace unittests/Support/CMakeLists.txt \
+ --replace "CrashRecoveryTest.cpp" ""
+ rm unittests/Support/CrashRecoveryTest.cpp
+ substituteInPlace unittests/ExecutionEngine/Orc/CMakeLists.txt \
+ --replace "OrcCAPITest.cpp" ""
+ rm unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
'' + ''
patchShebangs test/BugPoint/compile-custom.ll.py
'';
diff --git a/pkgs/development/libraries/SDL2/default.nix b/pkgs/development/libraries/SDL2/default.nix
index 0112748695ee..286ee52df902 100644
--- a/pkgs/development/libraries/SDL2/default.nix
+++ b/pkgs/development/libraries/SDL2/default.nix
@@ -29,7 +29,7 @@
, libxkbcommon
, dbusSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid
, dbus
-, udevSupport ? false
+, udevSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid
, udev
, ibusSupport ? false
, ibus
diff --git a/pkgs/development/libraries/openldap/default.nix b/pkgs/development/libraries/openldap/default.nix
index 551a0827eee2..e6f2c218a5bf 100644
--- a/pkgs/development/libraries/openldap/default.nix
+++ b/pkgs/development/libraries/openldap/default.nix
@@ -97,7 +97,7 @@ stdenv.mkDerivation rec {
"CC=${stdenv.cc.targetPrefix}cc"
"STRIP=" # Disable install stripping as it breaks cross-compiling. We strip binaries anyway in fixupPhase.
"prefix=${placeholder "out"}"
- "sysconfdir=${placeholder "out"}/etc"
+ "sysconfdir=/etc"
"systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
# contrib modules require these
"moduledir=${placeholder "out"}/lib/modules"
@@ -134,6 +134,7 @@ stdenv.mkDerivation rec {
installFlags = [
"prefix=${placeholder "out"}"
+ "sysconfdir=${placeholder "out"}/etc"
"moduledir=${placeholder "out"}/lib/modules"
"INSTALL=install"
];
diff --git a/pkgs/development/libraries/pixman/default.nix b/pkgs/development/libraries/pixman/default.nix
index be41526c4f23..ffdaeaef035a 100644
--- a/pkgs/development/libraries/pixman/default.nix
+++ b/pkgs/development/libraries/pixman/default.nix
@@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
configureFlags = lib.optional stdenv.isAarch32 "--disable-arm-iwmmxt";
+ preConfigure = ''
+ # https://gitlab.freedesktop.org/pixman/pixman/-/issues/62
+ export OMP_NUM_THREADS=$((NIX_BUILD_CORES > 184 ? 184 : NIX_BUILD_CORES))
+ '';
+
doCheck = true;
postInstall = glib.flattenInclude;
diff --git a/pkgs/development/libraries/zeroc-ice/default.nix b/pkgs/development/libraries/zeroc-ice/default.nix
index b60168a6f5cb..4eef03c4a619 100644
--- a/pkgs/development/libraries/zeroc-ice/default.nix
+++ b/pkgs/development/libraries/zeroc-ice/default.nix
@@ -54,6 +54,9 @@ in stdenv.mkDerivation rec {
# these tests require network access so we need to skip them.
brokenTests = map escapeRegex [
"Ice/udp" "Glacier2" "IceGrid/simple" "IceStorm" "IceDiscovery/simple"
+
+ # FIXME: certificate expired, remove for next release?
+ "IceSSL/configuration"
];
# matches CONFIGS flag in makeFlagsArray
configFlag = optionalString cpp11 "--config=cpp11-shared";
diff --git a/pkgs/development/python-modules/lxml/default.nix b/pkgs/development/python-modules/lxml/default.nix
index 3ef230eb8e8d..f313d0708319 100644
--- a/pkgs/development/python-modules/lxml/default.nix
+++ b/pkgs/development/python-modules/lxml/default.nix
@@ -4,6 +4,7 @@
, libxslt
, zlib
, xcodebuild
+, fetchpatch
}:
buildPythonPackage rec {
@@ -17,6 +18,14 @@ buildPythonPackage rec {
sha256 = "sha256-ppyLn8B0YFQivRCOE8TjKGdDDQHbb7UdTUkevznoVC8=";
};
+ patches = [
+ (fetchpatch {
+ name = "CVE-2022-2309.patch";
+ url = "https://github.com/lxml/lxml/commit/86368e9cf70a0ad23cccd5ee32de847149af0c6f.patch";
+ sha256 = "sha256-2NHESuG+a2hx+1369l0lSrlRENPgeLxqL18mzvufNh8=";
+ })
+ ];
+
# setuptoolsBuildPhase needs dependencies to be passed through nativeBuildInputs
nativeBuildInputs = [ libxml2.dev libxslt.dev cython ] ++ lib.optionals stdenv.isDarwin [ xcodebuild ];
buildInputs = [ libxml2 libxslt zlib ];
diff --git a/pkgs/os-specific/linux/kexec-tools/default.nix b/pkgs/os-specific/linux/kexec-tools/default.nix
index 0631e1da2b1b..6faa401eccc5 100644
--- a/pkgs/os-specific/linux/kexec-tools/default.nix
+++ b/pkgs/os-specific/linux/kexec-tools/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, buildPackages, fetchurl, zlib }:
+{ lib, stdenv, buildPackages, fetchurl, fetchpatch, zlib }:
stdenv.mkDerivation rec {
pname = "kexec-tools";
@@ -12,6 +12,14 @@ stdenv.mkDerivation rec {
sha256 = "qmPNbH3ZWwbOumJAp/3GeSeJytp1plXmcUmHF1IkJBs=";
};
+ patches = [
+ # Use ELFv2 ABI on ppc64be
+ (fetchpatch {
+ url = "https://raw.githubusercontent.com/void-linux/void-packages/6c1192cbf166698932030c2e3de71db1885a572d/srcpkgs/kexec-tools/patches/ppc64-elfv2.patch";
+ sha256 = "19wzfwb0azm932v0vhywv4221818qmlmvdfwpvvpfyw4hjsc2s1l";
+ })
+ ];
+
hardeningDisable = [ "format" "pic" "relro" "pie" ];
# Prevent kexec-tools from using uname to detect target, which is wrong in
diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix
index c5d4a4950708..8e5617344b42 100644
--- a/pkgs/top-level/perl-packages.nix
+++ b/pkgs/top-level/perl-packages.nix
@@ -12853,12 +12853,15 @@ let
LWP = buildPerlPackage {
pname = "libwww-perl";
- version = "6.49";
+ version = "6.67";
src = fetchurl {
- url = "mirror://cpan/authors/id/O/OA/OALDERS/libwww-perl-6.49.tar.gz";
- sha256 = "19k0cg4j4qz005a4ngy48z4r8dc99dxlpq8kvj7qnk15mvgd1r63";
+ url = "mirror://cpan/authors/id/O/OA/OALDERS/libwww-perl-6.67.tar.gz";
+ sha256 = "sha256-lu7ECj/QqhvYNBF75eshxDj3MJTYYaGn5XdPCxImtyM=";
};
- propagatedBuildInputs = [ FileListing HTMLParser HTTPCookies HTTPDaemon HTTPNegotiate NetHTTP TryTiny WWWRobotRules ];
+ propagatedBuildInputs = [ FileListing HTMLParser HTTPCookies HTTPNegotiate NetHTTP TryTiny WWWRobotRules ]
+ # [22.05]: Propagate HTTPDaemon for non-cross builds
+ # to avoid changing behaviour from version 6.49
+ ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ HTTPDaemon ];
# support cross-compilation by avoiding using `has_module` which does not work in miniperl (it requires B native module)
postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
substituteInPlace Makefile.PL --replace 'if has_module' 'if 0; #'
@@ -12868,7 +12871,7 @@ let
description = "The World-Wide Web library for Perl";
license = with licenses; [ artistic1 gpl1Plus ];
};
- buildInputs = [ TestFatal TestNeeds TestRequiresInternet ];
+ checkInputs = [ HTTPDaemon TestFatal TestNeeds TestRequiresInternet ];
};
LWPAuthenOAuth = buildPerlPackage {