diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2017-08-16 04:31:19 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-18 10:40:27 +0100 |
commit | 80cecb6cc9a3765aeb8dd4060a4a994c2625a952 (patch) | |
tree | 687b97211403f043b288d3376e50e97737f9e051 /meta/recipes-support | |
parent | 70de26076f36205b914be1b1911e5fc0afd65edb (diff) | |
download | poky-80cecb6cc9a3765aeb8dd4060a4a994c2625a952.tar.gz |
libgcrypt: 1.7.8 -> 1.8.0
Rebase patches:
- add-pkgconfig-support.patch -> 0001
- libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch -> 0002
- fix-ICE-failure-on-mips-with-option-O-and-g.patch -> 0003
- fix-undefined-reference-to-pthread.patch -> 0004
(From OE-Core rev: b90037da8754009ca7cf2ab996b46b3dae1eb204)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/libgcrypt/files/0001-Add-and-use-pkg-config-for-libgcrypt-instead-of-conf.patch (renamed from meta/recipes-support/libgcrypt/files/add-pkgconfig-support.patch) | 18 | ||||
-rw-r--r-- | meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch (renamed from meta/recipes-support/libgcrypt/files/libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch) | 29 | ||||
-rw-r--r-- | meta/recipes-support/libgcrypt/files/0003-tests-bench-slope.c-workaround-ICE-failure-on-mips-w.patch (renamed from meta/recipes-support/libgcrypt/files/fix-ICE-failure-on-mips-with-option-O-and-g.patch) | 24 | ||||
-rw-r--r-- | meta/recipes-support/libgcrypt/files/0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch (renamed from meta/recipes-support/libgcrypt/files/fix-undefined-reference-to-pthread.patch) | 11 | ||||
-rw-r--r-- | meta/recipes-support/libgcrypt/libgcrypt_1.8.0.bb (renamed from meta/recipes-support/libgcrypt/libgcrypt_1.7.8.bb) | 12 |
5 files changed, 59 insertions, 35 deletions
diff --git a/meta/recipes-support/libgcrypt/files/add-pkgconfig-support.patch b/meta/recipes-support/libgcrypt/files/0001-Add-and-use-pkg-config-for-libgcrypt-instead-of-conf.patch index 69589f5482..d41c3de3b6 100644 --- a/meta/recipes-support/libgcrypt/files/add-pkgconfig-support.patch +++ b/meta/recipes-support/libgcrypt/files/0001-Add-and-use-pkg-config-for-libgcrypt-instead-of-conf.patch | |||
@@ -1,10 +1,16 @@ | |||
1 | Add and use pkg-config for libgcrypt instead of -config scripts. | 1 | From 72b9e9040d58c15f0302bd8abda28179f04e1c5f Mon Sep 17 00:00:00 2001 |
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
3 | Date: Wed, 16 Aug 2017 10:43:18 +0800 | ||
4 | Subject: [PATCH 1/4] Add and use pkg-config for libgcrypt instead of -config | ||
5 | scripts. | ||
2 | 6 | ||
3 | Upstream-Status: Denied [upstream have indicated they don't want a pkg-config dependency] | 7 | Upstream-Status: Denied [upstream have indicated they don't want a |
8 | pkg-config dependency] | ||
4 | 9 | ||
5 | RP 2014/5/22 | 10 | RP 2014/5/22 |
6 | 11 | ||
7 | Rebase to 1.7.0 | 12 | Rebase to 1.8.0 |
13 | |||
8 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
9 | --- | 15 | --- |
10 | configure.ac | 1 + | 16 | configure.ac | 1 + |
@@ -14,10 +20,10 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | |||
14 | create mode 100644 src/libgcrypt.pc.in | 20 | create mode 100644 src/libgcrypt.pc.in |
15 | 21 | ||
16 | diff --git a/configure.ac b/configure.ac | 22 | diff --git a/configure.ac b/configure.ac |
17 | index f683e21..566e1c8 100644 | 23 | index bbe8104..3d2de73 100644 |
18 | --- a/configure.ac | 24 | --- a/configure.ac |
19 | +++ b/configure.ac | 25 | +++ b/configure.ac |
20 | @@ -2314,6 +2314,7 @@ random/Makefile | 26 | @@ -2607,6 +2607,7 @@ random/Makefile |
21 | doc/Makefile | 27 | doc/Makefile |
22 | src/Makefile | 28 | src/Makefile |
23 | src/gcrypt.h | 29 | src/gcrypt.h |
@@ -173,5 +179,5 @@ index 0000000..2fc8f53 | |||
173 | +Libs.private: -L${libdir} -lgpg-error | 179 | +Libs.private: -L${libdir} -lgpg-error |
174 | +Cflags: -I${includedir} | 180 | +Cflags: -I${includedir} |
175 | -- | 181 | -- |
176 | 2.8.1 | 182 | 1.8.3.1 |
177 | 183 | ||
diff --git a/meta/recipes-support/libgcrypt/files/libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch b/meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch index a3e540369c..d7554f38af 100644 --- a/meta/recipes-support/libgcrypt/files/libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch +++ b/meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch | |||
@@ -1,25 +1,34 @@ | |||
1 | Upstream-Status: Pending | 1 | From 97570ef271ea1fb7b5ca903eec88f68407b0ec76 Mon Sep 17 00:00:00 2001 |
2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
3 | Date: Wed, 16 Aug 2017 10:44:41 +0800 | ||
4 | Subject: [PATCH 2/4] libgcrypt: fix building error with '-O2' in sysroot path | ||
2 | 5 | ||
3 | libgcrypt: fix building error with '-O2' in sysroot path | 6 | Upstream-Status: Pending |
4 | 7 | ||
5 | Characters like '-O2' or '-Ofast' will be replaced by '-O1' when compiling cipher. | 8 | Characters like '-O2' or '-Ofast' will be replaced by '-O1' when |
6 | If we are cross compiling libgcrypt and sysroot contains such characters, we would | 9 | compiling cipher. |
10 | If we are cross compiling libgcrypt and sysroot contains such | ||
11 | characters, we would | ||
7 | get compile errors because the sysroot path has been modified. | 12 | get compile errors because the sysroot path has been modified. |
8 | 13 | ||
9 | Fix this by adding blank spaces before and after the original matching pattern in the | 14 | Fix this by adding blank spaces before and after the original matching |
15 | pattern in the | ||
10 | sed command. | 16 | sed command. |
11 | 17 | ||
12 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | 18 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
19 | |||
20 | Rebase to 1.8.0 | ||
21 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
13 | --- | 22 | --- |
14 | cipher/Makefile.am | 2 +- | 23 | cipher/Makefile.am | 2 +- |
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | 24 | 1 file changed, 1 insertion(+), 1 deletion(-) |
16 | 25 | ||
17 | diff --git a/cipher/Makefile.am b/cipher/Makefile.am | 26 | diff --git a/cipher/Makefile.am b/cipher/Makefile.am |
18 | index 76cdc96..9a89792 100644 | 27 | index 95c4510..bd52ec7 100644 |
19 | --- a/cipher/Makefile.am | 28 | --- a/cipher/Makefile.am |
20 | +++ b/cipher/Makefile.am | 29 | +++ b/cipher/Makefile.am |
21 | @@ -69,7 +69,7 @@ rfc2268.c \ | 30 | @@ -116,7 +116,7 @@ gost-s-box: gost-s-box.c |
22 | camellia.c camellia.h camellia-glue.c | 31 | |
23 | 32 | ||
24 | if ENABLE_O_FLAG_MUNGING | 33 | if ENABLE_O_FLAG_MUNGING |
25 | -o_flag_munging = sed -e 's/-O\([2-9s][2-9s]*\)/-O1/' -e 's/-Ofast/-O1/g' | 34 | -o_flag_munging = sed -e 's/-O\([2-9s][2-9s]*\)/-O1/' -e 's/-Ofast/-O1/g' |
@@ -28,5 +37,5 @@ index 76cdc96..9a89792 100644 | |||
28 | o_flag_munging = cat | 37 | o_flag_munging = cat |
29 | endif | 38 | endif |
30 | -- | 39 | -- |
31 | 1.7.9.5 | 40 | 1.8.3.1 |
32 | 41 | ||
diff --git a/meta/recipes-support/libgcrypt/files/fix-ICE-failure-on-mips-with-option-O-and-g.patch b/meta/recipes-support/libgcrypt/files/0003-tests-bench-slope.c-workaround-ICE-failure-on-mips-w.patch index 582e62f709..105df2957e 100644 --- a/meta/recipes-support/libgcrypt/files/fix-ICE-failure-on-mips-with-option-O-and-g.patch +++ b/meta/recipes-support/libgcrypt/files/0003-tests-bench-slope.c-workaround-ICE-failure-on-mips-w.patch | |||
@@ -1,4 +1,8 @@ | |||
1 | tests/bench-slope.c: workaround ICE failure on mips with '-O -g' | 1 | From 7cc702c7b5a1ccc2b0091f3effa1391b6c3030fd Mon Sep 17 00:00:00 2001 |
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Wed, 16 Aug 2017 10:46:28 +0800 | ||
4 | Subject: [PATCH 3/4] tests/bench-slope.c: workaround ICE failure on mips with | ||
5 | '-O -g' | ||
2 | 6 | ||
3 | Hit a ICE and could reduce it to the following minimal example: | 7 | Hit a ICE and could reduce it to the following minimal example: |
4 | 8 | ||
@@ -24,31 +28,35 @@ END | |||
24 | 2. Only -O1 and -g on mips caused the issue: | 28 | 2. Only -O1 and -g on mips caused the issue: |
25 | $ mips-poky-linux-gcc -O1 -g -o mipgcc-test mipgcc-test.c | 29 | $ mips-poky-linux-gcc -O1 -g -o mipgcc-test mipgcc-test.c |
26 | mipgcc-test.c: In function 'main': | 30 | mipgcc-test.c: In function 'main': |
27 | mipgcc-test.c:18:1: internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810 | 31 | mipgcc-test.c:18:1: internal compiler error: in dwarf2out_var_location, |
32 | at dwarf2out.c:20810 | ||
28 | } | 33 | } |
29 | ^ | 34 | ^ |
30 | Please submit a full bug report, | 35 | Please submit a full bug report, |
31 | with preprocessed source if appropriate. | 36 | with preprocessed source if appropriate. |
32 | See <http://gcc.gnu.org/bugs.html> for instructions | 37 | See <http://gcc.gnu.org/bugs.html> for instructions |
33 | 38 | ||
34 | 3. The quick workround is trying to enlarge the size of array with larger | 39 | 3. The quick workround is trying to enlarge the size of array with |
40 | larger | ||
35 | than 2. | 41 | than 2. |
36 | 42 | ||
37 | 4. File a bug to GNU, but it could not be reproduced on there environment. | 43 | 4. File a bug to GNU, but it could not be reproduced on there |
44 | environment. | ||
38 | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643 | 45 | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643 |
39 | 46 | ||
40 | Upstream-Status: Inappropriate [oe specific] | 47 | Upstream-Status: Inappropriate [oe specific] |
41 | 48 | ||
49 | Rebase to 1.8.0 | ||
42 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 50 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
43 | --- | 51 | --- |
44 | tests/bench-slope.c | 4 ++-- | 52 | tests/bench-slope.c | 4 ++-- |
45 | 1 file changed, 2 insertions(+), 2 deletions(-) | 53 | 1 file changed, 2 insertions(+), 2 deletions(-) |
46 | 54 | ||
47 | diff --git a/tests/bench-slope.c b/tests/bench-slope.c | 55 | diff --git a/tests/bench-slope.c b/tests/bench-slope.c |
48 | index bd05064..28c2438 100644 | 56 | index 75e6e43..4e70842 100644 |
49 | --- a/tests/bench-slope.c | 57 | --- a/tests/bench-slope.c |
50 | +++ b/tests/bench-slope.c | 58 | +++ b/tests/bench-slope.c |
51 | @@ -1197,7 +1197,7 @@ static struct bench_ops hash_ops = { | 59 | @@ -1463,7 +1463,7 @@ static struct bench_ops hash_ops = { |
52 | }; | 60 | }; |
53 | 61 | ||
54 | 62 | ||
@@ -57,7 +65,7 @@ index bd05064..28c2438 100644 | |||
57 | {"", &hash_ops}, | 65 | {"", &hash_ops}, |
58 | {0}, | 66 | {0}, |
59 | }; | 67 | }; |
60 | @@ -1349,7 +1349,7 @@ static struct bench_ops mac_ops = { | 68 | @@ -1629,7 +1629,7 @@ static struct bench_ops mac_ops = { |
61 | }; | 69 | }; |
62 | 70 | ||
63 | 71 | ||
@@ -67,5 +75,5 @@ index bd05064..28c2438 100644 | |||
67 | {0}, | 75 | {0}, |
68 | }; | 76 | }; |
69 | -- | 77 | -- |
70 | 1.8.1.2 | 78 | 1.8.3.1 |
71 | 79 | ||
diff --git a/meta/recipes-support/libgcrypt/files/fix-undefined-reference-to-pthread.patch b/meta/recipes-support/libgcrypt/files/0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch index e7de8badf8..8622df3ea8 100644 --- a/meta/recipes-support/libgcrypt/files/fix-undefined-reference-to-pthread.patch +++ b/meta/recipes-support/libgcrypt/files/0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch | |||
@@ -1,7 +1,8 @@ | |||
1 | From cc0e2b403d33892963513a3ba98e4ae5a05a4d3c Mon Sep 17 00:00:00 2001 | 1 | From e20dbdb0b8f0af840ef90b299c4e2277c52ddf87 Mon Sep 17 00:00:00 2001 |
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
3 | Date: Sun, 12 Jun 2016 04:44:29 -0400 | 3 | Date: Sun, 12 Jun 2016 04:44:29 -0400 |
4 | Subject: [PATCH] tests/Makefile.am: fix undefined reference to `pthread_create' | 4 | Subject: [PATCH 4/4] tests/Makefile.am: fix undefined reference to |
5 | `pthread_create' | ||
5 | 6 | ||
6 | Add missing '-lpthread' to CFLAGS | 7 | Add missing '-lpthread' to CFLAGS |
7 | 8 | ||
@@ -13,15 +14,15 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | |||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
14 | 15 | ||
15 | diff --git a/tests/Makefile.am b/tests/Makefile.am | 16 | diff --git a/tests/Makefile.am b/tests/Makefile.am |
16 | index d462f30..bef6dd7 100644 | 17 | index 1744ea7..04cf425 100644 |
17 | --- a/tests/Makefile.am | 18 | --- a/tests/Makefile.am |
18 | +++ b/tests/Makefile.am | 19 | +++ b/tests/Makefile.am |
19 | @@ -62,4 +62,4 @@ EXTRA_DIST = README rsa-16k.key cavs_tests.sh cavs_driver.pl \ | 20 | @@ -64,4 +64,4 @@ EXTRA_DIST = README rsa-16k.key cavs_tests.sh cavs_driver.pl \ |
20 | 21 | ||
21 | LDADD = $(standard_ldadd) $(GPG_ERROR_LIBS) | 22 | LDADD = $(standard_ldadd) $(GPG_ERROR_LIBS) |
22 | t_lock_LDADD = $(standard_ldadd) $(GPG_ERROR_MT_LIBS) | 23 | t_lock_LDADD = $(standard_ldadd) $(GPG_ERROR_MT_LIBS) |
23 | -t_lock_CFLAGS = $(GPG_ERROR_MT_CFLAGS) | 24 | -t_lock_CFLAGS = $(GPG_ERROR_MT_CFLAGS) |
24 | +t_lock_CFLAGS = $(GPG_ERROR_MT_CFLAGS) -lpthread | 25 | +t_lock_CFLAGS = $(GPG_ERROR_MT_CFLAGS) -lpthread |
25 | -- | 26 | -- |
26 | 2.8.1 | 27 | 1.8.3.1 |
27 | 28 | ||
diff --git a/meta/recipes-support/libgcrypt/libgcrypt_1.7.8.bb b/meta/recipes-support/libgcrypt/libgcrypt_1.8.0.bb index ec8b875efa..1797d9584d 100644 --- a/meta/recipes-support/libgcrypt/libgcrypt_1.7.8.bb +++ b/meta/recipes-support/libgcrypt/libgcrypt_1.8.0.bb | |||
@@ -16,13 +16,13 @@ DEPENDS = "libgpg-error" | |||
16 | 16 | ||
17 | UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html" | 17 | UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html" |
18 | SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.gz \ | 18 | SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.gz \ |
19 | file://add-pkgconfig-support.patch \ | 19 | file://0001-Add-and-use-pkg-config-for-libgcrypt-instead-of-conf.patch \ |
20 | file://libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch \ | 20 | file://0003-tests-bench-slope.c-workaround-ICE-failure-on-mips-w.patch \ |
21 | file://fix-ICE-failure-on-mips-with-option-O-and-g.patch \ | 21 | file://0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch \ |
22 | file://fix-undefined-reference-to-pthread.patch \ | 22 | file://0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch \ |
23 | " | 23 | " |
24 | SRC_URI[md5sum] = "5588b89b75b1353e2454b04c7b8368f3" | 24 | SRC_URI[md5sum] = "110ce4352f9ea6f560bdc6c5644ae93c" |
25 | SRC_URI[sha256sum] = "cb076b2efc7ba752f3d4c663c9ee0589a98b1d614fe90878b1facd607a45fd43" | 25 | SRC_URI[sha256sum] = "f6e470b7f2d3a703e8747f05a8c19d9e10e26ebf2d5f3d71ff75a40f504e12ee" |
26 | 26 | ||
27 | BINCONFIG = "${bindir}/libgcrypt-config" | 27 | BINCONFIG = "${bindir}/libgcrypt-config" |
28 | 28 | ||