diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-12-11 00:52:08 -0600 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-12-11 00:52:08 -0600 |
commit | 2c8204d6325a1a6607392d5905227b9043da17cc (patch) | |
tree | 5a2d9047d0a3fb5664c17284b92c6e572507d062 /chapter8/glibc.sh | |
parent | f699702e72de8200632cfb95350ad51bb68c4b6f (diff) |
Major updates.
Diffstat (limited to 'chapter8/glibc.sh')
-rw-r--r-- | chapter8/glibc.sh | 158 |
1 files changed, 79 insertions, 79 deletions
diff --git a/chapter8/glibc.sh b/chapter8/glibc.sh index e4facd0..b22ea08 100644 --- a/chapter8/glibc.sh +++ b/chapter8/glibc.sh @@ -1,79 +1,79 @@ -#!/bin/bash -# shellcheck disable=SC2016 - -patch -Np1 -i ../glibc-"${VERSION}"-fhs-1.patch && - -sed -e '402a\ *result = local->data.services[database_index];' \ - -i nss/nss_database.c && - -mkdir -v build -cd build || exit 1 - -../configure --prefix=/usr \ - --disable-werror \ - --enable-kernel=5.10.0 \ - --enable-stack-protector=strong \ - --with-headers=/usr/include \ - libc_cv_slibdir=/lib && - -make PARALLELMFLAGS="${MAKEFLAGS}" && - -touch /etc/ld.so.conf && - -sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile && - -make -j1 install && - -cp -v ../nscd/nscd.conf /etc/nscd.conf && -mkdir -pv /var/cache/nscd && - -make localedata/install-locales && - -cat > /etc/nsswitch.conf << "EOF" -# Begin /etc/nsswitch.conf - -passwd: files -group: files -shadow: files - -hosts: files dns -networks: files - -protocols: files -services: files -ethers: files -rpc: files - -# End /etc/nsswitch.conf -EOF - -tar -xf ../../tzdata2021a.tar.gz && - -ZONEINFO=/usr/share/zoneinfo -mkdir -pv "${ZONEINFO}"/{posix,right} && - -for tz in etcetera southamerica northamerica europe africa antarctica \ - asia australasia backward; do - zic -L /dev/null -d "${ZONEINFO}" "${tz}" && - zic -L /dev/null -d "${ZONEINFO}"/posix "${tz}" && - zic -L leapseconds -d "${ZONEINFO}"/right "${tz}" -done - -cp -v zone.tab zone1970.tab iso3166.tab "${ZONEINFO}" && -zic -d "${ZONEINFO}" -p America/New_York && - -ln -sfv /usr/share/zoneinfo/America/Chicago /etc/localtime && - -cat > /etc/ld.so.conf << "EOF" -# Begin /etc/ld.so.conf -/usr/local/lib -/opt/lib - -EOF - -cat >> /etc/ld.so.conf << "EOF" -# Add an include directory -include /etc/ld.so.conf.d/*.conf - -EOF -mkdir -pv /etc/ld.so.conf.d +#!/bin/bash
+# shellcheck disable=SC2016
+
+patch -Np1 -i ../glibc-"${VERSION}"-fhs-1.patch &&
+
+sed -e '402a\ *result = local->data.services[database_index];' \
+ -i nss/nss_database.c &&
+
+mkdir -v build
+cd build || exit 1
+
+../configure --prefix=/usr \
+ --disable-werror \
+ --enable-kernel=5.10.0 \
+ --enable-stack-protector=strong \
+ --with-headers=/usr/include \
+ libc_cv_slibdir=/lib &&
+
+make PARALLELMFLAGS="${MAKEFLAGS}" &&
+
+touch /etc/ld.so.conf &&
+
+sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile &&
+
+make -j1 install &&
+
+cp -v ../nscd/nscd.conf /etc/nscd.conf &&
+mkdir -pv /var/cache/nscd &&
+
+make localedata/install-locales &&
+
+cat > /etc/nsswitch.conf << "EOF"
+# Begin /etc/nsswitch.conf
+
+passwd: files
+group: files
+shadow: files
+
+hosts: files dns
+networks: files
+
+protocols: files
+services: files
+ethers: files
+rpc: files
+
+# End /etc/nsswitch.conf
+EOF
+
+tar -xf ../../tzdata2021a.tar.gz &&
+
+ZONEINFO=/usr/share/zoneinfo
+mkdir -pv "${ZONEINFO}"/{posix,right} &&
+
+for tz in etcetera southamerica northamerica europe africa antarctica \
+ asia australasia backward; do
+ zic -L /dev/null -d "${ZONEINFO}" "${tz}" &&
+ zic -L /dev/null -d "${ZONEINFO}"/posix "${tz}" &&
+ zic -L leapseconds -d "${ZONEINFO}"/right "${tz}"
+done
+
+cp -v zone.tab zone1970.tab iso3166.tab "${ZONEINFO}" &&
+zic -d "${ZONEINFO}" -p America/New_York &&
+
+ln -sfv /usr/share/zoneinfo/America/Chicago /etc/localtime &&
+
+cat > /etc/ld.so.conf << "EOF"
+# Begin /etc/ld.so.conf
+/usr/local/lib
+/opt/lib
+
+EOF
+
+cat >> /etc/ld.so.conf << "EOF"
+# Add an include directory
+include /etc/ld.so.conf.d/*.conf
+
+EOF
+mkdir -pv /etc/ld.so.conf.d
|