CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
glibc: updated to 2.16.0-5 and aligned with upstream
[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
736f12d7 8version=2.16.0
65a1c84a 9release=5
34fed911 10source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \
736f12d7
VM
11 ftp://ftp.kernel.org/pub/linux/kernel/v3.x/linux-3.4.11.tar.bz2 \
12 http://ftp.gnu.org/gnu/$name/$name-ports-$version.tar.bz2 \
13 hosts resolv.conf nsswitch.conf host.conf ld.so.conf \
14 $name-resolv_assert.patch \
65a1c84a
VM
15 $name-strtod_integer_overflow.patch \
16 $name-regexp_buffer_overrun.patch \
17 $name-CVE-2013-4332.patch)
34fed911
VM
18
19build() {
736f12d7
VM
20 # install kernel headers
21 cd linux-3.4.11
34fed911
VM
22 make mrproper
23 make ARCH=arm headers_check
24 make ARCH=arm INSTALL_HDR_PATH=$PKG/usr headers_install
25
26 cd $SRC
27 mv $name-ports-$version $name-$version/ports
28
65a1c84a
VM
29 patch -p1 -d $name-$version -i $SRC/$name-resolv_assert.patch
30 patch -p1 -d $name-$version -i $SRC/$name-strtod_integer_overflow.patch
31 patch -p1 -d $name-$version -i $SRC/$name-regexp_buffer_overrun.patch
32 patch -p1 -d $name-$version -i $SRC/$name-CVE-2013-4332.patch
34fed911 33
736f12d7
VM
34 mkdir $SRC/build
35 cd $SRC/build
34fed911
VM
36
37 ../$name-$version/configure --prefix=/usr \
68160bd8 38 --build=arm-unknown-linux-gnueabihf \
34fed911
VM
39 --libexecdir=/usr/lib \
40 --with-headers=$PKG/usr/include \
41 --with-tls \
736f12d7 42 --enable-kernel=2.6.25 \
34fed911
VM
43 --enable-add-ons \
44 --disable-profile \
45 --without-gd \
736f12d7 46 --enable-obsolete-rpc
34fed911 47
736f12d7 48 make
34fed911
VM
49 make install_root=$PKG install
50
51 cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
52 ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
53 mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
736f12d7 54 touch $PKG/etc/ld.so.cache
34fed911 55
736f12d7
VM
56 rm -rf $PKG/usr/share/{info,locale} \
57 $PKG/usr/bin/tzselect \
58 $PKG/usr/sbin/z{dump,ic}
34fed911 59}