diff options
author | Saul Wold <sgw@linux.intel.com> | 2014-09-09 16:15:11 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-10 15:38:57 +0100 |
commit | bd1a3ab8a63d6b2c109d595c67fcca99817e1daa (patch) | |
tree | 797abc666dc84a45afb08b2a21c548f13d6d785c /meta/recipes-support/nspr | |
parent | 9f9476fff147ba8e23b7302fd347378f76f133a8 (diff) | |
download | poky-bd1a3ab8a63d6b2c109d595c67fcca99817e1daa.tar.gz |
nspr: Upgrade to 4.10.7
Remove patch that was directly modifing the configure script
since we can now use autoreconf to configure. This also allowed
for the removal of the do_configure() functions.
Added patch to remove an undefined ${srcdir}.
(From OE-Core rev: 622ad8482b55957f4a08eadf0131b0eb86d1886b)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/nspr')
-rw-r--r-- | meta/recipes-support/nspr/nspr/fix-build-on-x86_64.patch | 31 | ||||
-rw-r--r-- | meta/recipes-support/nspr/nspr/remove-srcdir-from-configure-in.patch | 19 | ||||
-rw-r--r-- | meta/recipes-support/nspr/nspr/trickly-fix-build-on-x86_64.patch | 62 | ||||
-rw-r--r-- | meta/recipes-support/nspr/nspr_4.10.7.bb (renamed from meta/recipes-support/nspr/nspr_4.10.3.bb) | 13 |
4 files changed, 38 insertions, 87 deletions
diff --git a/meta/recipes-support/nspr/nspr/fix-build-on-x86_64.patch b/meta/recipes-support/nspr/nspr/fix-build-on-x86_64.patch index a6fa1ea607..c2b7258e50 100644 --- a/meta/recipes-support/nspr/nspr/fix-build-on-x86_64.patch +++ b/meta/recipes-support/nspr/nspr/fix-build-on-x86_64.patch | |||
@@ -11,23 +11,27 @@ Upstream-Status: Pending | |||
11 | configure.in | 12 ++++++------ | 11 | configure.in | 12 ++++++------ |
12 | 1 files changed, 6 insertions(+), 6 deletions(-) | 12 | 1 files changed, 6 insertions(+), 6 deletions(-) |
13 | 13 | ||
14 | diff --git a/configure.in b/configure.in | 14 | Index: nspr/configure.in |
15 | index 39c96a3..99a03ac 100644 | 15 | =================================================================== |
16 | --- a/configure.in | 16 | --- nspr.orig/configure.in |
17 | +++ b/configure.in | 17 | +++ nspr/configure.in |
18 | @@ -1778,24 +1778,24 @@ tools are selected during the Xcode/Developer Tools installation.]) | 18 | @@ -1875,28 +1875,24 @@ tools are selected during the Xcode/Deve |
19 | PR_MD_ASFILES=os_Linux_ia64.s | 19 | PR_MD_ASFILES=os_Linux_ia64.s |
20 | ;; | 20 | ;; |
21 | x86_64) | 21 | x86_64) |
22 | - if test -n "$USE_64"; then | 22 | - if test -n "$USE_64"; then |
23 | - PR_MD_ASFILES=os_Linux_x86_64.s | 23 | - PR_MD_ASFILES=os_Linux_x86_64.s |
24 | - else | 24 | - elif test -n "$USE_X32"; then |
25 | + if test -n "$USE_N32"; then | 25 | + if test -n "$USE_X32"; then |
26 | AC_DEFINE(i386) | 26 | + AC_DEFINE(i386) |
27 | PR_MD_ASFILES=os_Linux_x86.s | 27 | PR_MD_ASFILES=os_Linux_x86_64.s |
28 | CC="$CC -m32" | 28 | CC="$CC -mx32" |
29 | CXX="$CXX -m32" | 29 | CXX="$CXX -mx32" |
30 | + else | 30 | else |
31 | - AC_DEFINE(i386) | ||
32 | - PR_MD_ASFILES=os_Linux_x86.s | ||
33 | - CC="$CC -m32" | ||
34 | - CXX="$CXX -m32" | ||
31 | + PR_MD_ASFILES=os_Linux_x86_64.s | 35 | + PR_MD_ASFILES=os_Linux_x86_64.s |
32 | fi | 36 | fi |
33 | ;; | 37 | ;; |
@@ -46,6 +50,3 @@ index 39c96a3..99a03ac 100644 | |||
46 | fi | 50 | fi |
47 | ;; | 51 | ;; |
48 | m68k) | 52 | m68k) |
49 | -- | ||
50 | 1.7.1 | ||
51 | |||
diff --git a/meta/recipes-support/nspr/nspr/remove-srcdir-from-configure-in.patch b/meta/recipes-support/nspr/nspr/remove-srcdir-from-configure-in.patch new file mode 100644 index 0000000000..bde715c5dc --- /dev/null +++ b/meta/recipes-support/nspr/nspr/remove-srcdir-from-configure-in.patch | |||
@@ -0,0 +1,19 @@ | |||
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/recipes-support/nspr/nspr/trickly-fix-build-on-x86_64.patch b/meta/recipes-support/nspr/nspr/trickly-fix-build-on-x86_64.patch deleted file mode 100644 index 8ca51e4d1f..0000000000 --- a/meta/recipes-support/nspr/nspr/trickly-fix-build-on-x86_64.patch +++ /dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | trickily fix build failure on x86_64 | ||
2 | |||
3 | It seems that we can not run the 'autoreconf -f -i' for the nspr, I met | ||
4 | several strange problems while trying to do that, and the previous | ||
5 | author seemed had noticed this, so he wrote: | ||
6 | |||
7 | do_configure() { | ||
8 | oe_runconf | ||
9 | } | ||
10 | |||
11 | to avoid running the "autoreconf". But we must modify configure.in to | ||
12 | fix the build failure on x86_64, so both modify configure and | ||
13 | configure.in, once the "autoreconf" can work correctly, we can remove | ||
14 | this patch. | ||
15 | |||
16 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
17 | |||
18 | Upstream-Status: Inappropriate [configuration] | ||
19 | --- | ||
20 | configure | 12 ++++++------ | ||
21 | 1 files changed, 6 insertions(+), 6 deletions(-) | ||
22 | |||
23 | diff --git a/configure b/configure | ||
24 | --- a/configure | ||
25 | +++ b/configure | ||
26 | @@ -4366,9 +4366,7 @@ EOF | ||
27 | PR_MD_ASFILES=os_Linux_ia64.s | ||
28 | ;; | ||
29 | x86_64) | ||
30 | - if test -n "$USE_64"; then | ||
31 | - PR_MD_ASFILES=os_Linux_x86_64.s | ||
32 | - else | ||
33 | + if test -n "$USE_N32"; then | ||
34 | cat >> confdefs.h <<\EOF | ||
35 | #define i386 1 | ||
36 | EOF | ||
37 | @@ -4376,17 +4374,19 @@ EOF | ||
38 | PR_MD_ASFILES=os_Linux_x86.s | ||
39 | CC="$CC -m32" | ||
40 | CXX="$CXX -m32" | ||
41 | + else | ||
42 | + PR_MD_ASFILES=os_Linux_x86_64.s | ||
43 | fi | ||
44 | ;; | ||
45 | ppc|powerpc) | ||
46 | PR_MD_ASFILES=os_Linux_ppc.s | ||
47 | ;; | ||
48 | powerpc64) | ||
49 | - if test -n "$USE_64"; then | ||
50 | + if test -n "$USE_N32"; then | ||
51 | + PR_MD_ASFILES=os_Linux_ppc.s | ||
52 | + else | ||
53 | CC="$CC -m64" | ||
54 | CXX="$CXX -m64" | ||
55 | - else | ||
56 | - PR_MD_ASFILES=os_Linux_ppc.s | ||
57 | fi | ||
58 | ;; | ||
59 | m68k) | ||
60 | -- | ||
61 | 1.7.1 | ||
62 | |||
diff --git a/meta/recipes-support/nspr/nspr_4.10.3.bb b/meta/recipes-support/nspr/nspr_4.10.7.bb index 60e1bfa7b1..69e9dfa6a3 100644 --- a/meta/recipes-support/nspr/nspr_4.10.3.bb +++ b/meta/recipes-support/nspr/nspr_4.10.7.bb | |||
@@ -8,14 +8,13 @@ SECTION = "libs/network" | |||
8 | SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz \ | 8 | SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/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://trickly-fix-build-on-x86_64.patch \ | 11 | file://remove-srcdir-from-configure-in.patch \ |
12 | file://nspr-CVE-2014-1545.patch \ | ||
13 | " | 12 | " |
14 | 13 | ||
15 | SRC_URI += "file://nspr.pc.in" | 14 | SRC_URI += "file://nspr.pc.in" |
16 | 15 | ||
17 | SRC_URI[md5sum] = "bf298e874cf454a3c2f8fe7e671c5d2e" | 16 | SRC_URI[md5sum] = "6e06919e4b56efed501e05d8b45ec10e" |
18 | SRC_URI[sha256sum] = "f25779b1a665dab0090b9c977dc6c29a63320f442956ed78629b66b405cb01e5" | 17 | SRC_URI[sha256sum] = "389af5cfa863ea9bc6de7b30c15f8a4f9bddd8002f8c6fdc8b33caef43893938" |
19 | 18 | ||
20 | S = "${WORKDIR}/nspr-${PV}/nspr" | 19 | S = "${WORKDIR}/nspr-${PV}/nspr" |
21 | 20 | ||
@@ -141,12 +140,6 @@ TESTS = "runtests.pl \ | |||
141 | 140 | ||
142 | inherit autotools-brokensep | 141 | inherit autotools-brokensep |
143 | 142 | ||
144 | do_configure() { | ||
145 | gnu-configize --force | ||
146 | mv config.sub config.guess build/autoconf | ||
147 | oe_runconf | ||
148 | } | ||
149 | |||
150 | do_compile_prepend() { | 143 | do_compile_prepend() { |
151 | oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export | 144 | oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export |
152 | } | 145 | } |