Juergen Daubert
3a75375296
- sources are available form gnu.org now, but libcidn got removed so we have to fetch it additionaly - we set --enable-kernel to 2.6.27 which is the new kernel version with long time support, see ticket #448 - the drm headers provided by the kernel are incomplete, we switch back to use the headers from libdrm
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
# 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
|
|
|
|
name=glibc
|
|
version=2.10.1
|
|
release=2
|
|
source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.bz2
|
|
http://ftp.gnu.org/gnu/glibc/glibc-libidn-$version.tar.bz2
|
|
http://crux.nu/files/distfiles/kernel-headers-2.6.29-1.tar.bz2
|
|
hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
|
|
|
|
build() {
|
|
# install kernel headers
|
|
mkdir $PKG/usr/
|
|
cp -r kernel-headers-2.6.29/include $PKG/usr
|
|
chown root:root $PKG/usr
|
|
|
|
# libidn files
|
|
mv $name-libidn-$version $name-$version/libidn
|
|
|
|
mkdir build
|
|
cd build
|
|
../$name-$version/configure --prefix=/usr \
|
|
--libexecdir=/usr/lib \
|
|
--with-headers=$PKG/usr/include \
|
|
--with-tls \
|
|
--enable-kernel=2.6.27 \
|
|
--enable-add-ons \
|
|
--disable-profile \
|
|
--without-gd
|
|
make
|
|
#make check
|
|
make install_root=$PKG install
|
|
|
|
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
|
|
|
|
# conflicts with quota
|
|
rm $PKG/usr/include/rpcsvc/{rquota.h,rquota.x}
|
|
|
|
rm -rf $PKG/usr/share/{info,locale}
|
|
}
|