diff options
| author | hongxu <hongxu.jia@eng.windriver.com> | 2025-07-21 16:21:00 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-28 14:51:50 +0100 |
| commit | 04e9297cc537d5d571b9c390887c3251465af2b1 (patch) | |
| tree | 84174ac7af492f7e4f7ca2ca79924b6e5965eab6 | |
| parent | c0d815823f6921ac8a4d9019a1b56c7a10abba4a (diff) | |
| download | poky-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.patch | 23 | ||||
| -rw-r--r-- | meta/recipes-support/gpgme/gpgme/0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch | 35 | ||||
| -rw-r--r-- | meta/recipes-support/gpgme/gpgme/0003-Correctly-install-python-modules.patch | 30 | ||||
| -rw-r--r-- | meta/recipes-support/gpgme/gpgme/0006-fix-build-path-issue.patch | 34 | ||||
| -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 @@ | |||
| 1 | From 447fd26a43f40ccb071cd19198ee43fdfce87e3a Mon Sep 17 00:00:00 2001 | 1 | From 4b4e6fc898dd249387bbed4924fa22c1c494327a 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: Tue, 26 Nov 2024 23:04:52 -0800 | 3 | Date: Mon, 21 Jul 2025 12:43:29 +0800 |
| 4 | Subject: [PATCH] pkgconfig | 4 | Subject: [PATCH] pkgconfig |
| 5 | 5 | ||
| 6 | Update gpgme to use pkgconfig instead of -config files since its | 6 | Update gpgme to use pkgconfig instead of -config files since its |
| @@ -17,6 +17,8 @@ Rebase to 1.17.0 | |||
| 17 | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> | 17 | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> |
| 18 | Rebase to 1.24.0 | 18 | Rebase to 1.24.0 |
| 19 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 19 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 20 | Rebase to 2.0.0 | ||
| 21 | Signed-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 | ||
| 29 | diff --git a/configure.ac b/configure.ac | 31 | diff --git a/configure.ac b/configure.ac |
| 30 | index c34f700..4eddc3d 100644 | 32 | index 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 |
| 41 | diff --git a/src/Makefile.am b/src/Makefile.am | 43 | diff --git a/src/Makefile.am b/src/Makefile.am |
| 42 | index 0370862..e716ce4 100644 | 44 | index 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 | -- | ||
| 299 | 2.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 @@ | |||
| 1 | From 145adf290571b7dd47b7fca57b11349af0b94e74 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 3 | Date: Fri, 10 May 2019 14:30:36 +0800 | ||
| 4 | Subject: [PATCH] gpgme/lang/python: gpg-error-config should not be used | ||
| 5 | |||
| 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 | ||
| 8 | is we need. | ||
| 9 | |||
| 10 | Upstream-Status: Inappropriate [changes are specific to OE] | ||
| 11 | |||
| 12 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
| 13 | |||
| 14 | Rebase to 1.13.0 | ||
| 15 | |||
| 16 | Signed-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 | |||
| 21 | diff --git a/lang/python/setup.py.in b/lang/python/setup.py.in | ||
| 22 | index 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 @@ | |||
| 1 | From d8e884d1fa8c35ce68e94a0668548580cf5ba2d3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 3 | Date: Tue, 30 Jan 2018 15:28:49 +0800 | ||
| 4 | Subject: [PATCH] Correctly install python modules | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate [oe-core specific] | ||
| 7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 8 | |||
| 9 | Rebase to 1.9.0 | ||
| 10 | |||
| 11 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 12 | |||
| 13 | Rebase to 1.10.0 | ||
| 14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 15 | --- | ||
| 16 | lang/python/Makefile.am | 1 + | ||
| 17 | 1 file changed, 1 insertion(+) | ||
| 18 | |||
| 19 | diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am | ||
| 20 | index 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 @@ | |||
| 1 | From f9f82874048c5eec08e815ff871462184b6d7d6a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 3 | Date: Wed, 31 Jan 2018 11:01:09 +0800 | ||
| 4 | Subject: [PATCH] fix build path issue | ||
| 5 | |||
| 6 | Get the "--root" directory supplied to the "install" command, | ||
| 7 | and use it as a prefix to strip off the purported filename | ||
| 8 | encoded in bytecode files. | ||
| 9 | |||
| 10 | Since --root added, we need to tweak --prefix and --install-lib | ||
| 11 | to use relative path. | ||
| 12 | |||
| 13 | Upstream-Status: Submitted [gnupg-devel@gnupg.org] | ||
| 14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 15 | --- | ||
| 16 | lang/python/Makefile.am | 5 +++-- | ||
| 17 | 1 file changed, 3 insertions(+), 2 deletions(-) | ||
| 18 | |||
| 19 | diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am | ||
| 20 | index 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 | ||
| 6 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & GPL-3.0-or-later" | 6 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & GPL-3.0-or-later" |
| 7 | LICENSE:${PN} = "GPL-2.0-or-later & LGPL-2.1-or-later" | 7 | LICENSE:${PN} = "GPL-2.0-or-later & LGPL-2.1-or-later" |
| 8 | LICENSE:${PN}-cpp = "GPL-2.0-or-later & LGPL-2.1-or-later" | ||
| 9 | LICENSE:${PN}-tool = "GPL-3.0-or-later" | 8 | LICENSE:${PN}-tool = "GPL-3.0-or-later" |
| 10 | LICENSE:python3-gpg = "GPL-2.0-or-later & LGPL-2.1-or-later" | ||
| 11 | 9 | ||
| 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | 10 | LIC_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" | |||
| 20 | SRC_URI = "${GNUPG_MIRROR}/gpgme/${BP}.tar.bz2 \ | 18 | SRC_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 | ||
| 32 | SRC_URI[sha256sum] = "bfc17f5bd1b178c8649fdd918956d277080f33df006a2dc40acdecdce68c50dd" | 27 | SRC_URI[sha256sum] = "ddf161d3c41ff6a3fcbaf4be6c6e305ca4ef1cc3f1ecdfce0c8c2a167c0cc36d" |
| 33 | 28 | ||
| 34 | PYTHON_DEPS = "${@bb.utils.contains('LANGUAGES', 'python', 'swig-native', '', d)}" | 29 | DEPENDS = "libgpg-error libassuan" |
| 35 | |||
| 36 | DEPENDS = "libgpg-error libassuan ${PYTHON_DEPS}" | ||
| 37 | RDEPENDS:${PN}-cpp += "libstdc++" | ||
| 38 | |||
| 39 | RDEPENDS:python3-gpg += "python3-unixadmin" | ||
| 40 | 30 | ||
| 41 | RRECOMMENDS:${PN} += "${PN}-tool" | 31 | RRECOMMENDS:${PN} += "${PN}-tool" |
| 42 | 32 | ||
| 43 | BINCONFIG = "${bindir}/gpgme-config" | 33 | BINCONFIG = "${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. | ||
| 51 | DEFAULT_LANGUAGES = "" | 37 | DEFAULT_LANGUAGES = "" |
| 52 | DEFAULT_LANGUAGES:class-target = "cpp" | ||
| 53 | LANGUAGES ?= "${DEFAULT_LANGUAGES}" | 38 | LANGUAGES ?= "${DEFAULT_LANGUAGES}" |
| 54 | 39 | ||
| 55 | PYTHON_INHERIT = "${@bb.utils.contains('LANGUAGES', 'python', 'setuptools3-base', '', d)}" | ||
| 56 | |||
| 57 | EXTRA_OECONF += '--enable-languages="${LANGUAGES}" \ | 40 | EXTRA_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 | ||
| 64 | inherit autotools texinfo binconfig-disabled pkgconfig multilib_header | 47 | inherit autotools texinfo binconfig-disabled pkgconfig multilib_header |
| 65 | inherit_defer ${PYTHON_INHERIT} python3native | ||
| 66 | 48 | ||
| 67 | export PKG_CONFIG = 'pkg-config' | 49 | export PKG_CONFIG = 'pkg-config' |
| 68 | 50 | ||
| 69 | BBCLASSEXTEND = "native nativesdk" | 51 | BBCLASSEXTEND = "native nativesdk" |
| 70 | 52 | ||
| 71 | PACKAGES =+ "${PN}-cpp ${PN}-tool python3-gpg" | 53 | PACKAGES =+ "${PN}-tool" |
| 72 | 54 | ||
| 73 | FILES:${PN}-cpp = "${libdir}/libgpgmepp.so.*" | ||
| 74 | FILES:${PN}-tool = "${bindir}/gpgme-tool" | 55 | FILES:${PN}-tool = "${bindir}/gpgme-tool" |
| 75 | FILES:python3-gpg = "${PYTHON_SITEPACKAGES_DIR}/*" | ||
| 76 | FILES:${PN}-dev += "${datadir}/common-lisp/source/gpgme/*" | 56 | FILES:${PN}-dev += "${datadir}/common-lisp/source/gpgme/*" |
| 77 | 57 | ||
| 78 | CFLAGS:append:libc-musl = " -D__error_t_defined " | 58 | CFLAGS: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 | ||
| 88 | do_install:append() { | 67 | do_install:append() { |
