X-Git-Url: http://gitweb/?a=blobdiff_plain;f=glibc%2FPkgfile;h=49a00bdb1b73f4c4594f517e1fd1e8580d1f3159;hb=6ce95f759b069b270f468663629672ef2b572ac8;hp=4f66c40e45014a6adc1408b0d09a38722d57bd1f;hpb=eb267740891ac8d6ac16ee3551cd3fdd149a0979;p=ports%2Fcore-arm64.git diff --git a/glibc/Pkgfile b/glibc/Pkgfile index 4f66c40..49a00bd 100644 --- a/glibc/Pkgfile +++ b/glibc/Pkgfile @@ -5,47 +5,55 @@ # Depends on: name=glibc -version=2.22 -release=1 +version=2.32 +release=4 source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \ - http://ftp.kernel.org/pub/linux/kernel/v4.x/linux-4.1.13.tar.xz \ + http://www.kernel.org/pub/linux/kernel/v4.x/linux-4.19.24.tar.xz \ + glibc-$version-4.patch \ hosts resolv.conf nsswitch.conf host.conf ld.so.conf) build() { # install kernel headers - cd linux-4.1.13 + cd linux-4.19.24 make mrproper make ARCH=arm64 headers_check make ARCH=arm64 INSTALL_HDR_PATH=$PKG/usr headers_install + chown root:root $PKG/usr + + patch -p1 -d $SRC/$name-${version:0:4} -i $SRC/$name-$version-4.patch mkdir $SRC/build cd $SRC/build - ../$name-$version/configure --prefix=/usr \ - --build=aarch64-unknown-linux-gnueabi \ + ../$name-${version:0:4}/configure --prefix=/usr \ --libexecdir=/usr/lib \ --with-headers=$PKG/usr/include \ --enable-kernel=2.6.25 \ --enable-add-ons \ --enable-static-nss \ + --enable-stack-protector=strong \ --disable-profile \ --disable-werror \ --without-gd \ - --enable-obsolete-rpc + --enable-obsolete-rpc \ + --enable-obsolete-nsl make + #make check make install_root=$PKG install - install -m 0644 $SRC/$name-$version/nscd/nscd.conf $PKG/etc + install -m 0644 $SRC/$name-${version:0:4}/nscd/nscd.conf $PKG/etc install -d $PKG/var/{db,run}/nscd install -m 0644 $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime - ln -s stubs-hard.h $PKG/usr/include/gnu/stubs-soft.h + ln -s stubs-hard.h $PKG/usr/include/gnu/stubs-soft.h install -d $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale touch $PKG/etc/ld.so.cache rm -rf $PKG/usr/share/{info,locale} \ - $PKG/usr/bin/tzselect \ - $PKG/usr/sbin/z{dump,ic} + $PKG/usr/bin/tzselect \ + $PKG/usr/sbin/z{dump,ic} + find $PKG -name "*install.cmd" -delete + find $PKG -name ".\install" -delete }