2006-02-23 16:26:10 +01:00
|
|
|
# Description: The C library used in the GNU system
|
|
|
|
# URL: http://www.gnu.org/software/libc/
|
2007-01-23 18:35:30 +01:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=glibc
|
2010-12-23 20:08:57 +01:00
|
|
|
version=2.12.2
|
2010-10-26 13:24:47 +02:00
|
|
|
release=2
|
2010-06-03 12:10:31 +02:00
|
|
|
source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz
|
2010-08-09 22:56:41 +02:00
|
|
|
http://crux.nu/files/distfiles/kernel-headers-2.6.35.tar.xz
|
2010-06-03 12:10:31 +02:00
|
|
|
glibc-fedora_i686.patch
|
2010-12-23 20:08:57 +01:00
|
|
|
glibc-ignore_origin.patch
|
2010-08-09 22:56:41 +02:00
|
|
|
Optimize-__getpagesize-a-bit.patch
|
2008-09-16 20:45:20 +02:00
|
|
|
hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build() {
|
2009-05-19 08:38:09 +02:00
|
|
|
# install kernel headers
|
2006-11-20 13:05:48 +01:00
|
|
|
mkdir $PKG/usr/
|
2010-08-09 22:56:41 +02:00
|
|
|
cp -r kernel-headers-2.6.35/include $PKG/usr
|
2006-11-20 13:05:48 +01:00
|
|
|
chown root:root $PKG/usr
|
2006-03-16 18:56:22 +01:00
|
|
|
|
2010-06-03 12:10:31 +02:00
|
|
|
patch -p1 -d $name-$version -i $SRC/$name-fedora_i686.patch
|
2010-08-09 22:56:41 +02:00
|
|
|
patch -R -p1 -d $name-$version -i $SRC/Optimize-__getpagesize-a-bit.patch
|
2010-12-23 20:08:57 +01:00
|
|
|
patch -p1 -d $name-$version -i $SRC/$name-ignore_origin.patch
|
2009-05-19 08:38:09 +02:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
../$name-$version/configure --prefix=/usr \
|
2008-09-16 20:45:20 +02:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--with-headers=$PKG/usr/include \
|
|
|
|
--with-tls \
|
2009-05-19 08:38:09 +02:00
|
|
|
--enable-kernel=2.6.27 \
|
2008-09-16 20:45:20 +02:00
|
|
|
--enable-add-ons \
|
|
|
|
--disable-profile \
|
|
|
|
--without-gd
|
2010-06-03 12:10:31 +02:00
|
|
|
make
|
2006-02-23 18:31:48 +01:00
|
|
|
#make check
|
2006-02-23 16:26:10 +01:00
|
|
|
make install_root=$PKG install
|
2009-05-19 08:38:09 +02:00
|
|
|
|
2008-09-16 20:45:20 +02:00
|
|
|
cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
|
2006-02-23 16:26:10 +01:00
|
|
|
ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
|
2008-09-16 20:45:20 +02:00
|
|
|
mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
|
2010-08-09 22:56:41 +02:00
|
|
|
touch $PKG/etc/ld.so.cache
|
2007-10-09 21:41:32 +02:00
|
|
|
|
2008-09-16 20:45:20 +02:00
|
|
|
rm -rf $PKG/usr/share/{info,locale}
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|