summaryrefslogtreecommitdiffstats
path: root/debian/patches
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 05:43:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 05:43:34 +0000
commita856bada1661f7e5c4047b336c66bffe7f6cb890 (patch)
tree360af2a9332d96dce820099a4a85e8a07b272c5a /debian/patches
parentAdding upstream version 2:4.35. (diff)
downloadnspr-a856bada1661f7e5c4047b336c66bffe7f6cb890.tar.xz
nspr-a856bada1661f7e5c4047b336c66bffe7f6cb890.zip
Adding debian version 2:4.35-1.1.debian/2%4.35-1.1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/0001-Avoid-libreswan-build-failures-on-mipsel-Closes-8544.patch30
-rw-r--r--debian/patches/series1
2 files changed, 31 insertions, 0 deletions
diff --git a/debian/patches/0001-Avoid-libreswan-build-failures-on-mipsel-Closes-8544.patch b/debian/patches/0001-Avoid-libreswan-build-failures-on-mipsel-Closes-8544.patch
new file mode 100644
index 0000000..fcf3e11
--- /dev/null
+++ b/debian/patches/0001-Avoid-libreswan-build-failures-on-mipsel-Closes-8544.patch
@@ -0,0 +1,30 @@
+From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
+Date: Fri, 10 Feb 2023 15:55:36 -0500
+Subject: Avoid libreswan build failures on mipsel (Closes: #854472)
+
+Forwarded: https://bugzilla.mozilla.org/show_bug.cgi?id=1815947
+
+Bug 1815947 - Fix build failure with glibc and uclibc while including sgidefs.h
+
+Let's include glibc and uclibc <sgidefs.h> while with musl let's include Linux
+<asm/sgidefs.h>.
+---
+ nspr/pr/include/md/_linux.cfg | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/nspr/pr/include/md/_linux.cfg b/nspr/pr/include/md/_linux.cfg
+index 2232820..009d5e5 100644
+--- a/nspr/pr/include/md/_linux.cfg
++++ b/nspr/pr/include/md/_linux.cfg
+@@ -499,7 +499,11 @@
+ #elif defined(__mips__)
+
+ /* For _ABI64 */
++#if defined(__GLIBC__) || defined(__UCLIBC__)
++#include <sgidefs.h>
++#else
+ #include <asm/sgidefs.h>
++#endif
+
+ #ifdef __MIPSEB__
+ #define IS_BIG_ENDIAN 1
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6529bf9
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Avoid-libreswan-build-failures-on-mipsel-Closes-8544.patch