diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2023-06-21 07:39:29 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-06-20 23:45:06 -0700 |
commit | 1aaf1023e0ff49942af0fa7bbbfa90c73310fa51 (patch) | |
tree | f304dae7d2116450a8def92072e7b823fcf060e7 | |
parent | 9cb5f5c6e91612674eb02f79437abbd51ad7b38f (diff) | |
download | meta-openembedded-1aaf1023e0ff49942af0fa7bbbfa90c73310fa51.tar.gz |
ostree: Upgrade 2023.3 -> 2023.4
Drop upstreamed gpg_strerror_r fix.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-extended/ostree/ostree/0001-lib-deploy-Use-off_t-not-__off_t.patch | 27 | ||||
-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.4.bb (renamed from meta-oe/recipes-extended/ostree/ostree_2023.3.bb) | 11 |
3 files changed, 32 insertions, 37 deletions
diff --git a/meta-oe/recipes-extended/ostree/ostree/0001-lib-deploy-Use-off_t-not-__off_t.patch b/meta-oe/recipes-extended/ostree/ostree/0001-lib-deploy-Use-off_t-not-__off_t.patch new file mode 100644 index 0000000000..a64d9de5ef --- /dev/null +++ b/meta-oe/recipes-extended/ostree/ostree/0001-lib-deploy-Use-off_t-not-__off_t.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 6d690ebf64ce640afce3085f01da8694a04853a9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alex Kiernan <alex.kiernan@gmail.com> | ||
3 | Date: Tue, 20 Jun 2023 19:24:04 +0100 | ||
4 | Subject: [PATCH] lib/deploy: Use off_t not __off_t | ||
5 | |||
6 | Not clear why this was __off_t which is the sole appearance in the code | ||
7 | base, but it breaks musl builds. | ||
8 | |||
9 | Upstream-Status: Submitted [https://github.com/ostreedev/ostree/pull/2896] | ||
10 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | ||
11 | --- | ||
12 | src/libostree/ostree-sysroot-deploy.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c | ||
16 | index 8fcd5e802758..2454a5877d94 100644 | ||
17 | --- a/src/libostree/ostree-sysroot-deploy.c | ||
18 | +++ b/src/libostree/ostree-sysroot-deploy.c | ||
19 | @@ -2536,7 +2536,7 @@ get_kernel_layout_size (OstreeSysroot *self, OstreeDeployment *deployment, guint | ||
20 | /* This is a roundabout but more trustworthy way of doing a space check than | ||
21 | * relying on statvfs's f_bfree when you know the size of the objects. */ | ||
22 | static gboolean | ||
23 | -dfd_fallocate_check (int dfd, __off_t len, gboolean *out_passed, GError **error) | ||
24 | +dfd_fallocate_check (int dfd, off_t len, gboolean *out_passed, GError **error) | ||
25 | { | ||
26 | /* If the requested size is 0 then return early. Passing a 0 len to | ||
27 | * fallocate results in EINVAL */ | ||
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 deleted file mode 100644 index b87a41bfbb..0000000000 --- a/meta-oe/recipes-extended/ostree/ostree/0001-libostree-Link-with-libgpg-error-for-gpg_strerror_r-.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
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.4.bb index f5cd7d6ac6..d2a7b04562 100644 --- a/meta-oe/recipes-extended/ostree/ostree_2023.3.bb +++ b/meta-oe/recipes-extended/ostree/ostree_2023.4.bb | |||
@@ -19,12 +19,11 @@ DEPENDS = " \ | |||
19 | " | 19 | " |
20 | 20 | ||
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 = "${GITHUB_BASE_URI}/download/v${PV}/libostree-${PV}.tar.xz \ |
23 | ${GITHUB_BASE_URI}/download/v${PV}/libostree-${PV}.tar.xz \ | 23 | file://run-ptest \ |
24 | file://0001-libostree-Link-with-libgpg-error-for-gpg_strerror_r-.patch \ | 24 | file://0001-lib-deploy-Use-off_t-not-__off_t.patch \ |
25 | file://run-ptest \ | 25 | " |
26 | " | 26 | SRC_URI[sha256sum] = "7cee8ace6aae3c778527927a85abefbfbd491c021f52ae229c51ca3077f9c5d1" |
27 | SRC_URI[sha256sum] = "9c575a094da2c307769f0aee15de95470c3b5550cbff211fbbc4f6fc75f333b1" | ||
28 | 27 | ||
29 | S = "${WORKDIR}/libostree-${PV}" | 28 | S = "${WORKDIR}/libostree-${PV}" |
30 | 29 | ||