2006-02-23 15:26:10 +00:00
|
|
|
# Description: The C library used in the GNU system
|
|
|
|
# URL: http://www.gnu.org/software/libc/
|
2007-01-23 17:35:30 +00:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=glibc
|
2012-08-08 10:08:54 +02:00
|
|
|
version=2.16.0
|
2013-09-21 13:49:12 +02:00
|
|
|
release=5
|
2012-08-08 10:08:54 +02:00
|
|
|
source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \
|
2012-09-17 13:10:27 +02:00
|
|
|
http://crux.nu/files/distfiles/kernel-headers-3.4.11.tar.xz \
|
2012-11-22 12:38:39 -06:00
|
|
|
$name-$version-multilib-dirs.patch \
|
2012-08-08 10:08:54 +02:00
|
|
|
hosts resolv.conf nsswitch.conf host.conf ld.so.conf \
|
2012-09-17 13:10:27 +02:00
|
|
|
$name-resolv_assert.patch \
|
|
|
|
$name-segfault_in_strncasecmp.patch \
|
2013-02-12 23:33:02 +01:00
|
|
|
$name-strtod_integer_overflow.patch \
|
2013-09-21 13:49:12 +02:00
|
|
|
$name-regexp_buffer_overrun.patch \
|
|
|
|
$name-CVE-2013-4332.patch)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2012-08-08 10:08:54 +02:00
|
|
|
# install kernel headers
|
|
|
|
mkdir $PKG/usr/
|
2012-09-17 13:10:27 +02:00
|
|
|
cp -r kernel-headers-3.4.11/include $PKG/usr
|
2012-08-08 10:08:54 +02:00
|
|
|
chown root:root $PKG/usr
|
2006-03-16 17:56:22 +00:00
|
|
|
|
2012-08-08 10:08:54 +02:00
|
|
|
patch -p1 -d $name-$version -i $SRC/$name-resolv_assert.patch
|
2012-09-17 13:10:27 +02:00
|
|
|
patch -p1 -d $name-$version -i $SRC/$name-segfault_in_strncasecmp.patch
|
|
|
|
patch -p1 -d $name-$version -i $SRC/$name-strtod_integer_overflow.patch
|
2013-02-12 23:33:02 +01:00
|
|
|
patch -p1 -d $name-$version -i $SRC/$name-regexp_buffer_overrun.patch
|
2012-11-22 12:38:39 -06:00
|
|
|
patch -p1 -d $name-$version -i $SRC/$name-$version-multilib-dirs.patch
|
2013-09-21 13:49:12 +02:00
|
|
|
patch -p1 -d $name-$version -i $SRC/$name-CVE-2013-4332.patch
|
2009-05-19 08:38:09 +02:00
|
|
|
|
2012-08-08 10:08:54 +02:00
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
../$name-$version/configure --prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--with-headers=$PKG/usr/include \
|
|
|
|
--enable-kernel=2.6.39 \
|
|
|
|
--enable-add-ons \
|
|
|
|
--disable-profile \
|
|
|
|
--without-gd \
|
2013-08-18 23:56:52 -05:00
|
|
|
--enable-obsolete-rpc \
|
|
|
|
--enable-multi-arch
|
2012-08-08 10:08:54 +02:00
|
|
|
make
|
|
|
|
#make check
|
|
|
|
make install_root=$PKG install
|
2009-05-19 08:38:09 +02:00
|
|
|
|
2012-08-08 10:08:54 +02:00
|
|
|
cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
|
|
|
|
ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
|
|
|
|
mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
|
|
|
|
touch $PKG/etc/ld.so.cache
|
2007-10-09 21:41:32 +02:00
|
|
|
|
2012-08-08 10:08:54 +02:00
|
|
|
rm -rf $PKG/usr/share/{info,locale} \
|
|
|
|
$PKG/usr/bin/tzselect \
|
|
|
|
$PKG/usr/sbin/z{dump,ic}
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|