summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/ostree/ostree/0001-Remove-unused-linux-fs.h-includes.patch42
-rw-r--r--meta-oe/recipes-extended/ostree/ostree/0001-deploy-Don-t-rebuild-selinux-policy-on-first-deploym.patch44
-rw-r--r--meta-oe/recipes-extended/ostree/ostree/0001-lib-repo-checkout-Add-ALLPERMS-for-musl.patch32
-rw-r--r--meta-oe/recipes-extended/ostree/ostree/0001-libostree-Remove-including-sys-mount.h.patch29
-rw-r--r--meta-oe/recipes-extended/ostree/ostree/0001-s390x-se-luks-gencpio-There-is-no-bashism.patch25
-rw-r--r--meta-oe/recipes-extended/ostree/ostree_2022.7.bb (renamed from meta-oe/recipes-extended/ostree/ostree_2022.5.bb)11
6 files changed, 36 insertions, 147 deletions
diff --git a/meta-oe/recipes-extended/ostree/ostree/0001-Remove-unused-linux-fs.h-includes.patch b/meta-oe/recipes-extended/ostree/ostree/0001-Remove-unused-linux-fs.h-includes.patch
deleted file mode 100644
index 2659e4696d..0000000000
--- a/meta-oe/recipes-extended/ostree/ostree/0001-Remove-unused-linux-fs.h-includes.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From 7d32c352f628747cfadabf9fe7fcc13608e5dfe6 Mon Sep 17 00:00:00 2001
2From: Colin Walters <walters@verbum.org>
3Date: Wed, 3 Aug 2022 10:37:40 -0400
4Subject: [PATCH] Remove unused `linux/fs.h` includes
5
6Prep for fixing conflicts introduced by newer glibc.
7cc https://github.com/ostreedev/ostree/issues/2685
8
9Upstream-Status: Backport [https://github.com/ostreedev/ostree/commit/edba4b33be10c05253bfa94895dfbc8477e44d76]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 src/libostree/ostree-repo-commit.c | 1 -
13 src/ostree/ot-main.c | 1 -
14 2 files changed, 2 deletions(-)
15
16diff --git a/src/libostree/ostree-repo-commit.c b/src/libostree/ostree-repo-commit.c
17index afab3fdf..35b16c71 100644
18--- a/src/libostree/ostree-repo-commit.c
19+++ b/src/libostree/ostree-repo-commit.c
20@@ -30,7 +30,6 @@
21 #include <sys/xattr.h>
22 #include <glib/gprintf.h>
23 #include <sys/ioctl.h>
24-#include <linux/fs.h>
25 #include <ext2fs/ext2_fs.h>
26
27 #include "otutil.h"
28diff --git a/src/ostree/ot-main.c b/src/ostree/ot-main.c
29index b7b50d67..7a4405a5 100644
30--- a/src/ostree/ot-main.c
31+++ b/src/ostree/ot-main.c
32@@ -28,7 +28,6 @@
33 #include <string.h>
34 #include <sys/statvfs.h>
35 #include <sys/mount.h>
36-#include <linux/fs.h>
37
38 #include "ot-main.h"
39 #include "ostree.h"
40--
412.37.1
42
diff --git a/meta-oe/recipes-extended/ostree/ostree/0001-deploy-Don-t-rebuild-selinux-policy-on-first-deploym.patch b/meta-oe/recipes-extended/ostree/ostree/0001-deploy-Don-t-rebuild-selinux-policy-on-first-deploym.patch
deleted file mode 100644
index 248dcf49b8..0000000000
--- a/meta-oe/recipes-extended/ostree/ostree/0001-deploy-Don-t-rebuild-selinux-policy-on-first-deploym.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1From bd325061dc9585886f7e60e58d9fc0c8b37e71db Mon Sep 17 00:00:00 2001
2From: Colin Walters <walters@verbum.org>
3Date: Wed, 9 Nov 2022 11:18:36 -0500
4Subject: [PATCH] deploy: Don't rebuild selinux policy on first deployment
5
6Basically, it should not be necessary - the policy should be
7up-to-date. We don't want to force on continual policy rebuilds.
8
9Even trying to run bwrap when we're *not* in a booted
10root can cause failures in nested containerization scenarios.
11
12Closes: https://github.com/ostreedev/ostree/issues/2758
13
14Upstream-Status: Backport
15[https://github.com/ostreedev/ostree/commit/bd325061dc9585886f7e60e58d9fc0c8b37e71db]
16
17Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
18---
19 src/libostree/ostree-sysroot-deploy.c | 6 +++---
20 1 file changed, 3 insertions(+), 3 deletions(-)
21
22diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c
23index f27ae0e1..26b07080 100644
24--- a/src/libostree/ostree-sysroot-deploy.c
25+++ b/src/libostree/ostree-sysroot-deploy.c
26@@ -2987,12 +2987,12 @@ sysroot_finalize_deployment (OstreeSysroot *self,
27 if (!merge_configuration_from (self, merge_deployment, deployment, deployment_dfd,
28 cancellable, error))
29 return FALSE;
30- }
31
32 #ifdef HAVE_SELINUX
33- if (!sysroot_finalize_selinux_policy(deployment_dfd, error))
34- return FALSE;
35+ if (!sysroot_finalize_selinux_policy (deployment_dfd, error))
36+ return FALSE;
37 #endif /* HAVE_SELINUX */
38+ }
39
40 const char *osdeploypath = glnx_strjoina ("ostree/deploy/", ostree_deployment_get_osname (deployment));
41 glnx_autofd int os_deploy_dfd = -1;
42--
432.25.1
44
diff --git a/meta-oe/recipes-extended/ostree/ostree/0001-lib-repo-checkout-Add-ALLPERMS-for-musl.patch b/meta-oe/recipes-extended/ostree/ostree/0001-lib-repo-checkout-Add-ALLPERMS-for-musl.patch
new file mode 100644
index 0000000000..1502f1d4fd
--- /dev/null
+++ b/meta-oe/recipes-extended/ostree/ostree/0001-lib-repo-checkout-Add-ALLPERMS-for-musl.patch
@@ -0,0 +1,32 @@
1From 6aef666a2911c15b31efeed08d89fe9997d89e04 Mon Sep 17 00:00:00 2001
2From: Alex Kiernan <alex.kiernan@gmail.com>
3Date: Sat, 31 Dec 2022 11:11:14 +0000
4Subject: [PATCH] lib/repo-checkout: Add ALLPERMS for musl
5
6ALLPERMS is glibc specific, add a definition for musl.
7
8Upstream-Status: Submitted [https://github.com/ostreedev/ostree/pull/2797]
9Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
10---
11 src/libostree/ostree-core-private.h | 5 +++++
12 1 file changed, 5 insertions(+)
13
14diff --git a/src/libostree/ostree-core-private.h b/src/libostree/ostree-core-private.h
15index 2bd2f9848718..48b2b8ab307f 100644
16--- a/src/libostree/ostree-core-private.h
17+++ b/src/libostree/ostree-core-private.h
18@@ -34,6 +34,11 @@ G_BEGIN_DECLS
19 #define DEFAULT_DIRECTORY_MODE 0775
20 #define DEFAULT_REGFILE_MODE 0660
21
22+/* This exists in glibc's sys/stat.h, but not on musl */
23+#ifndef ALLPERMS
24+#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)
25+#endif
26+
27 /* This file contains private implementation data format definitions
28 * read by multiple implementation .c files.
29 */
30--
312.39.0
32
diff --git a/meta-oe/recipes-extended/ostree/ostree/0001-libostree-Remove-including-sys-mount.h.patch b/meta-oe/recipes-extended/ostree/ostree/0001-libostree-Remove-including-sys-mount.h.patch
deleted file mode 100644
index 5c2792cf89..0000000000
--- a/meta-oe/recipes-extended/ostree/ostree/0001-libostree-Remove-including-sys-mount.h.patch
+++ /dev/null
@@ -1,29 +0,0 @@
1From 7ff956e4088e0bdc6bfd429f99124a8a9256c181 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 6 Aug 2022 21:44:11 -0700
4Subject: [PATCH] libostree: Remove including sys/mount.h
5
6This conflicts with linux/mount.h which is included by linux/fs.h
7with glibc 2.36+
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 src/libostree/ostree-sysroot-deploy.c | 1 -
13 1 file changed, 1 deletion(-)
14
15diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c
16index 2dc9f58b..61b19e42 100644
17--- a/src/libostree/ostree-sysroot-deploy.c
18+++ b/src/libostree/ostree-sysroot-deploy.c
19@@ -23,7 +23,6 @@
20 #include <gio/gunixoutputstream.h>
21 #include <glib-unix.h>
22 #include <stdint.h>
23-#include <sys/mount.h>
24 #include <sys/statvfs.h>
25 #include <sys/socket.h>
26 #include <sys/ioctl.h>
27--
282.37.1
29
diff --git a/meta-oe/recipes-extended/ostree/ostree/0001-s390x-se-luks-gencpio-There-is-no-bashism.patch b/meta-oe/recipes-extended/ostree/ostree/0001-s390x-se-luks-gencpio-There-is-no-bashism.patch
deleted file mode 100644
index 5cf5784f14..0000000000
--- a/meta-oe/recipes-extended/ostree/ostree/0001-s390x-se-luks-gencpio-There-is-no-bashism.patch
+++ /dev/null
@@ -1,25 +0,0 @@
1From dd55633e49aa43dede3c8e1770ae8761487f050e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 6 Aug 2022 21:52:31 -0700
4Subject: [PATCH] s390x-se-luks-gencpio: There is no bashism
5
6Upstream-Status: Pending
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 src/libostree/s390x-se-luks-gencpio | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/src/libostree/s390x-se-luks-gencpio b/src/libostree/s390x-se-luks-gencpio
14index e821e2fe..96c1d123 100755
15--- a/src/libostree/s390x-se-luks-gencpio
16+++ b/src/libostree/s390x-se-luks-gencpio
17@@ -1,4 +1,4 @@
18-#!/bin/bash
19+#!/bin/sh
20 # This script creates new initramdisk with LUKS config within
21 set -euo pipefail
22
23--
242.37.1
25
diff --git a/meta-oe/recipes-extended/ostree/ostree_2022.5.bb b/meta-oe/recipes-extended/ostree/ostree_2022.7.bb
index c6ac7cbea4..771b17b34b 100644
--- a/meta-oe/recipes-extended/ostree/ostree_2022.5.bb
+++ b/meta-oe/recipes-extended/ostree/ostree_2022.7.bb
@@ -18,18 +18,15 @@ DEPENDS = " \
18" 18"
19 19
20SRC_URI = " \ 20SRC_URI = " \
21 gitsm://github.com/ostreedev/ostree;branch=main;protocol=https \ 21 https://github.com/ostreedev/ostree/releases/download/v${PV}/libostree-${PV}.tar.xz \
22 file://0001-Remove-unused-linux-fs.h-includes.patch \ 22 file://0001-lib-repo-checkout-Add-ALLPERMS-for-musl.patch \
23 file://0001-libostree-Remove-including-sys-mount.h.patch \
24 file://0001-s390x-se-luks-gencpio-There-is-no-bashism.patch \
25 file://0001-deploy-Don-t-rebuild-selinux-policy-on-first-deploym.patch \
26 file://run-ptest \ 23 file://run-ptest \
27" 24"
28SRCREV = "15740d042c9c5258a1c082b5e228cf6f115edbb0" 25SRC_URI[sha256sum] = "8be2a9261c94e8b9ec4113380ffc480f8598245fb321a009bad4fae4b822411f"
29 26
30UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+\.\d+)" 27UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+\.\d+)"
31 28
32S = "${WORKDIR}/git" 29S = "${WORKDIR}/libostree-${PV}"
33 30
34inherit autotools bash-completion gobject-introspection gtk-doc manpages pkgconfig ptest-gnome systemd 31inherit autotools bash-completion gobject-introspection gtk-doc manpages pkgconfig ptest-gnome systemd
35 32