-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
glibc: added locale.gen and locale-gen (as well as fixed build issues)
- Loading branch information
1 parent
43c43d9
commit 8720d01
Showing
8 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
#!/bin/sh -e | ||
|
||
# glibc wont build without optimization for some reason | ||
CFLAGS="${CFLAGS:--Os}" | ||
# glibc fails becuase of handling warnings as errors, to prevent this some warnings are disabled. | ||
export CFLAGS="$CFLAGS -Wno-zero-length-bounds -Wno-array-bounds" | ||
|
||
# locale script for generating locales as well as default en_US.UTF8 locale | ||
install -Dm755 ./locale-gen "$1/usr/bin/locale-gen" | ||
install -Dm644 ./locale.gen "$1/etc/locale.gen" | ||
|
||
# glibc wont build in main directory | ||
mkdir build | ||
cd build | ||
|
||
../configure \ | ||
--prefix=/usr \ | ||
--with-pthread | ||
--prefix=/usr | ||
|
||
make | ||
make DESTDIR="$1" install | ||
|
||
rm "$1/var/db/Makefile" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
e2c4114e569afbe7edbc29131a43be833850ab9a459d81beb2588016d2bbb8af glibc-2.30.tar.xz | ||
845e725da4121f838481669fe0590e59367076a25b234d239ec66e67aa89b1ea locale-gen | ||
2db453cc421b0753f4939c26765717cba6e5df1712b1c6b97b92bee6565ad7a1 locale.gen |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
|
||
[ "$(whoami)" = root ] || { | ||
echo "Please run as root" | ||
exit 1 | ||
} | ||
|
||
[ -r /etc/locale.gen ] || { | ||
echo "Cannot open /etc/locale.gen for reading" | ||
exit 1 | ||
} | ||
|
||
while read -r line; do | ||
INPUTFILE="${line%% *}" | ||
INPUTFILE="${INPUTFILE%%.*}" | ||
CHARMAPFILE="${line##* }" | ||
echo "Generating locale $INPUTFILE.$CHARMAPFILE" | ||
localedef -i "$INPUTFILE" -f "$CHARMAPFILE" "$INPUTFILE.$CHARMAPFILE" || { | ||
echo "Generating locale $INPUTFILE.$CHARMAPFILE failed" | ||
exit 1 | ||
} | ||
done < /etc/locale.gen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
en_US.UTF8 UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
/usr/bin/locale-gen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
https://ftp.gnu.org/gnu/libc/glibc-2.30.tar.xz | ||
files/locale-gen | ||
files/locale.gen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.31 1 | ||
2.31 2 |