diff options
| -rw-r--r-- | meta-oe/recipes-extended/ostree/ostree/0001-libostree-Link-with-libgpg-error-for-gpg_strerror_r-.patch | 31 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/ostree/ostree_2023.3.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/ostree/ostree/0001-libostree-Link-with-libgpg-error-for-gpg_strerror_r-.patch b/meta-oe/recipes-extended/ostree/ostree/0001-libostree-Link-with-libgpg-error-for-gpg_strerror_r-.patch new file mode 100644 index 0000000000..b87a41bfbb --- /dev/null +++ b/meta-oe/recipes-extended/ostree/ostree/0001-libostree-Link-with-libgpg-error-for-gpg_strerror_r-.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From 597120777ff9410b715c19298df824ce3170d6d7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 12 Jun 2023 14:04:44 -0700 | ||
| 4 | Subject: [PATCH] libostree: Link with libgpg-error for gpg_strerror_r API | ||
| 5 | |||
| 6 | With f461c02bb55bf2853a3b81ed5c8618040ab54e98 use of gpg_strerror_r | ||
| 7 | was added this symbol comes from libgpg-error however, therefore its | ||
| 8 | needed to add -lgpg-error to cmdline to resolve this symbol especially | ||
| 9 | with gold and lld linker. Fixes | ||
| 10 | |||
| 11 | aarch64-yoe-linux-ld.lld: error: undefined reference due to --no-allow-shlib-undefined: gpg_strerror_r | ||
| 12 | >>> referenced by ./.libs/libostree-1.so | ||
| 13 | |||
| 14 | Upstream-Status: Submitted [https://github.com/ostreedev/ostree/pull/2880] | ||
| 15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 16 | --- | ||
| 17 | Makefile-libostree.am | 2 +- | ||
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 19 | |||
| 20 | --- a/configure.ac | ||
| 21 | +++ b/configure.ac | ||
| 22 | @@ -243,8 +243,7 @@ AC_ARG_WITH(gpgme, | ||
| 23 | [], [with_gpgme=yes]) | ||
| 24 | AS_IF([test x$with_gpgme != xno], [ | ||
| 25 | have_gpgme=yes | ||
| 26 | - PKG_CHECK_MODULES([OT_DEP_GPGME], gpgme >= $LIBGPGME_DEPENDENCY, [], have_gpgme=no) | ||
| 27 | - PKG_CHECK_MODULES([OT_DEP_GPG_ERROR], [gpg-error], [], have_gpgme=no) | ||
| 28 | + PKG_CHECK_MODULES([OT_DEP_GPGME], [gpgme >= $LIBGPGME_DEPENDENCY gpg-error], [have_gpgme=yes], [have_gpgme=no]) | ||
| 29 | ] | ||
| 30 | ) | ||
| 31 | AS_IF([test x$with_gpgme != xno && test x$have_gpgme != xyes], [ | ||
diff --git a/meta-oe/recipes-extended/ostree/ostree_2023.3.bb b/meta-oe/recipes-extended/ostree/ostree_2023.3.bb index dc771ce28a..f5cd7d6ac6 100644 --- a/meta-oe/recipes-extended/ostree/ostree_2023.3.bb +++ b/meta-oe/recipes-extended/ostree/ostree_2023.3.bb | |||
| @@ -21,6 +21,7 @@ DEPENDS = " \ | |||
| 21 | GITHUB_BASE_URI = "https://github.com/ostreedev/ostree/releases" | 21 | GITHUB_BASE_URI = "https://github.com/ostreedev/ostree/releases" |
| 22 | SRC_URI = " \ | 22 | SRC_URI = " \ |
| 23 | ${GITHUB_BASE_URI}/download/v${PV}/libostree-${PV}.tar.xz \ | 23 | ${GITHUB_BASE_URI}/download/v${PV}/libostree-${PV}.tar.xz \ |
| 24 | file://0001-libostree-Link-with-libgpg-error-for-gpg_strerror_r-.patch \ | ||
| 24 | file://run-ptest \ | 25 | file://run-ptest \ |
| 25 | " | 26 | " |
| 26 | SRC_URI[sha256sum] = "9c575a094da2c307769f0aee15de95470c3b5550cbff211fbbc4f6fc75f333b1" | 27 | SRC_URI[sha256sum] = "9c575a094da2c307769f0aee15de95470c3b5550cbff211fbbc4f6fc75f333b1" |
