Commit | Line | Data |
---|---|---|
eb267740 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 | ||
7 | name=glibc | |
e3864b91 VM |
8 | version=2.28 |
9 | release=2 | |
da310f23 | 10 | source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \ |
e3864b91 VM |
11 | http://www.kernel.org/pub/linux/kernel/v4.x/linux-4.19.24.tar.xz \ |
12 | glibc-$version-1.patch \ | |
da310f23 | 13 | hosts resolv.conf nsswitch.conf host.conf ld.so.conf) |
eb267740 VM |
14 | |
15 | build() { | |
16 | # install kernel headers | |
e3864b91 | 17 | cd linux-4.19.24 |
eb267740 VM |
18 | make mrproper |
19 | make ARCH=arm64 headers_check | |
20 | make ARCH=arm64 INSTALL_HDR_PATH=$PKG/usr headers_install | |
6e52ceb9 VM |
21 | chown root:root $PKG/usr |
22 | ||
e3864b91 | 23 | patch -p1 -d $SRC/$name-${version:0:4} -i $SRC/$name-$version-1.patch |
eb267740 VM |
24 | |
25 | mkdir $SRC/build | |
26 | cd $SRC/build | |
ad73d1f2 | 27 | ../$name-${version:0:4}/configure --prefix=/usr \ |
eb267740 VM |
28 | --libexecdir=/usr/lib \ |
29 | --with-headers=$PKG/usr/include \ | |
30 | --enable-kernel=2.6.25 \ | |
31 | --enable-add-ons \ | |
32 | --enable-static-nss \ | |
6e52ceb9 | 33 | --enable-stack-protector=strong \ |
eb267740 VM |
34 | --disable-profile \ |
35 | --disable-werror \ | |
36 | --without-gd \ | |
da310f23 VM |
37 | --enable-obsolete-rpc \ |
38 | --enable-obsolete-nsl | |
eb267740 VM |
39 | |
40 | make | |
ad73d1f2 | 41 | #make check |
eb267740 VM |
42 | make install_root=$PKG install |
43 | ||
6e52ceb9 | 44 | install -m 0644 $SRC/$name-${version:0:4}/nscd/nscd.conf $PKG/etc |
eb267740 VM |
45 | install -d $PKG/var/{db,run}/nscd |
46 | ||
47 | install -m 0644 $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc | |
48 | ||
6e52ceb9 VM |
49 | # install needed headers |
50 | install -d $PKG/usr/include/rpcsvc | |
51 | install -m 0644 $SRC/$name-${version:0:4}/nis/rpcsvc/yp* $PKG/usr/include/rpcsvc | |
52 | ||
eb267740 | 53 | ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime |
6e52ceb9 | 54 | ln -s stubs-hard.h $PKG/usr/include/gnu/stubs-soft.h |
eb267740 VM |
55 | install -d $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale |
56 | touch $PKG/etc/ld.so.cache | |
57 | ||
58 | rm -rf $PKG/usr/share/{info,locale} \ | |
6e52ceb9 VM |
59 | $PKG/usr/bin/tzselect \ |
60 | $PKG/usr/sbin/z{dump,ic} | |
61 | find $PKG -name "*install.cmd" -delete | |
62 | find $PKG -name ".\install" -delete | |
eb267740 | 63 | } |