From 2e5b94de00fa9735d6fe8d4892c8bee113f7a726 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 20 Jun 2023 14:46:07 +0200 Subject: [PATCH] nss_latest: remove curve25519 support Was enabled unconditionally, but causes SIGILL on machines that do not support the Intel ADX instruction extensions. --- pkgs/development/libraries/nss/generic.nix | 4 ++ .../libraries/nss/remove-c25519-support.patch | 69 +++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 pkgs/development/libraries/nss/remove-c25519-support.patch diff --git a/pkgs/development/libraries/nss/generic.nix b/pkgs/development/libraries/nss/generic.nix index b2d1c1e15fd8..9d9c21cc690d 100644 --- a/pkgs/development/libraries/nss/generic.nix +++ b/pkgs/development/libraries/nss/generic.nix @@ -52,6 +52,10 @@ stdenv.mkDerivation rec { # https://bugzilla.mozilla.org/show_bug.cgi?id=1771273 # https://hg.mozilla.org/projects/nss/raw-rev/21e7aaa1f7d94bca15d997e5b4c2329b32fad21a ./gcc-13-esr.patch + ] ++ lib.optionals (lib.versionAtLeast version "3.90") [ + # https://bugzilla.mozilla.org/show_bug.cgi?id=1836925 + # https://phabricator.services.mozilla.com/D180068 + ./remove-c25519-support.patch ]; patchFlags = [ "-p0" ]; diff --git a/pkgs/development/libraries/nss/remove-c25519-support.patch b/pkgs/development/libraries/nss/remove-c25519-support.patch new file mode 100644 index 000000000000..d5dba016278f --- /dev/null +++ b/pkgs/development/libraries/nss/remove-c25519-support.patch @@ -0,0 +1,69 @@ +diff --git a/nss/lib/freebl/Makefile b/nss/lib/freebl/Makefile +index 74e8e65..aa9dd95 100644 +--- nss/lib/freebl/Makefile ++++ nss/lib/freebl/Makefile +@@ -568,7 +568,6 @@ ifneq ($(shell $(CC) -? 2>&1 >/dev/null