summaryrefslogtreecommitdiff
path: root/xibuilds/glibc.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-10-06 17:18:43 +0100
committerdavidovski <david@davidovski.xyz>2021-10-06 17:18:43 +0100
commitc25b6890891c7ef34e129c8c54efdf2993234aa0 (patch)
treeefce372f0cfbcdb2e4285ef65191cbbf1e3146e1 /xibuilds/glibc.xibuild
parentd4cb1386d79c95e7586e7bccad5b0f6c7861cfe8 (diff)
moved xibuilds to another repo
Diffstat (limited to 'xibuilds/glibc.xibuild')
-rw-r--r--xibuilds/glibc.xibuild79
1 files changed, 0 insertions, 79 deletions
diff --git a/xibuilds/glibc.xibuild b/xibuilds/glibc.xibuild
deleted file mode 100644
index cc943de..0000000
--- a/xibuilds/glibc.xibuild
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/bin/bash
-
-DEPS=(glibc)
-
-SOURCE=https://ftp.gnu.org/gnu/glibc/glibc-2.34.tar.xz
-DESC="The main gnu C library providing basic routines and procedures"
-
-build () {
- # patches as recommended by lfs
- sed -e '/NOTIFY_REMOVED)/s/)/ \&\& data.attr != NULL)/' -i sysdeps/unix/sysv/linux/mq_notify.c
-
- mkdir -v build
- cd build
-
- # ensure that the ldconfig and sln utilities are installed into /usr/sbin
- echo "rootsbindir=/usr/sbin" > configparms
-
- ../configure --prefix=/usr \
- --disable-werror \
- --enable-kernel=3.2 \
- --enable-stack-protector=strong \
- --with-headers=/usr/include \
- libc_cv_slibdir=/usr/lib
-
- make
- make check
-
- sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile
- make DESTDIR=$PKG_DEST install
-
-
- # fix hardcoded path to the excutable in ldd script
- sed '/RTLDLIST=/s@/usr@@g' -i $PKG_DEST/usr/bin/ldd
-
- cp -v ../nscd/nscd.conf $PKG_DEST/etc/nscd.conf
- mkdir -pv $PKG_DEST/var/cache/nscd
-}
-
-package () {
- cat > $PKG_DEST/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
-
- wget https://mirrors.slackware.com/slackware/slackware64-current/source/a/glibc-zoneinfo/tzdata2021a.tar.gz
-
- tar -xf tzdata2021a.tar.gz
-
- ZONEINFO=$PKG_DEST/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
- unset ZONEINFO
-
-
- # configure the dynamic loader
-
- cat > $PKG_DEST/etc/ld.so.conf << "EOF"
-# Begin /etc/ld.so.conf
-/usr/local/lib
-/opt/lib
-EOF
-}
-