diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-05-09 19:23:37 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-22 10:53:47 +0100 |
commit | 0117b5e9b3661a853bc78765939f8e42c7b30409 (patch) | |
tree | e6b5970203e4bc6bb2dfd1afbb322c14691f0fe8 /meta/recipes-support | |
parent | 7069940be6f1308381b778ec31ab1523adc7018a (diff) | |
download | poky-0117b5e9b3661a853bc78765939f8e42c7b30409.tar.gz |
gpgme: update 1.18.0 -> 1.20.0
Rebase patches.
(From OE-Core rev: cb6185c52ed0c4b035715f351f5aea563bc99047)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/gpgme/gpgme/0001-Revert-build-Make-gpgme.m4-use-gpgrt-config-with-.pc.patch | 40 | ||||
-rw-r--r-- | meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch | 81 | ||||
-rw-r--r-- | meta/recipes-support/gpgme/gpgme/0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch | 34 | ||||
-rw-r--r-- | meta/recipes-support/gpgme/gpgme/0008-do-not-auto-check-var-PYTHON.patch | 13 | ||||
-rw-r--r-- | meta/recipes-support/gpgme/gpgme_1.20.0.bb (renamed from meta/recipes-support/gpgme/gpgme_1.18.0.bb) | 2 |
5 files changed, 71 insertions, 99 deletions
diff --git a/meta/recipes-support/gpgme/gpgme/0001-Revert-build-Make-gpgme.m4-use-gpgrt-config-with-.pc.patch b/meta/recipes-support/gpgme/gpgme/0001-Revert-build-Make-gpgme.m4-use-gpgrt-config-with-.pc.patch index 0c15cc7c38..8ed39280ca 100644 --- a/meta/recipes-support/gpgme/gpgme/0001-Revert-build-Make-gpgme.m4-use-gpgrt-config-with-.pc.patch +++ b/meta/recipes-support/gpgme/gpgme/0001-Revert-build-Make-gpgme.m4-use-gpgrt-config-with-.pc.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From a001b3c23bf80fd752044615b9bba6b926ff9666 Mon Sep 17 00:00:00 2001 | 1 | From ee1421f7a7a9f31400ba992a5be52b88d20170c9 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: Fri, 10 May 2019 14:18:04 +0800 | 3 | Date: Fri, 10 May 2019 14:18:04 +0800 |
4 | Subject: [PATCH] Revert "build: Make gpgme.m4 use gpgrt-config with *.pc." | 4 | Subject: [PATCH] Revert "build: Make gpgme.m4 use gpgrt-config with *.pc." |
@@ -10,36 +10,21 @@ The oe-core does not support gpgrt-config, so revert it | |||
10 | Upstream-Status: Inappropriate [oe-core specific] | 10 | Upstream-Status: Inappropriate [oe-core specific] |
11 | 11 | ||
12 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 12 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
13 | |||
13 | --- | 14 | --- |
14 | src/gpgme.m4 | 58 +++++++++------------------------------------------- | 15 | src/gpgme.m4 | 54 ++++++++-------------------------------------------- |
15 | 1 file changed, 10 insertions(+), 48 deletions(-) | 16 | 1 file changed, 8 insertions(+), 46 deletions(-) |
16 | 17 | ||
17 | diff --git a/src/gpgme.m4 b/src/gpgme.m4 | 18 | diff --git a/src/gpgme.m4 b/src/gpgme.m4 |
18 | index c749a5d..8579146 100644 | 19 | index f2906c1..8cc2898 100644 |
19 | --- a/src/gpgme.m4 | 20 | --- a/src/gpgme.m4 |
20 | +++ b/src/gpgme.m4 | 21 | +++ b/src/gpgme.m4 |
21 | @@ -1,5 +1,5 @@ | 22 | @@ -125,24 +125,10 @@ AC_REQUIRE([_AM_PATH_GPGRT_CONFIG])dnl |
22 | # gpgme.m4 - autoconf macro to detect GPGME. | ||
23 | -# Copyright (C) 2002, 2003, 2004, 2014, 2018 g10 Code GmbH | ||
24 | +# Copyright (C) 2002, 2003, 2004, 2014 g10 Code GmbH | ||
25 | # | ||
26 | # This file is free software; as a special exception the author gives | ||
27 | # unlimited permission to copy and/or distribute it, with or without | ||
28 | @@ -9,7 +9,7 @@ | ||
29 | # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the | ||
30 | # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
31 | # | ||
32 | -# Last-changed: 2020-11-20 | ||
33 | +# Last-changed: 2014-10-02 | ||
34 | |||
35 | |||
36 | AC_DEFUN([_AM_PATH_GPGME_CONFIG], | ||
37 | @@ -36,24 +36,10 @@ AC_DEFUN([_AM_PATH_GPGME_CONFIG], | ||
38 | fi | 23 | fi |
39 | fi | 24 | fi |
40 | 25 | ||
41 | - use_gpgrt_config="" | 26 | - use_gpgrt_config="" |
42 | - if test x"${GPGME_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then | 27 | - if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then |
43 | - if $GPGRT_CONFIG gpgme --exists; then | 28 | - if $GPGRT_CONFIG gpgme --exists; then |
44 | - GPGME_CONFIG="$GPGRT_CONFIG gpgme" | 29 | - GPGME_CONFIG="$GPGRT_CONFIG gpgme" |
45 | - AC_MSG_NOTICE([Use gpgrt-config as gpgme-config]) | 30 | - AC_MSG_NOTICE([Use gpgrt-config as gpgme-config]) |
@@ -61,7 +46,7 @@ index c749a5d..8579146 100644 | |||
61 | fi | 46 | fi |
62 | gpgme_version_major=`echo $gpgme_version | \ | 47 | gpgme_version_major=`echo $gpgme_version | \ |
63 | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` | 48 | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` |
64 | @@ -66,16 +52,12 @@ AC_DEFUN([_AM_PATH_GPGME_CONFIG], | 49 | @@ -155,16 +141,12 @@ AC_REQUIRE([_AM_PATH_GPGRT_CONFIG])dnl |
65 | 50 | ||
66 | AC_DEFUN([_AM_PATH_GPGME_CONFIG_HOST_CHECK], | 51 | AC_DEFUN([_AM_PATH_GPGME_CONFIG_HOST_CHECK], |
67 | [ | 52 | [ |
@@ -80,7 +65,7 @@ index c749a5d..8579146 100644 | |||
80 | *** built for $gpgme_config_host and thus may not match the | 65 | *** built for $gpgme_config_host and thus may not match the |
81 | *** used host $host. | 66 | *** used host $host. |
82 | *** You may want to use the configure option --with-gpgme-prefix | 67 | *** You may want to use the configure option --with-gpgme-prefix |
83 | @@ -136,11 +118,7 @@ AC_DEFUN([AM_PATH_GPGME], | 68 | @@ -225,11 +207,7 @@ AC_DEFUN([AM_PATH_GPGME], |
84 | # If we have a recent GPGME, we should also check that the | 69 | # If we have a recent GPGME, we should also check that the |
85 | # API is compatible. | 70 | # API is compatible. |
86 | if test "$req_gpgme_api" -gt 0 ; then | 71 | if test "$req_gpgme_api" -gt 0 ; then |
@@ -93,7 +78,7 @@ index c749a5d..8579146 100644 | |||
93 | if test "$tmp" -gt 0 ; then | 78 | if test "$tmp" -gt 0 ; then |
94 | if test "$req_gpgme_api" -ne "$tmp" ; then | 79 | if test "$req_gpgme_api" -ne "$tmp" ; then |
95 | ok=no | 80 | ok=no |
96 | @@ -280,11 +258,7 @@ AC_DEFUN([AM_PATH_GPGME_GLIB], | 81 | @@ -372,11 +350,7 @@ AC_DEFUN([AM_PATH_GPGME_GLIB], |
97 | # If we have a recent GPGME, we should also check that the | 82 | # If we have a recent GPGME, we should also check that the |
98 | # API is compatible. | 83 | # API is compatible. |
99 | if test "$req_gpgme_api" -gt 0 ; then | 84 | if test "$req_gpgme_api" -gt 0 ; then |
@@ -106,7 +91,7 @@ index c749a5d..8579146 100644 | |||
106 | if test "$tmp" -gt 0 ; then | 91 | if test "$tmp" -gt 0 ; then |
107 | if test "$req_gpgme_api" -ne "$tmp" ; then | 92 | if test "$req_gpgme_api" -ne "$tmp" ; then |
108 | ok=no | 93 | ok=no |
109 | @@ -293,20 +267,8 @@ AC_DEFUN([AM_PATH_GPGME_GLIB], | 94 | @@ -385,20 +359,8 @@ AC_DEFUN([AM_PATH_GPGME_GLIB], |
110 | fi | 95 | fi |
111 | fi | 96 | fi |
112 | if test $ok = yes; then | 97 | if test $ok = yes; then |
@@ -129,6 +114,3 @@ index c749a5d..8579146 100644 | |||
129 | AC_MSG_RESULT(yes) | 114 | AC_MSG_RESULT(yes) |
130 | ifelse([$2], , :, [$2]) | 115 | ifelse([$2], , :, [$2]) |
131 | _AM_PATH_GPGME_CONFIG_HOST_CHECK | 116 | _AM_PATH_GPGME_CONFIG_HOST_CHECK |
132 | -- | ||
133 | 2.25.1 | ||
134 | |||
diff --git a/meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch b/meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch index 3b2f59c2fc..738b23cd58 100644 --- a/meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch +++ b/meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 0d7ec5b98dc6cbd35f56deaecec5ecfdaa944aee Mon Sep 17 00:00:00 2001 | 1 | From f8221238d51066b7a1a5f2917cce2791876ea8b0 Mon Sep 17 00:00:00 2001 |
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
3 | Date: Fri, 10 May 2019 14:23:55 +0800 | 3 | Date: Fri, 10 May 2019 14:23:55 +0800 |
4 | Subject: [PATCH] pkgconfig | 4 | Subject: [PATCH] pkgconfig |
@@ -19,17 +19,17 @@ Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> | |||
19 | --- | 19 | --- |
20 | configure.ac | 1 + | 20 | configure.ac | 1 + |
21 | src/Makefile.am | 4 +- | 21 | src/Makefile.am | 4 +- |
22 | src/gpgme-pthread.pc.in | 15 ++++++ | 22 | src/gpgme-pthread.pc.in | 15 +++++ |
23 | src/gpgme.m4 | 114 +++------------------------------------- | 23 | src/gpgme.m4 | 119 +++------------------------------------- |
24 | src/gpgme.pc.in | 4 +- | 24 | src/gpgme.pc.in | 4 +- |
25 | 5 files changed, 28 insertions(+), 110 deletions(-) | 25 | 5 files changed, 29 insertions(+), 114 deletions(-) |
26 | create mode 100644 src/gpgme-pthread.pc.in | 26 | create mode 100644 src/gpgme-pthread.pc.in |
27 | 27 | ||
28 | diff --git a/configure.ac b/configure.ac | 28 | diff --git a/configure.ac b/configure.ac |
29 | index 9d696b9..5b4e730 100644 | 29 | index d1b9aca..9c4f97c 100644 |
30 | --- a/configure.ac | 30 | --- a/configure.ac |
31 | +++ b/configure.ac | 31 | +++ b/configure.ac |
32 | @@ -926,6 +926,7 @@ AC_CONFIG_FILES(Makefile src/Makefile | 32 | @@ -1043,6 +1043,7 @@ AC_CONFIG_FILES(Makefile src/Makefile |
33 | src/gpgme-glib.pc | 33 | src/gpgme-glib.pc |
34 | src/gpgme.h) | 34 | src/gpgme.h) |
35 | AC_CONFIG_FILES(src/gpgme-config, chmod +x src/gpgme-config) | 35 | AC_CONFIG_FILES(src/gpgme-config, chmod +x src/gpgme-config) |
@@ -77,10 +77,10 @@ index 0000000..074bbf6 | |||
77 | +Cflags: -I${includedir} | 77 | +Cflags: -I${includedir} |
78 | +Requires: libassuan gpg-error | 78 | +Requires: libassuan gpg-error |
79 | diff --git a/src/gpgme.m4 b/src/gpgme.m4 | 79 | diff --git a/src/gpgme.m4 b/src/gpgme.m4 |
80 | index 71b0010..5821895 100644 | 80 | index 8cc2898..0ff550e 100644 |
81 | --- a/src/gpgme.m4 | 81 | --- a/src/gpgme.m4 |
82 | +++ b/src/gpgme.m4 | 82 | +++ b/src/gpgme.m4 |
83 | @@ -79,7 +79,7 @@ dnl config script does not match the host specification the script | 83 | @@ -168,7 +168,7 @@ dnl config script does not match the host specification the script |
84 | dnl is added to the gpg_config_script_warn variable. | 84 | dnl is added to the gpg_config_script_warn variable. |
85 | dnl | 85 | dnl |
86 | AC_DEFUN([AM_PATH_GPGME], | 86 | AC_DEFUN([AM_PATH_GPGME], |
@@ -89,7 +89,7 @@ index 71b0010..5821895 100644 | |||
89 | tmp=ifelse([$1], ,1:0.4.2,$1) | 89 | tmp=ifelse([$1], ,1:0.4.2,$1) |
90 | if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then | 90 | if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then |
91 | req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` | 91 | req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` |
92 | @@ -89,36 +89,12 @@ AC_DEFUN([AM_PATH_GPGME], | 92 | @@ -178,36 +178,12 @@ AC_DEFUN([AM_PATH_GPGME], |
93 | min_gpgme_version="$tmp" | 93 | min_gpgme_version="$tmp" |
94 | fi | 94 | fi |
95 | 95 | ||
@@ -128,7 +128,7 @@ index 71b0010..5821895 100644 | |||
128 | if test "$tmp" -gt 0 ; then | 128 | if test "$tmp" -gt 0 ; then |
129 | if test "$req_gpgme_api" -ne "$tmp" ; then | 129 | if test "$req_gpgme_api" -ne "$tmp" ; then |
130 | ok=no | 130 | ok=no |
131 | @@ -127,19 +103,11 @@ AC_DEFUN([AM_PATH_GPGME], | 131 | @@ -216,19 +192,11 @@ AC_DEFUN([AM_PATH_GPGME], |
132 | fi | 132 | fi |
133 | fi | 133 | fi |
134 | if test $ok = yes; then | 134 | if test $ok = yes; then |
@@ -148,44 +148,45 @@ index 71b0010..5821895 100644 | |||
148 | ]) | 148 | ]) |
149 | 149 | ||
150 | dnl AM_PATH_GPGME_PTHREAD([MINIMUM-VERSION, | 150 | dnl AM_PATH_GPGME_PTHREAD([MINIMUM-VERSION, |
151 | @@ -148,7 +116,7 @@ dnl Test for libgpgme and define GPGME_PTHREAD_CFLAGS | 151 | @@ -236,9 +204,8 @@ dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]]) |
152 | dnl Test for libgpgme and define GPGME_PTHREAD_CFLAGS | ||
152 | dnl and GPGME_PTHREAD_LIBS. | 153 | dnl and GPGME_PTHREAD_LIBS. |
153 | dnl | 154 | dnl |
154 | AC_DEFUN([AM_PATH_GPGME_PTHREAD], | 155 | -AC_DEFUN([AM_PATH_GPGME_PTHREAD],[ |
155 | -[ AC_REQUIRE([_AM_PATH_GPGME_CONFIG])dnl | 156 | - AC_OBSOLETE([$0], [; use AM_PATH_GPGME instead to use GPGME_CFLAGS and GPGME_LIBS])dnl |
157 | - AC_REQUIRE([_AM_PATH_GPGME_CONFIG])dnl | ||
158 | +AC_DEFUN([AM_PATH_GPGME_PTHREAD], | ||
156 | +[ | 159 | +[ |
157 | tmp=ifelse([$1], ,1:0.4.2,$1) | 160 | tmp=ifelse([$1], ,1:0.4.2,$1) |
158 | if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then | 161 | if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then |
159 | req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` | 162 | req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` |
160 | @@ -158,38 +126,12 @@ AC_DEFUN([AM_PATH_GPGME_PTHREAD], | 163 | @@ -248,40 +215,12 @@ AC_DEFUN([AM_PATH_GPGME_PTHREAD],[ |
161 | min_gpgme_version="$tmp" | 164 | min_gpgme_version="$tmp" |
162 | fi | 165 | fi |
163 | 166 | ||
164 | - AC_MSG_CHECKING(for GPGME pthread - version >= $min_gpgme_version) | 167 | - AC_MSG_CHECKING(for GPGME pthread - version >= $min_gpgme_version) |
165 | - ok=no | 168 | - ok=no |
166 | - if test "$GPGME_CONFIG" != "no" ; then | 169 | - if test "$GPGME_CONFIG" != "no" ; then |
167 | - if `$GPGME_CONFIG --thread=pthread 2> /dev/null` ; then | 170 | - req_major=`echo $min_gpgme_version | \ |
168 | - req_major=`echo $min_gpgme_version | \ | ||
169 | - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'` | 171 | - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'` |
170 | - req_minor=`echo $min_gpgme_version | \ | 172 | - req_minor=`echo $min_gpgme_version | \ |
171 | - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'` | 173 | - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'` |
172 | - req_micro=`echo $min_gpgme_version | \ | 174 | - req_micro=`echo $min_gpgme_version | \ |
173 | - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'` | 175 | - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'` |
174 | - if test "$gpgme_version_major" -gt "$req_major"; then | 176 | - if test "$gpgme_version_major" -gt "$req_major"; then |
175 | - ok=yes | 177 | - ok=yes |
176 | - else | 178 | - else |
177 | - if test "$gpgme_version_major" -eq "$req_major"; then | 179 | - if test "$gpgme_version_major" -eq "$req_major"; then |
178 | - if test "$gpgme_version_minor" -gt "$req_minor"; then | 180 | - if test "$gpgme_version_minor" -gt "$req_minor"; then |
179 | - ok=yes | 181 | - ok=yes |
180 | - else | 182 | - else |
181 | - if test "$gpgme_version_minor" -eq "$req_minor"; then | 183 | - if test "$gpgme_version_minor" -eq "$req_minor"; then |
182 | - if test "$gpgme_version_micro" -ge "$req_micro"; then | 184 | - if test "$gpgme_version_micro" -ge "$req_micro"; then |
183 | - ok=yes | 185 | - ok=yes |
184 | - fi | 186 | - fi |
187 | - fi | ||
185 | - fi | 188 | - fi |
186 | - fi | ||
187 | - fi | 189 | - fi |
188 | - fi | ||
189 | - fi | 190 | - fi |
190 | - fi | 191 | - fi |
191 | + PKG_CHECK_MODULES(GPGME_PTHREAD, [gpgme-pthread >= $min_gpgme_version], [ok=yes], [ok=no]) | 192 | + PKG_CHECK_MODULES(GPGME_PTHREAD, [gpgme-pthread >= $min_gpgme_version], [ok=yes], [ok=no]) |
@@ -193,17 +194,21 @@ index 71b0010..5821895 100644 | |||
193 | # If we have a recent GPGME, we should also check that the | 194 | # If we have a recent GPGME, we should also check that the |
194 | # API is compatible. | 195 | # API is compatible. |
195 | if test "$req_gpgme_api" -gt 0 ; then | 196 | if test "$req_gpgme_api" -gt 0 ; then |
196 | - tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0` | 197 | - if test -z "$use_gpgrt_config"; then |
198 | - tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0` | ||
199 | - else | ||
200 | - tmp=`$GPGME_CONFIG --variable=api_version 2>/dev/null || echo 0` | ||
201 | - fi | ||
197 | + tmp=`$PKG_CONFIG --variable=api_version gpgme-pthread 2>/dev/null || echo 0` | 202 | + tmp=`$PKG_CONFIG --variable=api_version gpgme-pthread 2>/dev/null || echo 0` |
198 | if test "$tmp" -gt 0 ; then | 203 | if test "$tmp" -gt 0 ; then |
199 | if test "$req_gpgme_api" -ne "$tmp" ; then | 204 | if test "$req_gpgme_api" -ne "$tmp" ; then |
200 | ok=no | 205 | ok=no |
201 | @@ -198,19 +140,11 @@ AC_DEFUN([AM_PATH_GPGME_PTHREAD], | 206 | @@ -290,19 +229,11 @@ AC_DEFUN([AM_PATH_GPGME_PTHREAD],[ |
202 | fi | 207 | fi |
203 | fi | 208 | fi |
204 | if test $ok = yes; then | 209 | if test $ok = yes; then |
205 | - GPGME_PTHREAD_CFLAGS=`$GPGME_CONFIG --thread=pthread --cflags` | 210 | - GPGME_PTHREAD_CFLAGS=`$GPGME_CONFIG --cflags` |
206 | - GPGME_PTHREAD_LIBS=`$GPGME_CONFIG --thread=pthread --libs` | 211 | - GPGME_PTHREAD_LIBS=`$GPGME_CONFIG --libs` |
207 | - AC_MSG_RESULT(yes) | 212 | - AC_MSG_RESULT(yes) |
208 | ifelse([$2], , :, [$2]) | 213 | ifelse([$2], , :, [$2]) |
209 | _AM_PATH_GPGME_CONFIG_HOST_CHECK | 214 | _AM_PATH_GPGME_CONFIG_HOST_CHECK |
@@ -218,7 +223,7 @@ index 71b0010..5821895 100644 | |||
218 | ]) | 223 | ]) |
219 | 224 | ||
220 | 225 | ||
221 | @@ -229,36 +163,12 @@ AC_DEFUN([AM_PATH_GPGME_GLIB], | 226 | @@ -321,36 +252,12 @@ AC_DEFUN([AM_PATH_GPGME_GLIB], |
222 | min_gpgme_version="$tmp" | 227 | min_gpgme_version="$tmp" |
223 | fi | 228 | fi |
224 | 229 | ||
@@ -257,7 +262,7 @@ index 71b0010..5821895 100644 | |||
257 | if test "$tmp" -gt 0 ; then | 262 | if test "$tmp" -gt 0 ; then |
258 | if test "$req_gpgme_api" -ne "$tmp" ; then | 263 | if test "$req_gpgme_api" -ne "$tmp" ; then |
259 | ok=no | 264 | ok=no |
260 | @@ -267,17 +177,9 @@ AC_DEFUN([AM_PATH_GPGME_GLIB], | 265 | @@ -359,17 +266,9 @@ AC_DEFUN([AM_PATH_GPGME_GLIB], |
261 | fi | 266 | fi |
262 | fi | 267 | fi |
263 | if test $ok = yes; then | 268 | if test $ok = yes; then |
@@ -276,15 +281,15 @@ index 71b0010..5821895 100644 | |||
276 | - AC_SUBST(GPGME_GLIB_LIBS) | 281 | - AC_SUBST(GPGME_GLIB_LIBS) |
277 | ]) | 282 | ]) |
278 | diff --git a/src/gpgme.pc.in b/src/gpgme.pc.in | 283 | diff --git a/src/gpgme.pc.in b/src/gpgme.pc.in |
279 | index 80d59de..932645b 100644 | 284 | index 9ddef5c..932645b 100644 |
280 | --- a/src/gpgme.pc.in | 285 | --- a/src/gpgme.pc.in |
281 | +++ b/src/gpgme.pc.in | 286 | +++ b/src/gpgme.pc.in |
282 | @@ -9,6 +9,6 @@ Name: gpgme | 287 | @@ -9,6 +9,6 @@ Name: gpgme |
283 | Description: GnuPG Made Easy to access GnuPG | 288 | Description: GnuPG Made Easy to access GnuPG |
284 | Requires.private: gpg-error, libassuan | 289 | Requires.private: gpg-error, libassuan |
285 | Version: @PACKAGE_VERSION@ | 290 | Version: @PACKAGE_VERSION@ |
286 | -Cflags: -I${includedir} @GPGME_CONFIG_CFLAGS@ | 291 | -Cflags: @GPGME_CONFIG_CFLAGS@ |
287 | -Libs: -L${libdir} @GPGME_CONFIG_LIBS@ | 292 | -Libs: @GPGME_CONFIG_LIBS@ |
288 | +Cflags: -I${includedir} | 293 | +Cflags: -I${includedir} |
289 | +Libs: -L${libdir} -lgpgme | 294 | +Libs: -L${libdir} -lgpgme |
290 | URL: https://www.gnupg.org/software/gpgme/index.html | 295 | URL: https://www.gnupg.org/software/gpgme/index.html |
diff --git a/meta/recipes-support/gpgme/gpgme/0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch b/meta/recipes-support/gpgme/gpgme/0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch index ecd1793ab9..0d2692912f 100644 --- a/meta/recipes-support/gpgme/gpgme/0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch +++ b/meta/recipes-support/gpgme/gpgme/0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 52f8fd2010b900c7d382a7c4e6c1a317d8160585 Mon Sep 17 00:00:00 2001 | 1 | From 9fce0689bc04506e5758444efa24ea99fe1ff5ef 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: Fri, 10 May 2019 14:30:36 +0800 | 3 | Date: Fri, 10 May 2019 14:30:36 +0800 |
4 | Subject: [PATCH 2/7] gpgme/lang/python: gpg-error-config should not be used | 4 | Subject: [PATCH] gpgme/lang/python: gpg-error-config should not be used |
5 | 5 | ||
6 | gpg-error-config was modified by OE to always return an error. | 6 | gpg-error-config was modified by OE to always return an error. |
7 | So we want to find an alternative way to retrieve whatever it | 7 | So we want to find an alternative way to retrieve whatever it |
@@ -14,39 +14,23 @@ Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | |||
14 | Rebase to 1.13.0 | 14 | Rebase to 1.13.0 |
15 | 15 | ||
16 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 16 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
17 | |||
17 | --- | 18 | --- |
18 | lang/python/setup.py.in | 9 +-------- | 19 | lang/python/setup.py.in | 3 +-- |
19 | 1 file changed, 1 insertion(+), 8 deletions(-) | 20 | 1 file changed, 1 insertion(+), 2 deletions(-) |
20 | 21 | ||
21 | diff --git a/lang/python/setup.py.in b/lang/python/setup.py.in | 22 | diff --git a/lang/python/setup.py.in b/lang/python/setup.py.in |
22 | index 9785a28..006216d 100755 | 23 | index 6f36861..1d9058b 100755 |
23 | --- a/lang/python/setup.py.in | 24 | --- a/lang/python/setup.py.in |
24 | +++ b/lang/python/setup.py.in | 25 | +++ b/lang/python/setup.py.in |
25 | @@ -30,7 +30,6 @@ import subprocess | 26 | @@ -169,9 +169,8 @@ class BuildExtFirstHack(build): |
26 | import sys | ||
27 | |||
28 | # Out-of-tree build of the gpg bindings. | ||
29 | -gpg_error_config = ['gpg-error-config'] | ||
30 | gpgme_config_flags = ['--thread=pthread'] | ||
31 | gpgme_config = ['gpgme-config'] + gpgme_config_flags | ||
32 | gpgme_h = '' | ||
33 | @@ -182,15 +181,9 @@ class BuildExtFirstHack(build): | ||
34 | 27 | ||
35 | def _generate_errors_i(self): | 28 | def _generate_errors_i(self): |
36 | 29 | ||
37 | - try: | 30 | - ge_cflags='@GPG_ERROR_CFLAGS@' |
38 | - subprocess.check_call( | ||
39 | - gpg_error_config + ['--version'], stdout=devnull) | ||
40 | - except: | ||
41 | - sys.exit('Could not find gpg-error-config. ' + | ||
42 | - 'Please install the libgpg-error development package.') | ||
43 | |||
44 | gpg_error_content = self._read_header( | 31 | gpg_error_content = self._read_header( |
45 | - 'gpg-error.h', getconfig('cflags', config=gpg_error_config)) | 32 | - 'gpg-error.h', ge_cflags.split(' ') if ge_cflags else []) |
46 | + "gpg-error.h", os.environ.get('CFLAGS').split()) | 33 | + "gpg-error.h", os.environ.get('CFLAGS').split()) |
47 | 34 | ||
48 | filter_re = re.compile(r'GPG_ERR_[^ ]* =') | 35 | filter_re = re.compile(r'GPG_ERR_[^ ]* =') |
49 | rewrite_re = re.compile(r' *(.*) = .*') | 36 | rewrite_re = re.compile(r' *(.*) = .*') |
50 | -- | ||
51 | 2.7.4 | ||
52 | |||
diff --git a/meta/recipes-support/gpgme/gpgme/0008-do-not-auto-check-var-PYTHON.patch b/meta/recipes-support/gpgme/gpgme/0008-do-not-auto-check-var-PYTHON.patch index dfea1bf78a..214cf348e4 100644 --- a/meta/recipes-support/gpgme/gpgme/0008-do-not-auto-check-var-PYTHON.patch +++ b/meta/recipes-support/gpgme/gpgme/0008-do-not-auto-check-var-PYTHON.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 5bbf7a048b6d81d23186340e839f9f65b5b514b6 Mon Sep 17 00:00:00 2001 | 1 | From 94cf9f8fc79c0d1d4529cebdd74328927fda36a2 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: Fri, 10 May 2019 16:19:54 +0800 | 3 | Date: Fri, 10 May 2019 16:19:54 +0800 |
4 | Subject: [PATCH] do not auto check var-PYTHON | 4 | Subject: [PATCH] do not auto check var-PYTHON |
@@ -14,18 +14,19 @@ Upstream-Status: Inappropriate [oe-core specific] | |||
14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
15 | 15 | ||
16 | --- | 16 | --- |
17 | configure.ac | 4 ++-- | 17 | configure.ac | 5 ++--- |
18 | 1 file changed, 2 insertions(+), 2 deletions(-) | 18 | 1 file changed, 2 insertions(+), 3 deletions(-) |
19 | 19 | ||
20 | diff --git a/configure.ac b/configure.ac | 20 | diff --git a/configure.ac b/configure.ac |
21 | index 5ef00c0..bbcff93 100644 | 21 | index df218ec..6a619ef 100644 |
22 | --- a/configure.ac | 22 | --- a/configure.ac |
23 | +++ b/configure.ac | 23 | +++ b/configure.ac |
24 | @@ -425,8 +425,8 @@ if test "$found_py" = "1"; then | 24 | @@ -521,9 +521,8 @@ if test "$found_py" = "1"; then |
25 | if test "$found_py" = "1" -o "$found_py3" = "1"; then | 25 | if test "$found_py" = "1" -o "$found_py3" = "1"; then |
26 | # Reset everything, so that we can look for another Python. | 26 | # Reset everything, so that we can look for another Python. |
27 | m4_foreach([mym4pythonver], | 27 | m4_foreach([mym4pythonver], |
28 | - [[2.7],[3.4],[3.5],[3.6],[3.7],[3.8],[3.9],[all]], | 28 | - [[2.7],[3.4],[3.5],[3.6],[3.7],[3.8],[3.9],[3.10], |
29 | - [3.11],[3.12],[all]], | ||
29 | - [unset PYTHON | 30 | - [unset PYTHON |
30 | + [[2.7],[3.7]], | 31 | + [[2.7],[3.7]], |
31 | + [ | 32 | + [ |
diff --git a/meta/recipes-support/gpgme/gpgme_1.18.0.bb b/meta/recipes-support/gpgme/gpgme_1.20.0.bb index deea6f3f7b..dc5b58d7c3 100644 --- a/meta/recipes-support/gpgme/gpgme_1.18.0.bb +++ b/meta/recipes-support/gpgme/gpgme_1.20.0.bb | |||
@@ -25,7 +25,7 @@ SRC_URI = "${GNUPG_MIRROR}/gpgme/${BP}.tar.bz2 \ | |||
25 | file://0001-autogen.sh-remove-unknown-in-version.patch \ | 25 | file://0001-autogen.sh-remove-unknown-in-version.patch \ |
26 | " | 26 | " |
27 | 27 | ||
28 | SRC_URI[sha256sum] = "361d4eae47ce925dba0ea569af40e7b52c645c4ae2e65e5621bf1b6cdd8b0e9e" | 28 | SRC_URI[sha256sum] = "25a5785a5da356689001440926b94e967d02e13c49eb7743e35ef0cf22e42750" |
29 | 29 | ||
30 | PYTHON_DEPS = "${@bb.utils.contains('LANGUAGES', 'python', 'swig-native', '', d)}" | 30 | PYTHON_DEPS = "${@bb.utils.contains('LANGUAGES', 'python', 'swig-native', '', d)}" |
31 | 31 | ||