Skip to content

Commit 3818b2b

Browse files
authored
Merge pull request managarm#624 from no92/locale
2 parents f2b5958 + cb7675d commit 3818b2b

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

bootstrap.d/managarm-libc.y4.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
sources:
2+
- name: glibc
3+
subdir: ports
4+
git: 'https://sourceware.org/git/glibc.git'
5+
tag: 'glibc-2.42'
6+
version: '2.42'
7+
tools_required:
8+
- host-automake-v1.15
9+
regenerate:
10+
- args: ['cp',
11+
'@BUILD_ROOT@/tools/host-automake-v1.15/share/automake-1.15/config.sub',
12+
'@THIS_SOURCE_DIR@/scripts/']
13+
214
- name: mlibc
315
git: 'https://github.com/managarm/mlibc.git'
416
branch: 'master'
@@ -168,6 +180,27 @@ tools:
168180
- args: ['ninja', 'install']
169181

170182
packages:
183+
- name: locale-data
184+
labels: [aarch64, riscv64]
185+
architecture: noarch
186+
metadata:
187+
summary: localization data
188+
description: This package provides locale definitions as generated by glibc's localedef.
189+
spdx: 'LGPL-2.1-or-later'
190+
website: 'https://www.gnu.org/software/libc/'
191+
maintainer: "no92 <leo@managarm.org>"
192+
categories: ['managarm-libc']
193+
from_source: 'glibc'
194+
revision: 1
195+
build:
196+
- args: ['mkdir', '-p', '@THIS_COLLECT_DIR@/usr/lib/locale/']
197+
- args: |
198+
for lang in C en_US; do
199+
localedef -fUTF-8 -i $lang --prefix=@THIS_COLLECT_DIR@ --no-archive $lang.utf8;
200+
done
201+
environ:
202+
I18NPATH: '@THIS_SOURCE_DIR@/localedata/'
203+
171204
- name: libdrm-headers
172205
labels: [aarch64, riscv64]
173206
architecture: '@OPTION:arch@'

bootstrap.d/meta-pkgs.y4.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ packages:
6060
- usbutils
6161
- libgcc
6262
- libstdc++
63-
revision: 11
63+
- locale-data
64+
revision: 12
6465
configure: []
6566
build: []
6667

0 commit comments

Comments
 (0)