CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
binutils: updated to 2.27
[ports/core-arm.git] / glibc / Pkgfile
CommitLineData
34fed911
VM
1# Description: The C library used in the GNU system
2# URL: http://www.gnu.org/software/libc/
3# Maintainer: CRUX System Team, core-ports at crux dot nu
4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5# Depends on:
6
7name=glibc
9ab3f81a 8version=2.22
51db6920 9release=3
34fed911 10source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \
9ab3f81a 11 http://ftp.kernel.org/pub/linux/kernel/v4.x/linux-4.1.13.tar.xz \
51db6920
VM
12 CVE-2015-8779.patch CVE-2015-8778.patch CVE-2015-8777.patch \
13 CVE-2015-8776.patch CVE-2015-7547.patch glibc-rh1252570.patch
d6e43ba0 14 hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
34fed911
VM
15
16build() {
736f12d7 17 # install kernel headers
9ab3f81a 18 cd linux-4.1.13
34fed911
VM
19 make mrproper
20 make ARCH=arm headers_check
21 make ARCH=arm INSTALL_HDR_PATH=$PKG/usr headers_install
22
0d473095
VM
23 patch -p1 -d $SRC/$name-$version -i $SRC/CVE-2015-8778.patch
24 patch -p1 -d $SRC/$name-$version -i $SRC/CVE-2015-8777.patch
25 patch -p1 -d $SRC/$name-$version -i $SRC/CVE-2015-8776.patch
51db6920
VM
26 patch -p1 -d $SRC/$name-$version -i $SRC/glibc-rh1252570.patch
27 patch -p1 -d $SRC/$name-$version -i $SRC/CVE-2015-7547.patch
0d473095 28
736f12d7
VM
29 mkdir $SRC/build
30 cd $SRC/build
34fed911 31 ../$name-$version/configure --prefix=/usr \
68160bd8 32 --build=arm-unknown-linux-gnueabihf \
34fed911
VM
33 --libexecdir=/usr/lib \
34 --with-headers=$PKG/usr/include \
736f12d7 35 --enable-kernel=2.6.25 \
34fed911 36 --enable-add-ons \
9ab3f81a 37 --enable-static-nss \
34fed911 38 --disable-profile \
9ab3f81a 39 --disable-werror \
34fed911 40 --without-gd \
736f12d7 41 --enable-obsolete-rpc
34fed911 42
736f12d7 43 make
34fed911
VM
44 make install_root=$PKG install
45
9ab3f81a
VM
46 install -m 0644 $SRC/$name-$version/nscd/nscd.conf $PKG/etc
47 install -d $PKG/var/{db,run}/nscd
48
49 install -m 0644 $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
50
34fed911 51 ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
9ab3f81a
VM
52 ln -s stubs-hard.h $PKG/usr/include/gnu/stubs-soft.h
53 install -d $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
736f12d7 54 touch $PKG/etc/ld.so.cache
34fed911 55
736f12d7 56 rm -rf $PKG/usr/share/{info,locale} \
9ab3f81a
VM
57 $PKG/usr/bin/tzselect \
58 $PKG/usr/sbin/z{dump,ic}
34fed911 59}