glibc: fix generation of C.UTF-8

This commit is contained in:
Tim Biermann 2022-02-14 15:32:46 +01:00
parent 999ea36d59
commit 4d3b105ee2
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/core.pub
RWRJc1FUaeVeqmNr+q4edjlASjzn77bAGynex2pdWLDzrghEQu/e4h+RxvyRDx4bizz0cd6+hP3ScpoQKUsBJCoocRa+X+KtZAM=
SHA256 (Pkgfile) = 64f6796c8468cd5cadbccd231d5eee13ca9080b9cd9d7d6f41c26c7ba116dee6
RWRJc1FUaeVeqo/w69YhoGHQ49LeTbxiBb+qTSk5Utycnk6T5DUF013/aXwDDu34kPeVAB6yiKj+pgvyEi00hcpnbZFZNe9wcwc=
SHA256 (Pkgfile) = 5aa5ce5aafe89f530f8c2205e18d0476c4cdb031c0f7a603299e24b0d7b701f3
SHA256 (.footprint) = 18acf8b44f896a471a6aa3dbae84067f21e7cd650f5489ca26fa6026441d9aa2
SHA256 (glibc-2.35.tar.xz) = 5123732f6b67ccd319305efd399971d58592122bcc2a6518a1bd2510dd0cf52e
SHA256 (linux-5.15.21.tar.xz) = 294eeb6cd7dc9b144c3c3c8b8c7b3fca9c6b072b6ed9bf9d6c922f9deb70fbd1

View File

@ -53,10 +53,12 @@ build() {
install -Dm755 $SRC/locale-gen $PKG/usr/sbin/locale-gen
install -Dm644 $SRC/locale.gen.in $PKG/etc/locale.gen
$PKG/usr/bin/localedef \
cp $PKG/usr/share/i18n/charmaps/UTF-8.gz .
gzip -d UTF-8.gz
LC_ALL=C ./elf/ld.so --library-path . $PKG/usr/bin/localedef \
--force --quiet \
--inputfile POSIX \
--charmap UTF-8 \
--inputfile=$PKG/usr/share/i18n/locales/C \
--charmap=./UTF-8 \
$PKG/usr/lib/locale/C.UTF-8 || true
rm -r $PKG/usr/share/locale \