# Depends on:
name=glibc
-version=2.27
+version=2.32
release=2
source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \
- http://www.kernel.org/pub/linux/kernel/v4.x/linux-4.14.14.tar.xz \
- $name-$version-$release.patch \
+ http://www.kernel.org/pub/linux/kernel/v4.x/linux-4.19.24.tar.xz \
+ $name-$version-2.patch \
hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
build() {
# install kernel headers
- cd linux-4.14.14
+ cd linux-4.19.24
make mrproper
make ARCH=arm headers_check
make ARCH=arm INSTALL_HDR_PATH=$PKG/usr headers_install
chown root:root $PKG/usr
- patch -p1 -d $SRC/$name-${version:0:4} -i $SRC/$name-$version-$release.patch
+ patch -p1 -d $SRC/$name-${version:0:4} -i $SRC/$name-$version-2.patch
mkdir $SRC/build
cd $SRC/build
--build=arm-unknown-linux-gnueabihf \
--libexecdir=/usr/lib \
--with-headers=$PKG/usr/include \
- --enable-kernel=3.12 \
+ --enable-kernel=3.2 \
--enable-add-ons \
--enable-static-nss \
--enable-stack-protector=strong \
- --enable-obsolete-rpc \
- --enable-obsolete-nsl \
--disable-profile \
--disable-werror \
- --without-gd
+ --without-gd \
+ --disable-multi-arch
make
#make check
install -m 0644 $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
- # install needed headers
- install -d $PKG/usr/include/rpcsvc
- install -m 0644 $SRC/$name-${version:0:4}/nis/rpcsvc/yp* $PKG/usr/include/rpcsvc
-
ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
ln -s stubs-hard.h $PKG/usr/include/gnu/stubs-soft.h
install -d $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale