summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhongxu <hongxu.jia@eng.windriver.com>2025-07-21 16:21:00 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-07-28 14:51:50 +0100
commit04e9297cc537d5d571b9c390887c3251465af2b1 (patch)
tree84174ac7af492f7e4f7ca2ca79924b6e5965eab6
parentc0d815823f6921ac8a4d9019a1b56c7a10abba4a (diff)
downloadpoky-04e9297cc537d5d571b9c390887c3251465af2b1.tar.gz
gpgme: upgrade 1.24.3 -> 2.0.0
Refresh 0001-pkgconfig.patch Due to upstream [python: Remove Python bindings][1], remove following patches - 0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch - 0003-Correctly-install-python-modules.patch - 0006-fix-build-path-issue.patch Due to upstream [cpp,qt: Remove C++ and Qt bindings][2], remove cpp and qt bindings License-Update: copyright years updated, remove blank line [1] https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=commit;h=932caf37d36eca2caec59bf48bc505364a5765bb [2] https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=commit;h=763d5f5d6a88ec938b8678ab597e1404af724553 (From OE-Core rev: ce7b5d5544a9acf342ef4a8f90a353399e3c2cb6) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch23
-rw-r--r--meta/recipes-support/gpgme/gpgme/0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch35
-rw-r--r--meta/recipes-support/gpgme/gpgme/0003-Correctly-install-python-modules.patch30
-rw-r--r--meta/recipes-support/gpgme/gpgme/0006-fix-build-path-issue.patch34
-rw-r--r--meta/recipes-support/gpgme/gpgme_2.0.0.bb (renamed from meta/recipes-support/gpgme/gpgme_1.24.3.bb)35
5 files changed, 21 insertions, 136 deletions
diff --git a/meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch b/meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch
index 9d0b4b282b..67b65157d1 100644
--- a/meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch
+++ b/meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch
@@ -1,6 +1,6 @@
1From 447fd26a43f40ccb071cd19198ee43fdfce87e3a Mon Sep 17 00:00:00 2001 1From 4b4e6fc898dd249387bbed4924fa22c1c494327a Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 26 Nov 2024 23:04:52 -0800 3Date: Mon, 21 Jul 2025 12:43:29 +0800
4Subject: [PATCH] pkgconfig 4Subject: [PATCH] pkgconfig
5 5
6Update gpgme to use pkgconfig instead of -config files since its 6Update gpgme to use pkgconfig instead of -config files since its
@@ -17,6 +17,8 @@ Rebase to 1.17.0
17Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> 17Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
18Rebase to 1.24.0 18Rebase to 1.24.0
19Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 19Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
20Rebase to 2.0.0
21Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
20--- 22---
21 configure.ac | 1 + 23 configure.ac | 1 +
22 src/Makefile.am | 4 +- 24 src/Makefile.am | 4 +-
@@ -27,19 +29,19 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
27 create mode 100644 src/gpgme-pthread.pc.in 29 create mode 100644 src/gpgme-pthread.pc.in
28 30
29diff --git a/configure.ac b/configure.ac 31diff --git a/configure.ac b/configure.ac
30index c34f700..4eddc3d 100644 32index d4dcb1c..293fcc2 100644
31--- a/configure.ac 33--- a/configure.ac
32+++ b/configure.ac 34+++ b/configure.ac
33@@ -1176,6 +1176,7 @@ AC_CONFIG_FILES(Makefile src/Makefile 35@@ -844,6 +844,7 @@ AC_CONFIG_FILES(Makefile src/Makefile
36 src/gpgme.pc
34 src/gpgme-glib.pc 37 src/gpgme-glib.pc
35 src/gpgme.h) 38 src/gpgme.h)
36 AC_CONFIG_FILES(src/gpgme-config, chmod +x src/gpgme-config)
37+AC_CONFIG_FILES(src/gpgme-pthread.pc) 39+AC_CONFIG_FILES(src/gpgme-pthread.pc)
38 AC_CONFIG_FILES(lang/cpp/Makefile lang/cpp/src/Makefile) 40 AC_CONFIG_FILES(src/gpgme-config, chmod +x src/gpgme-config)
39 AC_CONFIG_FILES(lang/cpp/tests/Makefile) 41 AC_CONFIG_FILES([lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd])
40 AC_CONFIG_FILES(lang/cpp/src/gpgmepp.pc) 42 AC_CONFIG_FILES([lang/js/Makefile lang/js/src/Makefile
41diff --git a/src/Makefile.am b/src/Makefile.am 43diff --git a/src/Makefile.am b/src/Makefile.am
42index 0370862..e716ce4 100644 44index edc239b..d427044 100644
43--- a/src/Makefile.am 45--- a/src/Makefile.am
44+++ b/src/Makefile.am 46+++ b/src/Makefile.am
45@@ -20,11 +20,11 @@ 47@@ -20,11 +20,11 @@
@@ -293,3 +295,6 @@ index 9ddef5c..932645b 100644
293+Cflags: -I${includedir} 295+Cflags: -I${includedir}
294+Libs: -L${libdir} -lgpgme 296+Libs: -L${libdir} -lgpgme
295 URL: https://www.gnupg.org/software/gpgme/index.html 297 URL: https://www.gnupg.org/software/gpgme/index.html
298--
2992.34.1
300
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
deleted file mode 100644
index 3a1837e857..0000000000
--- a/meta/recipes-support/gpgme/gpgme/0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From 145adf290571b7dd47b7fca57b11349af0b94e74 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Fri, 10 May 2019 14:30:36 +0800
4Subject: [PATCH] gpgme/lang/python: gpg-error-config should not be used
5
6gpg-error-config was modified by OE to always return an error.
7So we want to find an alternative way to retrieve whatever it
8is we need.
9
10Upstream-Status: Inappropriate [changes are specific to OE]
11
12Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13
14Rebase to 1.13.0
15
16Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
17---
18 lang/python/setup.py.in | 3 +--
19 1 file changed, 1 insertion(+), 2 deletions(-)
20
21diff --git a/lang/python/setup.py.in b/lang/python/setup.py.in
22index 1ddfbe7..d2fa4f0 100755
23--- a/lang/python/setup.py.in
24+++ b/lang/python/setup.py.in
25@@ -173,9 +173,8 @@ class BuildExtFirstHack(build):
26
27 def _generate_errors_i(self):
28
29- ge_cflags='@GPG_ERROR_CFLAGS@'
30 gpg_error_content = self._read_header(
31- 'gpg-error.h', ge_cflags.split(' ') if ge_cflags else [])
32+ "gpg-error.h", os.environ.get('CFLAGS').split())
33
34 filter_re = re.compile(r'GPG_ERR_[^ ]* =')
35 rewrite_re = re.compile(r' *(.*) = .*')
diff --git a/meta/recipes-support/gpgme/gpgme/0003-Correctly-install-python-modules.patch b/meta/recipes-support/gpgme/gpgme/0003-Correctly-install-python-modules.patch
deleted file mode 100644
index 7b2831ba4f..0000000000
--- a/meta/recipes-support/gpgme/gpgme/0003-Correctly-install-python-modules.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1From d8e884d1fa8c35ce68e94a0668548580cf5ba2d3 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 30 Jan 2018 15:28:49 +0800
4Subject: [PATCH] Correctly install python modules
5
6Upstream-Status: Inappropriate [oe-core specific]
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8
9Rebase to 1.9.0
10
11Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
12
13Rebase to 1.10.0
14Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
15---
16 lang/python/Makefile.am | 1 +
17 1 file changed, 1 insertion(+)
18
19diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
20index 1aa330f..d1d5c63 100644
21--- a/lang/python/Makefile.am
22+++ b/lang/python/Makefile.am
23@@ -97,6 +97,7 @@ install-exec-local:
24 --build-base="$$(basename "$${PYTHON}")-gpg" \
25 install \
26 --prefix "$(DESTDIR)$(prefix)" \
27+ --install-lib=$(DESTDIR)${pythondir} \
28 --verbose ; \
29 done
30
diff --git a/meta/recipes-support/gpgme/gpgme/0006-fix-build-path-issue.patch b/meta/recipes-support/gpgme/gpgme/0006-fix-build-path-issue.patch
deleted file mode 100644
index d64168b4fd..0000000000
--- a/meta/recipes-support/gpgme/gpgme/0006-fix-build-path-issue.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From f9f82874048c5eec08e815ff871462184b6d7d6a Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Wed, 31 Jan 2018 11:01:09 +0800
4Subject: [PATCH] fix build path issue
5
6Get the "--root" directory supplied to the "install" command,
7and use it as a prefix to strip off the purported filename
8encoded in bytecode files.
9
10Since --root added, we need to tweak --prefix and --install-lib
11to use relative path.
12
13Upstream-Status: Submitted [gnupg-devel@gnupg.org]
14Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
15---
16 lang/python/Makefile.am | 5 +++--
17 1 file changed, 3 insertions(+), 2 deletions(-)
18
19diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
20index d1d5c63..148e1b9 100644
21--- a/lang/python/Makefile.am
22+++ b/lang/python/Makefile.am
23@@ -96,8 +96,9 @@ install-exec-local:
24 build \
25 --build-base="$$(basename "$${PYTHON}")-gpg" \
26 install \
27- --prefix "$(DESTDIR)$(prefix)" \
28- --install-lib=$(DESTDIR)${pythondir} \
29+ --root=${DESTDIR} \
30+ --prefix "$(prefix)" \
31+ --install-lib=${pythondir} \
32 --verbose ; \
33 done
34
diff --git a/meta/recipes-support/gpgme/gpgme_1.24.3.bb b/meta/recipes-support/gpgme/gpgme_2.0.0.bb
index 64e3c6635a..c6887a0ebd 100644
--- a/meta/recipes-support/gpgme/gpgme_1.24.3.bb
+++ b/meta/recipes-support/gpgme/gpgme_2.0.0.bb
@@ -5,14 +5,12 @@ BUGTRACKER = "https://bugs.g10code.com/gnupg/index"
5 5
6LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & GPL-3.0-or-later" 6LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & GPL-3.0-or-later"
7LICENSE:${PN} = "GPL-2.0-or-later & LGPL-2.1-or-later" 7LICENSE:${PN} = "GPL-2.0-or-later & LGPL-2.1-or-later"
8LICENSE:${PN}-cpp = "GPL-2.0-or-later & LGPL-2.1-or-later"
9LICENSE:${PN}-tool = "GPL-3.0-or-later" 8LICENSE:${PN}-tool = "GPL-3.0-or-later"
10LICENSE:python3-gpg = "GPL-2.0-or-later & LGPL-2.1-or-later"
11 9
12LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ 10LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
13 file://COPYING.LESSER;md5=bbb461211a33b134d42ed5ee802b37ff \ 11 file://COPYING.LESSER;md5=bbb461211a33b134d42ed5ee802b37ff \
14 file://src/gpgme.h.in;endline=23;md5=2f0bf06d1c7dcb28532a9d0f94a7ca1d \ 12 file://src/gpgme.h.in;endline=23;md5=c0d051fa63f5a5514f4ab190d7ca495e \
15 file://src/engine.h;endline=22;md5=4b6d8ba313d9b564cc4d4cfb1640af9d \ 13 file://src/engine.h;endline=21;md5=f58f7a0b6488edae41b925ac9c890068 \
16 file://src/gpgme-tool.c;endline=21;md5=66c5381e0e05475792e24982d15e7ce8 \ 14 file://src/gpgme-tool.c;endline=21;md5=66c5381e0e05475792e24982d15e7ce8 \
17 " 15 "
18 16
@@ -20,40 +18,25 @@ UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html"
20SRC_URI = "${GNUPG_MIRROR}/gpgme/${BP}.tar.bz2 \ 18SRC_URI = "${GNUPG_MIRROR}/gpgme/${BP}.tar.bz2 \
21 file://0001-Revert-build-Make-gpgme.m4-use-gpgrt-config-with-.pc.patch \ 19 file://0001-Revert-build-Make-gpgme.m4-use-gpgrt-config-with-.pc.patch \
22 file://0001-pkgconfig.patch \ 20 file://0001-pkgconfig.patch \
23 file://0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch \
24 file://0003-Correctly-install-python-modules.patch \
25 file://0005-gpgme-config-skip-all-lib-or-usr-lib-directories-in-.patch \ 21 file://0005-gpgme-config-skip-all-lib-or-usr-lib-directories-in-.patch \
26 file://0006-fix-build-path-issue.patch \
27 file://0001-use-closefrom-on-linux-and-glibc-2.34.patch \ 22 file://0001-use-closefrom-on-linux-and-glibc-2.34.patch \
28 file://0001-posix-io.c-Use-off_t-instead-of-off64_t.patch \ 23 file://0001-posix-io.c-Use-off_t-instead-of-off64_t.patch \
29 file://0001-autogen.sh-remove-unknown-in-version.patch \ 24 file://0001-autogen.sh-remove-unknown-in-version.patch \
30 " 25 "
31 26
32SRC_URI[sha256sum] = "bfc17f5bd1b178c8649fdd918956d277080f33df006a2dc40acdecdce68c50dd" 27SRC_URI[sha256sum] = "ddf161d3c41ff6a3fcbaf4be6c6e305ca4ef1cc3f1ecdfce0c8c2a167c0cc36d"
33 28
34PYTHON_DEPS = "${@bb.utils.contains('LANGUAGES', 'python', 'swig-native', '', d)}" 29DEPENDS = "libgpg-error libassuan"
35
36DEPENDS = "libgpg-error libassuan ${PYTHON_DEPS}"
37RDEPENDS:${PN}-cpp += "libstdc++"
38
39RDEPENDS:python3-gpg += "python3-unixadmin"
40 30
41RRECOMMENDS:${PN} += "${PN}-tool" 31RRECOMMENDS:${PN} += "${PN}-tool"
42 32
43BINCONFIG = "${bindir}/gpgme-config" 33BINCONFIG = "${bindir}/gpgme-config"
44 34
45# Default in configure.ac: "cl cpp python qt" 35# Default in configure.ac: "cl"
46# Supported: "cl cpp python python2 python3 qt" 36# Supported: "cl"
47# python says 'search and find python2 or python3'
48
49# Building the C++ bindings for native requires a C++ compiler with C++11
50# support. Since these bindings are currently not needed, we can disable them.
51DEFAULT_LANGUAGES = "" 37DEFAULT_LANGUAGES = ""
52DEFAULT_LANGUAGES:class-target = "cpp"
53LANGUAGES ?= "${DEFAULT_LANGUAGES}" 38LANGUAGES ?= "${DEFAULT_LANGUAGES}"
54 39
55PYTHON_INHERIT = "${@bb.utils.contains('LANGUAGES', 'python', 'setuptools3-base', '', d)}"
56
57EXTRA_OECONF += '--enable-languages="${LANGUAGES}" \ 40EXTRA_OECONF += '--enable-languages="${LANGUAGES}" \
58 --disable-gpgconf-test \ 41 --disable-gpgconf-test \
59 --disable-gpg-test \ 42 --disable-gpg-test \
@@ -62,17 +45,14 @@ EXTRA_OECONF += '--enable-languages="${LANGUAGES}" \
62' 45'
63 46
64inherit autotools texinfo binconfig-disabled pkgconfig multilib_header 47inherit autotools texinfo binconfig-disabled pkgconfig multilib_header
65inherit_defer ${PYTHON_INHERIT} python3native
66 48
67export PKG_CONFIG = 'pkg-config' 49export PKG_CONFIG = 'pkg-config'
68 50
69BBCLASSEXTEND = "native nativesdk" 51BBCLASSEXTEND = "native nativesdk"
70 52
71PACKAGES =+ "${PN}-cpp ${PN}-tool python3-gpg" 53PACKAGES =+ "${PN}-tool"
72 54
73FILES:${PN}-cpp = "${libdir}/libgpgmepp.so.*"
74FILES:${PN}-tool = "${bindir}/gpgme-tool" 55FILES:${PN}-tool = "${bindir}/gpgme-tool"
75FILES:python3-gpg = "${PYTHON_SITEPACKAGES_DIR}/*"
76FILES:${PN}-dev += "${datadir}/common-lisp/source/gpgme/*" 56FILES:${PN}-dev += "${datadir}/common-lisp/source/gpgme/*"
77 57
78CFLAGS:append:libc-musl = " -D__error_t_defined " 58CFLAGS:append:libc-musl = " -D__error_t_defined "
@@ -82,7 +62,6 @@ do_configure:prepend () {
82 # Else these could be used in preference to those in aclocal-copy 62 # Else these could be used in preference to those in aclocal-copy
83 rm -f ${S}/m4/gpg-error.m4 63 rm -f ${S}/m4/gpg-error.m4
84 rm -f ${S}/m4/libassuan.m4 64 rm -f ${S}/m4/libassuan.m4
85 rm -f ${S}/m4/python.m4
86} 65}
87 66
88do_install:append() { 67do_install:append() {