core/glibc/Pkgfile

54 lines
1.6 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: The C library used in the GNU system
# URL: http://www.gnu.org/software/libc/
# Maintainer: CRUX System Team, core-ports at crux dot nu
2006-02-23 16:26:10 +01:00
name=glibc
2016-08-04 22:22:47 +02:00
version=2.24
release=9
source=(http://ftpmirror.gnu.org/gnu/glibc/glibc-2.24.tar.xz \
2017-01-20 18:36:50 +01:00
http://crux.nu/files/distfiles/kernel-headers-4.9.5.tar.xz \
2015-06-20 22:42:25 +02:00
$name-2.20-multilib-dirs.patch \
hosts resolv.conf nsswitch.conf host.conf ld.so.conf \
glibc-2.24.8.patch 0001-CVE-2017-15670-glob-Fix-one-byte-overflow-BZ-22320.patch)
2006-02-23 16:26:10 +01:00
build() {
2012-08-08 10:08:54 +02:00
# install kernel headers
install -d $PKG/usr/
2017-01-20 18:36:50 +01:00
cp -r $SRC/kernel-headers-4.9.5/include $PKG/usr
2012-08-08 10:08:54 +02:00
chown root:root $PKG/usr
patch -p1 -d $SRC/$name-${version:0:4} -i $SRC/glibc-2.24.8.patch
2016-11-12 12:12:59 +01:00
patch -p1 -d $SRC/$name-${version:0:4} -i $SRC/$name-2.20-multilib-dirs.patch
patch -p1 -d $SRC/$name-${version:0:4} -i $SRC/0001-CVE-2017-15670-glob-Fix-one-byte-overflow-BZ-22320.patch
mkdir $SRC/build
2014-02-15 18:02:52 +01:00
cd $SRC/build
2016-07-05 20:34:12 +02:00
../$name-${version:0:4}/configure --prefix=/usr \
2012-08-08 10:08:54 +02:00
--libexecdir=/usr/lib \
--with-headers=$PKG/usr/include \
2015-06-20 22:42:25 +02:00
--enable-kernel=3.12 \
2012-08-08 10:08:54 +02:00
--enable-add-ons \
--enable-static-nss \
2012-08-08 10:08:54 +02:00
--disable-profile \
--disable-werror \
2012-08-08 10:08:54 +02:00
--without-gd \
--enable-obsolete-rpc \
--enable-multi-arch
2012-08-08 10:08:54 +02:00
make
#make check
make install_root=$PKG install
2016-07-05 20:34:12 +02:00
install -m 0644 $SRC/$name-${version:0:4}/nscd/nscd.conf $PKG/etc
install -d $PKG/var/{db,run}/nscd
install -m 0644 $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
2012-08-08 10:08:54 +02:00
ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
install -d $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
2012-08-08 10:08:54 +02:00
touch $PKG/etc/ld.so.cache
2015-06-20 22:42:25 +02:00
rm -rf $PKG/usr/share/{info,locale} \
$PKG/usr/bin/tzselect \
$PKG/usr/sbin/z{dump,ic}
2006-02-23 16:26:10 +01:00
}