core/glibc/Pkgfile

57 lines
1.5 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: The C library used in the GNU system
2021-12-28 14:17:09 +01:00
# URL: http://www.gnu.org/software/libc/
# Maintainer: CRUX System Team, core-ports at crux dot nu
2006-02-23 16:26:10 +01:00
name=glibc
2021-12-28 14:17:09 +01:00
version=2.34
release=1
source=(https://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \
2021-12-28 14:17:09 +01:00
https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.15.11.tar.xz \
glibc-$version-1.patch \
hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
2006-02-23 16:26:10 +01:00
build() {
2012-08-08 10:08:54 +02:00
# install kernel headers
2021-12-28 14:17:09 +01:00
cd linux-5.15.11
2018-07-17 19:06:13 +02:00
make mrproper
make headers_check
make INSTALL_HDR_PATH=$PKG/usr headers_install
2012-08-08 10:08:54 +02:00
chown root:root $PKG/usr
2021-12-28 14:17:09 +01:00
patch -p1 -d $SRC/$name-${version:0:4} -i $SRC/$name-$version-1.patch
mkdir $SRC/build
2014-02-15 18:02:52 +01:00
cd $SRC/build
2021-03-22 16:38:00 +01:00
../$name-${version}/configure \
--prefix=/usr \
2012-08-08 10:08:54 +02:00
--libexecdir=/usr/lib \
--with-headers=$PKG/usr/include \
2018-10-23 17:53:10 +02:00
--enable-kernel=4.9 \
2012-08-08 10:08:54 +02:00
--enable-add-ons \
--enable-stack-protector=strong \
2012-08-08 10:08:54 +02:00
--disable-profile \
--disable-werror \
2012-08-08 10:08:54 +02:00
--without-gd \
--enable-multi-arch
2012-08-08 10:08:54 +02:00
make
#make check
make install_root=$PKG install
2016-07-05 20:34:12 +02:00
install -m 0644 $SRC/$name-${version:0:4}/nscd/nscd.conf $PKG/etc
install -d $PKG/var/{db,run}/nscd
install -m 0644 $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
2012-08-08 10:08:54 +02:00
ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
install -d $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
2012-08-08 10:08:54 +02:00
touch $PKG/etc/ld.so.cache
2021-12-28 14:17:09 +01:00
localedef -i POSIX -f UTF-8 $PKG/usr/lib/locale/C.UTF-8 2> /dev/null || true
rm -r $PKG/usr/share/locale \
$PKG/usr/bin/{tzselect,zdump} \
$PKG/usr/sbin/zic
2018-07-17 19:06:13 +02:00
find $PKG -name "*install.cmd" -delete
find $PKG -name ".\install" -delete
2006-02-23 16:26:10 +01:00
}