Skip to content

Commit 2016d8b

Browse files
committed
overlay coreos/user-patches: Add patches for dev-util/catalyst
1 parent 3bf6f2f commit 2016d8b

File tree

3 files changed

+91
-0
lines changed

3 files changed

+91
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
From 2478055bf48a54c0fcb518bbd48a30b307db0009 Mon Sep 17 00:00:00 2001
2+
From: Kerin Millar <[email protected]>
3+
Date: Mon, 18 Aug 2025 14:25:20 +0200
4+
Subject: [PATCH 1/2] Support locale-gen-3 (the perl version)
5+
MIME-Version: 1.0
6+
Content-Type: text/plain; charset=UTF-8
7+
Content-Transfer-Encoding: 8bit
8+
9+
Signed-off-by: Andreas K. Hüttel <[email protected]>
10+
---
11+
targets/stage1/chroot.sh | 6 +++++-
12+
targets/support/chroot-functions.sh | 2 +-
13+
2 files changed, 6 insertions(+), 2 deletions(-)
14+
15+
diff --git a/targets/stage1/chroot.sh b/targets/stage1/chroot.sh
16+
index e0587b59..541c060f 100755
17+
--- a/targets/stage1/chroot.sh
18+
+++ b/targets/stage1/chroot.sh
19+
@@ -91,7 +91,11 @@ run_merge --implicit-system-deps=n --oneshot "${buildpkgs[@]}"
20+
# not run locale-gen when ROOT is set. Since we've set LANG, we need to run
21+
# locale-gen explicitly.
22+
if [ -x "$(command -v locale-gen)" ]; then
23+
- locale-gen --destdir "$ROOT"/ || die "locale-gen failed"
24+
+ if ! locale-gen -V | grep -q '^locale-gen-2\.'; then
25+
+ locale-gen --config /etc/locale.gen --prefix "$ROOT"/
26+
+ else
27+
+ locale-gen --destdir "$ROOT"/
28+
+ fi || die "locale-gen failed"
29+
fi
30+
31+
# Why are we removing these? Don't we need them for final make.conf?
32+
diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh
33+
index d8472d46..08738d0a 100755
34+
--- a/targets/support/chroot-functions.sh
35+
+++ b/targets/support/chroot-functions.sh
36+
@@ -284,7 +284,7 @@ show_debug() {
37+
}
38+
39+
readonly locales="
40+
-C.UTF8 UTF-8
41+
+C.UTF-8 UTF-8
42+
"
43+
44+
if [[ ${RUN_DEFAULT_FUNCS} != no ]]
45+
--
46+
2.51.0
47+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
From 8f3dad52ef6b7360f69f93554172d76aa5d59d8a Mon Sep 17 00:00:00 2001
2+
From: Sam James <[email protected]>
3+
Date: Mon, 15 Sep 2025 12:35:43 +0100
4+
Subject: [PATCH 2/2] Fix UTF-8 spelling
5+
6+
Bug: https://bugs.gentoo.org/962878
7+
Signed-off-by: Sam James <[email protected]>
8+
---
9+
catalyst/base/stagebase.py | 2 +-
10+
targets/stage1/chroot.sh | 2 +-
11+
2 files changed, 2 insertions(+), 2 deletions(-)
12+
13+
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
14+
index 8a3d2af6..d09b3aad 100644
15+
--- a/catalyst/base/stagebase.py
16+
+++ b/catalyst/base/stagebase.py
17+
@@ -1252,7 +1252,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
18+
'\n'
19+
'# This sets the language of build output to English.\n'
20+
'# Please keep this setting intact when reporting bugs.\n'
21+
- 'LC_MESSAGES=C.utf8\n')
22+
+ 'LC_MESSAGES=C.UTF-8\n')
23+
24+
def write_binrepos_conf(self):
25+
# only if catalyst.conf defines the host and the spec defines the path...
26+
diff --git a/targets/stage1/chroot.sh b/targets/stage1/chroot.sh
27+
index 541c060f..dc8571bd 100755
28+
--- a/targets/stage1/chroot.sh
29+
+++ b/targets/stage1/chroot.sh
30+
@@ -67,7 +67,7 @@ sed -i "/USE=\"${USE} build\"/d" ${clst_make_conf}
31+
32+
echo "$locales" > /etc/locale.gen
33+
for etc in /etc "$ROOT"/etc; do
34+
- echo "LANG=C.UTF8" > ${etc}/env.d/02locale
35+
+ echo "LANG=C.UTF-8" > ${etc}/env.d/02locale
36+
done
37+
update_env_settings
38+
39+
--
40+
2.51.0
41+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The patches fix some locale generation issues in catalyst - they are
2+
currently a part of the master branch, so there is no release that
3+
contain those fixes yet.

0 commit comments

Comments
 (0)