CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
glibc: updated to 2.28
[ports/core-arm.git] / glibc / Pkgfile
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
7 name=glibc
8 version=2.28
9 release=2
10 source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \
11 http://www.kernel.org/pub/linux/kernel/v4.x/linux-4.19.24.tar.xz \
12 $name-$version-1.patch \
13 hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
14
15 build() {
16 # install kernel headers
17 cd linux-4.19.24
18 make mrproper
19 make ARCH=arm headers_check
20 make ARCH=arm INSTALL_HDR_PATH=$PKG/usr headers_install
21 chown root:root $PKG/usr
22
23 patch -p1 -d $SRC/$name-${version:0:4} -i $SRC/$name-$version-1.patch
24
25 mkdir $SRC/build
26 cd $SRC/build
27 ../$name-${version:0:4}/configure --prefix=/usr \
28 --build=arm-unknown-linux-gnueabihf \
29 --libexecdir=/usr/lib \
30 --with-headers=$PKG/usr/include \
31 --enable-kernel=3.2 \
32 --enable-add-ons \
33 --enable-static-nss \
34 --enable-stack-protector=strong \
35 --enable-obsolete-rpc \
36 --enable-obsolete-nsl \
37 --disable-profile \
38 --disable-werror \
39 --without-gd \
40 --disable-multi-arch
41
42 make
43 #make check
44 make install_root=$PKG install
45
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
51 # install needed headers
52 install -d $PKG/usr/include/rpcsvc
53 install -m 0644 $SRC/$name-${version:0:4}/nis/rpcsvc/yp* $PKG/usr/include/rpcsvc
54
55 ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
56 ln -s stubs-hard.h $PKG/usr/include/gnu/stubs-soft.h
57 install -d $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
58 touch $PKG/etc/ld.so.cache
59
60 rm -rf $PKG/usr/share/{info,locale} \
61 $PKG/usr/bin/tzselect \
62 $PKG/usr/sbin/z{dump,ic}
63 find $PKG -name "*install.cmd" -delete
64 find $PKG -name ".\install" -delete
65 }