summaryrefslogtreecommitdiffstats
path: root/glibc/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'glibc/Pkgfile')
-rwxr-xr-xglibc/Pkgfile39
1 files changed, 23 insertions, 16 deletions
diff --git a/glibc/Pkgfile b/glibc/Pkgfile
index 3d318afd6..f09db7201 100755
--- a/glibc/Pkgfile
+++ b/glibc/Pkgfile
@@ -6,31 +6,38 @@
name=glibc
version=2.14.1
release=1
-kernelversion=3.2.7
+kernelversion=3.2.9
source=(http://ftp.gnu.org/gnu/glibc/$name-$version.tar.xz
- http://www.kernel.org/pub/linux/kernel/v3.x/linux-${kernelversion}.tar.xz
- http://nutyx.meticul.eu/files/patchs/$name/{nsswitch.conf,ld.so.conf,SUPPORTED} \
- http://www.linuxfromscratch.org/patches/lfs/development/glibc-$version-{gcc_fix,fixes,cpuid}-1.patch \
- http://nutyx.meticul.eu/files/patchs/$name/glibc-2.12.1-static-shared-getpagesize.patch)
+ http://nutyx.meticul.eu/files/patchs/$name/{nsswitch.conf,ld.so.conf,SUPPORTED}
+ http://www.linuxfromscratch.org/patches/lfs/development/glibc-$version-gcc_fix-1.patch
+ http://www.linuxfromscratch.org/patches/lfs/development/glibc-$version-fixes-1.patch
+ http://www.linuxfromscratch.org/patches/lfs/development/glibc-$version-sort-1.patch
+ http://www.linuxfromscratch.org/patches/lfs/development/glibc-$version-cpuid-1.patch
+ http://nutyx.meticul.eu/files/patchs/$name/glibc-2.12.1-static-shared-getpagesize.patch
+ http://www.kernel.org/pub/linux/kernel/v3.0/linux-${kernelversion%.*}.tar.bz2
+ http://www.kernel.org/pub/linux/kernel/v3.0/patch-$kernelversion.bz2)
build() {
# install build kernel headers
- mkdir $PKG/usr/
- cd linux-$kernelversion
- sed -i '/scsi/d' include/Kbuild
- make mrproper
- make headers_check
- make INSTALL_HDR_PATH=$PKG/usr headers_install
- cd ..
-
- # install glibc
- cd $name-$version
+ mkdir $PKG/usr/
+ cd linux-${kernelversion%.*}
+ bzip2 -d -c $SRC/patch-$kernelversion.bz2 | patch -Np1
+ sed -i '/scsi/d' include/Kbuild
+ make mrproper
+ make headers_check
+ make INSTALL_HDR_PATH=$PKG/usr headers_install
+ cd ..
+ # install glibc
+ cd $name-$version
patch -Np1 -i ../glibc-$version-gcc_fix-1.patch
patch -Np1 -i ../glibc-$version-fixes-1.patch
+ patch -Np1 -i ../glibc-$version-sort-1.patch
patch -Np1 -i ../glibc-$version-cpuid-1.patch
- patch -Np1 -i $SRC/glibc-2.12.1-static-shared-getpagesize.patch
+ patch -Np1 -i $SRC/glibc-2.12.1-static-shared-getpagesize.patch
+ sed -i '195,213 s/PRIVATE_FUTEX/FUTEX_CLOCK_REALTIME/' \
+ nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timed{rd,wr}lock.S
sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in
mv ../SUPPORTED localedata/