diff options
| -rw-r--r-- | meta-oe/recipes-support/nspr/nspr/0001-md-Fix-build-with-musl.patch | 17 | ||||
| -rw-r--r-- | meta-oe/recipes-support/nspr/nspr/0002-Add-nios2-support.patch | 39 | ||||
| -rw-r--r-- | meta-oe/recipes-support/nspr/nspr/remove-srcdir-from-configure-in.patch | 19 | ||||
| -rw-r--r-- | meta-oe/recipes-support/nspr/nspr_4.35.bb (renamed from meta-oe/recipes-support/nspr/nspr_4.29.bb) | 8 |
4 files changed, 21 insertions, 62 deletions
diff --git a/meta-oe/recipes-support/nspr/nspr/0001-md-Fix-build-with-musl.patch b/meta-oe/recipes-support/nspr/nspr/0001-md-Fix-build-with-musl.patch index d2b9bf6420..09855a03dc 100644 --- a/meta-oe/recipes-support/nspr/nspr/0001-md-Fix-build-with-musl.patch +++ b/meta-oe/recipes-support/nspr/nspr/0001-md-Fix-build-with-musl.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 147f3c2acbd96d44025cec11800ded0282327764 Mon Sep 17 00:00:00 2001 | 1 | From 5f6fcaeb0b7a319c8afd32ddb48b3515b63a6c0c Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 18 Sep 2017 17:22:43 -0700 | 3 | Date: Mon, 18 Sep 2017 17:22:43 -0700 |
| 4 | Subject: [PATCH] md: Fix build with musl | 4 | Subject: [PATCH] md: Fix build with musl |
| @@ -6,24 +6,17 @@ Subject: [PATCH] md: Fix build with musl | |||
| 6 | The MIPS specific header <sgidefs.h> is not provided by musl | 6 | The MIPS specific header <sgidefs.h> is not provided by musl |
| 7 | linux kernel headers provide <asm/sgidefs.h> which has same definitions | 7 | linux kernel headers provide <asm/sgidefs.h> which has same definitions |
| 8 | 8 | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | Upstream-Status: Pending | 9 | Upstream-Status: Pending |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | 11 | ||
| 12 | --- | ||
| 13 | pr/include/md/_linux.cfg | 2 +- | 13 | pr/include/md/_linux.cfg | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | 15 | ||
| 16 | diff --git a/pr/include/md/_linux.cfg b/pr/include/md/_linux.cfg | ||
| 17 | index aa3af78..899826f 100644 | ||
| 16 | --- a/pr/include/md/_linux.cfg | 18 | --- a/pr/include/md/_linux.cfg |
| 17 | +++ b/pr/include/md/_linux.cfg | 19 | +++ b/pr/include/md/_linux.cfg |
| 18 | @@ -499,7 +499,7 @@ | ||
| 19 | #elif defined(__mips__) | ||
| 20 | |||
| 21 | /* For _ABI64 */ | ||
| 22 | -#include <sgidefs.h> | ||
| 23 | +#include <asm/sgidefs.h> | ||
| 24 | |||
| 25 | #ifdef __MIPSEB__ | ||
| 26 | #define IS_BIG_ENDIAN 1 | ||
| 27 | @@ -511,7 +511,7 @@ | 20 | @@ -511,7 +511,7 @@ |
| 28 | #error "Unknown MIPS endianness." | 21 | #error "Unknown MIPS endianness." |
| 29 | #endif | 22 | #endif |
diff --git a/meta-oe/recipes-support/nspr/nspr/0002-Add-nios2-support.patch b/meta-oe/recipes-support/nspr/nspr/0002-Add-nios2-support.patch index 3a04d426a8..dab2a4e291 100644 --- a/meta-oe/recipes-support/nspr/nspr/0002-Add-nios2-support.patch +++ b/meta-oe/recipes-support/nspr/nspr/0002-Add-nios2-support.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 95bda64fb4cf1825fea745e918cfe8202843f0ba Mon Sep 17 00:00:00 2001 | 1 | From 4760065a58153e4dae24e4e437a5136592c624bc Mon Sep 17 00:00:00 2001 |
| 2 | From: Marek Vasut <marex@denx.de> | 2 | From: Marek Vasut <marex@denx.de> |
| 3 | Date: Sat, 30 Jan 2016 07:18:02 +0100 | 3 | Date: Sat, 30 Jan 2016 07:18:02 +0100 |
| 4 | Subject: [PATCH] Add nios2 support | 4 | Subject: [PATCH] Add nios2 support |
| @@ -7,15 +7,14 @@ Add support for the nios2 CPU. | |||
| 7 | 7 | ||
| 8 | Signed-off-by: Marek Vasut <marex@denx.de> | 8 | Signed-off-by: Marek Vasut <marex@denx.de> |
| 9 | Upstream-Status: Submitted [ https://bugzilla.mozilla.org/show_bug.cgi?id=1244421 ] | 9 | Upstream-Status: Submitted [ https://bugzilla.mozilla.org/show_bug.cgi?id=1244421 ] |
| 10 | |||
| 10 | --- | 11 | --- |
| 11 | nspr/pr/include/md/_linux.cfg | 45 +++++++++++++++++++++++++++++++++++++++++++ | 12 | pr/include/md/_linux.cfg | 45 +++++++++++++++++++++++++++++++++++ |
| 12 | nspr/pr/include/md/_linux.h | 14 ++++++++++++++ | 13 | pr/include/md/_linux.h | 4 +++- |
| 13 | 2 files changed, 59 insertions(+) | 14 | 2 files changed, 48 insertions(+), 1 deletion(-) |
| 14 | 15 | ||
| 15 | Index: nspr/pr/include/md/_linux.cfg | 16 | --- a/pr/include/md/_linux.cfg |
| 16 | =================================================================== | 17 | +++ b/pr/include/md/_linux.cfg |
| 17 | --- nspr.orig/pr/include/md/_linux.cfg | ||
| 18 | +++ nspr/pr/include/md/_linux.cfg | ||
| 19 | @@ -975,6 +975,51 @@ | 18 | @@ -975,6 +975,51 @@ |
| 20 | #define PR_BYTES_PER_WORD_LOG2 2 | 19 | #define PR_BYTES_PER_WORD_LOG2 2 |
| 21 | #define PR_BYTES_PER_DWORD_LOG2 3 | 20 | #define PR_BYTES_PER_DWORD_LOG2 3 |
| @@ -68,10 +67,8 @@ Index: nspr/pr/include/md/_linux.cfg | |||
| 68 | #elif defined(__or1k__) | 67 | #elif defined(__or1k__) |
| 69 | 68 | ||
| 70 | #undef IS_LITTLE_ENDIAN | 69 | #undef IS_LITTLE_ENDIAN |
| 71 | Index: nspr/pr/include/md/_linux.h | 70 | --- a/pr/include/md/_linux.h |
| 72 | =================================================================== | 71 | +++ b/pr/include/md/_linux.h |
| 73 | --- nspr.orig/pr/include/md/_linux.h | ||
| 74 | +++ nspr/pr/include/md/_linux.h | ||
| 75 | @@ -55,6 +55,8 @@ | 72 | @@ -55,6 +55,8 @@ |
| 76 | #define _PR_SI_ARCHITECTURE "avr32" | 73 | #define _PR_SI_ARCHITECTURE "avr32" |
| 77 | #elif defined(__m32r__) | 74 | #elif defined(__m32r__) |
| @@ -81,22 +78,12 @@ Index: nspr/pr/include/md/_linux.h | |||
| 81 | #elif defined(__or1k__) | 78 | #elif defined(__or1k__) |
| 82 | #define _PR_SI_ARCHITECTURE "or1k" | 79 | #define _PR_SI_ARCHITECTURE "or1k" |
| 83 | #elif defined(__riscv) && (__riscv_xlen == 32) | 80 | #elif defined(__riscv) && (__riscv_xlen == 32) |
| 84 | @@ -129,6 +131,18 @@ extern PRInt32 _PR_x86_64_AtomicSet(PRIn | 81 | @@ -143,7 +145,7 @@ extern PRInt32 _PR_x86_64_AtomicSet(PRIn |
| 85 | #define _MD_ATOMIC_SET _PR_x86_64_AtomicSet | 82 | #define _MD_ATOMIC_SET _PR_x86_64_AtomicSet |
| 86 | #endif | 83 | #endif |
| 87 | 84 | ||
| 88 | +#if defined(__nios2__) | 85 | -#if defined(__loongarch__) |
| 89 | +#if defined(__GNUC__) | 86 | +#if defined(__loongarch__) || defined(__nios2__) |
| 90 | +/* Use GCC built-in functions */ | ||
| 91 | +#define _PR_HAVE_ATOMIC_OPS | ||
| 92 | +#define _MD_INIT_ATOMIC() | ||
| 93 | +#define _MD_ATOMIC_INCREMENT(ptr) __sync_add_and_fetch(ptr, 1) | ||
| 94 | +#define _MD_ATOMIC_DECREMENT(ptr) __sync_sub_and_fetch(ptr, 1) | ||
| 95 | +#define _MD_ATOMIC_ADD(ptr, i) __sync_add_and_fetch(ptr, i) | ||
| 96 | +#define _MD_ATOMIC_SET(ptr, nv) __sync_lock_test_and_set(ptr, nv) | ||
| 97 | +#endif | ||
| 98 | +#endif | ||
| 99 | + | ||
| 100 | #if defined(__or1k__) | ||
| 101 | #if defined(__GNUC__) | 87 | #if defined(__GNUC__) |
| 102 | /* Use GCC built-in functions */ | 88 | /* Use GCC built-in functions */ |
| 89 | #define _PR_HAVE_ATOMIC_OPS | ||
diff --git a/meta-oe/recipes-support/nspr/nspr/remove-srcdir-from-configure-in.patch b/meta-oe/recipes-support/nspr/nspr/remove-srcdir-from-configure-in.patch deleted file mode 100644 index bde715c5dc..0000000000 --- a/meta-oe/recipes-support/nspr/nspr/remove-srcdir-from-configure-in.patch +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | the $srcdir is not defined at the time of gnu-configurize. | ||
| 2 | |||
| 3 | Upstream-Status: Inappropriate [OE-Core specific] | ||
| 4 | |||
| 5 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
| 6 | |||
| 7 | Index: nspr/configure.in | ||
| 8 | =================================================================== | ||
| 9 | --- nspr.orig/configure.in | ||
| 10 | +++ nspr/configure.in | ||
| 11 | @@ -8,7 +8,7 @@ AC_PREREQ(2.61) | ||
| 12 | AC_INIT | ||
| 13 | AC_CONFIG_SRCDIR([pr/include/nspr.h]) | ||
| 14 | |||
| 15 | -AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf) | ||
| 16 | +AC_CONFIG_AUX_DIR(build/autoconf) | ||
| 17 | AC_CANONICAL_TARGET | ||
| 18 | |||
| 19 | dnl ======================================================== | ||
diff --git a/meta-oe/recipes-support/nspr/nspr_4.29.bb b/meta-oe/recipes-support/nspr/nspr_4.35.bb index 92c5234c34..c8cb618bc9 100644 --- a/meta-oe/recipes-support/nspr/nspr_4.29.bb +++ b/meta-oe/recipes-support/nspr/nspr_4.35.bb | |||
| @@ -8,24 +8,22 @@ SECTION = "libs/network" | |||
| 8 | SRC_URI = "http://ftp.mozilla.org/pub/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz \ | 8 | SRC_URI = "http://ftp.mozilla.org/pub/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz \ |
| 9 | file://remove-rpath-from-tests.patch \ | 9 | file://remove-rpath-from-tests.patch \ |
| 10 | file://fix-build-on-x86_64.patch \ | 10 | file://fix-build-on-x86_64.patch \ |
| 11 | file://remove-srcdir-from-configure-in.patch \ | ||
| 12 | file://0002-Add-nios2-support.patch \ | 11 | file://0002-Add-nios2-support.patch \ |
| 13 | file://0001-md-Fix-build-with-musl.patch \ | 12 | file://0001-md-Fix-build-with-musl.patch \ |
| 14 | file://Makefile.in-remove-_BUILD_STRING-and-_BUILD_TIME.patch \ | 13 | file://Makefile.in-remove-_BUILD_STRING-and-_BUILD_TIME.patch \ |
| 15 | file://0001-config-nspr-config.in-don-t-pass-LDFLAGS.patch \ | 14 | file://0001-config-nspr-config.in-don-t-pass-LDFLAGS.patch \ |
| 16 | file://nspr.pc.in \ | 15 | file://nspr.pc.in \ |
| 17 | " | 16 | " |
| 18 | 17 | ||
| 19 | CACHED_CONFIGUREVARS:append:libc-musl = " CFLAGS='${CFLAGS} -D_PR_POLL_AVAILABLE \ | 18 | CACHED_CONFIGUREVARS:append:libc-musl = " CFLAGS='${CFLAGS} -D_PR_POLL_AVAILABLE \ |
| 20 | -D_PR_HAVE_OFF64_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP \ | 19 | -D_PR_HAVE_LARGE_OFF_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP \ |
| 21 | -D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO \ | 20 | -D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO \ |
| 22 | -D_PR_INET6_PROBE -DNO_DLOPEN_NULL'" | 21 | -D_PR_INET6_PROBE -DNO_DLOPEN_NULL'" |
| 23 | 22 | ||
| 24 | UPSTREAM_CHECK_URI = "http://ftp.mozilla.org/pub/nspr/releases/" | 23 | UPSTREAM_CHECK_URI = "http://ftp.mozilla.org/pub/nspr/releases/" |
| 25 | UPSTREAM_CHECK_REGEX = "v(?P<pver>\d+(\.\d+)+)/" | 24 | UPSTREAM_CHECK_REGEX = "v(?P<pver>\d+(\.\d+)+)/" |
| 26 | 25 | ||
| 27 | SRC_URI[md5sum] = "a546926d3c8e887be02c668c1293da92" | 26 | SRC_URI[sha256sum] = "7ea3297ea5969b5d25a5dd8d47f2443cda88e9ee746301f6e1e1426f8a6abc8f" |
| 28 | SRC_URI[sha256sum] = "22286bdb8059d74632cc7c2865c139e63953ecfb33bf4362ab58827e86e92582" | ||
| 29 | 27 | ||
| 30 | CVE_PRODUCT = "netscape_portable_runtime" | 28 | CVE_PRODUCT = "netscape_portable_runtime" |
| 31 | 29 | ||
