Skip to content

Commit 4cf8546

Browse files
committed
overlay coreos/user-patches: Add a patch for crossdev
Signed-off-by: Krzesimir Nowak <[email protected]>
1 parent d749bd4 commit 4cf8546

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
From dbd686eb40a1d7e8ac1daeb46d1deab32214fcac Mon Sep 17 00:00:00 2001
2+
From: Krzesimir Nowak <[email protected]>
3+
Date: Mon, 8 Sep 2025 14:02:29 +0200
4+
Subject: [PATCH] Mask selinux when building glibc
5+
6+
Disabling selinux via USE=-selinux may not work, if the profile forces
7+
it.
8+
---
9+
crossdev | 8 ++++++++
10+
1 file changed, 8 insertions(+)
11+
12+
diff --git a/crossdev b/crossdev
13+
index 1e5c4ac..e150d30 100755
14+
--- a/crossdev
15+
+++ b/crossdev
16+
@@ -1585,6 +1585,14 @@ for f in package.{accept_keywords,env,mask,use} env/${CROSSDEV_OVERLAY_CATEGORY}
17+
rm -f "${f}/${CROSSDEV_OVERLAY_CATEGORY}"
18+
done
19+
20+
+# selinux won't work in bootstrap environment - libselinux may not be
21+
+# available, need to mask selinux since it could be forced by the
22+
+# profile
23+
+if [[ ${LPKG} = 'glibc' ]]; then
24+
+ LMASK+=" selinux"
25+
+ LFORCE+=" -selinux"
26+
+fi
27+
+
28+
pkglist=( K L )
29+
if [[ ${LLVM} == "yes" ]] ; then
30+
pkglist+=( R C )
31+
--
32+
2.49.1
33+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This patch should be upstreamed when we can confirm that it works with
2+
our modification to the glibc ebuild.

0 commit comments

Comments
 (0)