summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-21 05:19:58 +0100
committerLukc <lukc@upyum.com>2010-12-21 05:19:58 +0100
commit7917beef5e75d2962645c2a28da49aa32184a715 (patch)
tree4bc44ed467f5ecf75f0761bbe4af2e3ba3bea20e
parenta8b3ee054deb8c845360da329076ccf94f36b123 (diff)
downloadbase-7917beef5e75d2962645c2a28da49aa32184a715.tar.gz
base-7917beef5e75d2962645c2a28da49aa32184a715.tar.bz2
base-7917beef5e75d2962645c2a28da49aa32184a715.tar.xz
base-7917beef5e75d2962645c2a28da49aa32184a715.zip
Recette de la glibc mise à jour…
-rw-r--r--glibc/Pkgfile59
1 files changed, 40 insertions, 19 deletions
diff --git a/glibc/Pkgfile b/glibc/Pkgfile
index 35fe190..d981fd7 100644
--- a/glibc/Pkgfile
+++ b/glibc/Pkgfile
@@ -8,25 +8,46 @@ depends=()
name=glibc
version=2.12.1
release=2
-source=(http://ftp.gnu.org/gnu/glibc/glibc-2.12.1.tar.xz http://crux.nu/files/distfiles/kernel-headers-2.6.35.tar.xz glibc-fedora_i686.patch Optimize-__getpagesize-a-bit.patch CVE-2010-3847.patch CVE-2010-3856.patch hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
+source=(
+ http://ftp.gnu.org/gnu/glibc/glibc-2.12.1.tar.xz
+ http://crux.nu/files/distfiles/kernel-headers-2.6.35.tar.xz
+ glibc-fedora_i686.patch Optimize-__getpagesize-a-bit.patch
+ CVE-2010-3847.patch
+ CVE-2010-3856.patch
+ hosts
+ resolv.conf
+ nsswitch.conf
+ host.conf
+ ld.so.conf
+)
build ()
{
- mkdir $PKG/usr/;
- cp -r kernel-headers-2.6.35/include $PKG/usr;
- chown root:root $PKG/usr;
- patch -p1 -d $name-$version -i $SRC/$name-fedora_i686.patch;
- patch -R -p1 -d $name-$version -i $SRC/Optimize-__getpagesize-a-bit.patch;
- patch -p1 -d $name-$version -i $SRC/CVE-2010-3847.patch;
- patch -p1 -d $name-$version -i $SRC/CVE-2010-3856.patch;
- sed -i '/^all-subdirs/,+6s/manual//' $name-$version/Makeconfig;
- 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 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;
- touch $PKG/etc/ld.so.cache;
- rm -rf $PKG/usr/share/{info,locale}
+ mkdir $PKG/usr/;
+ cp -r kernel-headers-2.6.35/include $PKG/usr;
+ chown root:root $PKG/usr;
+ patch -p1 -d $name-$version -i $SRC/$name-fedora_i686.patch;
+ patch -R -p1 -d $name-$version -i $SRC/Optimize-__getpagesize-a-bit.patch;
+ patch -p1 -d $name-$version -i $SRC/CVE-2010-3847.patch;
+ patch -p1 -d $name-$version -i $SRC/CVE-2010-3856.patch;
+ sed -i '/^all-subdirs/,+6s/manual//' $name-$version/Makeconfig;
+ mkdir build;
+ cd build;
+ ../$name-$version/configure \
+ ${CHOST:+--build=${CHOST}} \
+ ${CTARGET:+--host=${CTARGET}} \
+ --prefix=$prefix \
+ --libexecdir=$libdir \
+ --with-headers=$PKG$prefix/include \
+ --with-tls \
+ --enable-kernel=2.6.27 \
+ --enable-add-ons \
+ --disable-profile \
+ --without-gd;
+ make;
+ 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;
+ touch $PKG/etc/ld.so.cache;
+ rm -rf $PKG/usr/share/{info,locale}
}