summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2017-08-16 04:31:19 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-18 10:40:27 +0100
commit80cecb6cc9a3765aeb8dd4060a4a994c2625a952 (patch)
tree687b97211403f043b288d3376e50e97737f9e051 /meta/recipes-support
parent70de26076f36205b914be1b1911e5fc0afd65edb (diff)
downloadpoky-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 @@
1Add and use pkg-config for libgcrypt instead of -config scripts. 1From 72b9e9040d58c15f0302bd8abda28179f04e1c5f Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Wed, 16 Aug 2017 10:43:18 +0800
4Subject: [PATCH 1/4] Add and use pkg-config for libgcrypt instead of -config
5 scripts.
2 6
3Upstream-Status: Denied [upstream have indicated they don't want a pkg-config dependency] 7Upstream-Status: Denied [upstream have indicated they don't want a
8pkg-config dependency]
4 9
5RP 2014/5/22 10RP 2014/5/22
6 11
7Rebase to 1.7.0 12Rebase to 1.8.0
13
8Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 14Signed-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
16diff --git a/configure.ac b/configure.ac 22diff --git a/configure.ac b/configure.ac
17index f683e21..566e1c8 100644 23index 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--
1762.8.1 1821.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 @@
1Upstream-Status: Pending 1From 97570ef271ea1fb7b5ca903eec88f68407b0ec76 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Wed, 16 Aug 2017 10:44:41 +0800
4Subject: [PATCH 2/4] libgcrypt: fix building error with '-O2' in sysroot path
2 5
3libgcrypt: fix building error with '-O2' in sysroot path 6Upstream-Status: Pending
4 7
5Characters like '-O2' or '-Ofast' will be replaced by '-O1' when compiling cipher. 8Characters like '-O2' or '-Ofast' will be replaced by '-O1' when
6If we are cross compiling libgcrypt and sysroot contains such characters, we would 9compiling cipher.
10If we are cross compiling libgcrypt and sysroot contains such
11characters, we would
7get compile errors because the sysroot path has been modified. 12get compile errors because the sysroot path has been modified.
8 13
9Fix this by adding blank spaces before and after the original matching pattern in the 14Fix this by adding blank spaces before and after the original matching
15pattern in the
10sed command. 16sed command.
11 17
12Signed-off-by: Chen Qi <Qi.Chen@windriver.com> 18Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
19
20Rebase to 1.8.0
21Signed-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
17diff --git a/cipher/Makefile.am b/cipher/Makefile.am 26diff --git a/cipher/Makefile.am b/cipher/Makefile.am
18index 76cdc96..9a89792 100644 27index 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--
311.7.9.5 401.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 @@
1tests/bench-slope.c: workaround ICE failure on mips with '-O -g' 1From 7cc702c7b5a1ccc2b0091f3effa1391b6c3030fd Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Wed, 16 Aug 2017 10:46:28 +0800
4Subject: [PATCH 3/4] tests/bench-slope.c: workaround ICE failure on mips with
5 '-O -g'
2 6
3Hit a ICE and could reduce it to the following minimal example: 7Hit a ICE and could reduce it to the following minimal example:
4 8
@@ -24,31 +28,35 @@ END
242. Only -O1 and -g on mips caused the issue: 282. 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
26mipgcc-test.c: In function 'main': 30mipgcc-test.c: In function 'main':
27mipgcc-test.c:18:1: internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810 31mipgcc-test.c:18:1: internal compiler error: in dwarf2out_var_location,
32at dwarf2out.c:20810
28 } 33 }
29 ^ 34 ^
30Please submit a full bug report, 35Please submit a full bug report,
31with preprocessed source if appropriate. 36with preprocessed source if appropriate.
32See <http://gcc.gnu.org/bugs.html> for instructions 37See <http://gcc.gnu.org/bugs.html> for instructions
33 38
343. The quick workround is trying to enlarge the size of array with larger 393. The quick workround is trying to enlarge the size of array with
40larger
35than 2. 41than 2.
36 42
374. File a bug to GNU, but it could not be reproduced on there environment. 434. File a bug to GNU, but it could not be reproduced on there
44environment.
38http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643 45http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643
39 46
40Upstream-Status: Inappropriate [oe specific] 47Upstream-Status: Inappropriate [oe specific]
41 48
49Rebase to 1.8.0
42Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 50Signed-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
47diff --git a/tests/bench-slope.c b/tests/bench-slope.c 55diff --git a/tests/bench-slope.c b/tests/bench-slope.c
48index bd05064..28c2438 100644 56index 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--
701.8.1.2 781.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 @@
1From cc0e2b403d33892963513a3ba98e4ae5a05a4d3c Mon Sep 17 00:00:00 2001 1From e20dbdb0b8f0af840ef90b299c4e2277c52ddf87 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Sun, 12 Jun 2016 04:44:29 -0400 3Date: Sun, 12 Jun 2016 04:44:29 -0400
4Subject: [PATCH] tests/Makefile.am: fix undefined reference to `pthread_create' 4Subject: [PATCH 4/4] tests/Makefile.am: fix undefined reference to
5 `pthread_create'
5 6
6Add missing '-lpthread' to CFLAGS 7Add 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
15diff --git a/tests/Makefile.am b/tests/Makefile.am 16diff --git a/tests/Makefile.am b/tests/Makefile.am
16index d462f30..bef6dd7 100644 17index 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--
262.8.1 271.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
17UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html" 17UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html"
18SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.gz \ 18SRC_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"
24SRC_URI[md5sum] = "5588b89b75b1353e2454b04c7b8368f3" 24SRC_URI[md5sum] = "110ce4352f9ea6f560bdc6c5644ae93c"
25SRC_URI[sha256sum] = "cb076b2efc7ba752f3d4c663c9ee0589a98b1d614fe90878b1facd607a45fd43" 25SRC_URI[sha256sum] = "f6e470b7f2d3a703e8747f05a8c19d9e10e26ebf2d5f3d71ff75a40f504e12ee"
26 26
27BINCONFIG = "${bindir}/libgcrypt-config" 27BINCONFIG = "${bindir}/libgcrypt-config"
28 28