Skip to content

Commit

Permalink
glibc: removed bash dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelambda committed Aug 3, 2020
1 parent b9b1c79 commit c29a2ae
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 32 deletions.
22 changes: 14 additions & 8 deletions core/glibc/build
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,28 @@

# 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
--prefix=/usr \
--disable-werror

make
make DESTDIR="$1" install

rm "$1/var/db/Makefile"
rm "$1/var/db/Makefile" \
"$1/usr/bin/ldd" \
"$1/usr/bin/sotruss" \
"$1/usr/bin/xtrace"

# locale script for generating locales as well as default en_US.UTF8 locale
install -Dm755 ../sh-alternatives/locale-gen "$1/usr/bin/locale-gen"
install -Dm644 ../locale.gen "$1/etc/locale.gen"

# replace bash scripts with posix sh ports
install -Dm755 ../sh-alternatives/ldd "$1/usr/bin/ldd"
install -Dm755 ../sh-alternatives/sotruss "$1/usr/bin/sotruss"
install -Dm755 ../sh-alternatives/xtrace "$1/usr/bin/xtrace"
2 changes: 1 addition & 1 deletion core/glibc/checksums
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
e2c4114e569afbe7edbc29131a43be833850ab9a459d81beb2588016d2bbb8af glibc-2.30.tar.xz
845e725da4121f838481669fe0590e59367076a25b234d239ec66e67aa89b1ea locale-gen
d660ee1eeb2b8c69c1f7c731b7b5e482b2fb7450c1a2d9b003e9da60cdd9dc6c glibc.tar.xz
2db453cc421b0753f4939c26765717cba6e5df1712b1c6b97b92bee6565ad7a1 locale.gen
22 changes: 0 additions & 22 deletions core/glibc/files/locale-gen

This file was deleted.

1 change: 1 addition & 0 deletions core/glibc/sources
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
https://ftp.gnu.org/gnu/libc/glibc-2.30.tar.xz
https://github.com/gkiss-linux/sh-alternatives/releases/download/1.0/glibc.tar.xz sh-alternatives/
files/locale-gen
files/locale.gen
2 changes: 1 addition & 1 deletion core/glibc/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.31 2
2.31 3

0 comments on commit c29a2ae

Please # to comment.