fix: glibc-2.42

This commit is contained in:
2026-02-04 22:11:20 -05:00
parent f52eb0e4d7
commit 3ace070aff

View File

@@ -1,15 +1,16 @@
pkgname="glibc" pkgname="glibc"
pkgver=2.42 pkgver=2.42
_kernel_min_ver=6.12
sources=("${pkgname}-${pkgver}.tar.xz" sources=("${pkgname}-${pkgver}.tar.xz"
"${pkgname}-${pkgver}-fhs-1.patch" "${pkgname}-${pkgver}-fhs-1.patch"
"${pkgname}-${pkgver}/nsswitch.conf" "nsswitch.conf"
"${pkgname}-${pkgver}/ld.so.conf" "ld.so.conf"
"${pkgname}-${pkgver}/tzdata2025b.tar.gz" "tzdata2025b.tar.gz"
) )
urls=("https://ftp.gnu.org/gnu/glibc/${sources[0]}" urls=("https://ftp.gnu.org/gnu/glibc/${sources[0]}"
"https://www.linuxfromscratch.org/patches/lfs/12.4/${pkgname}-${pkgver}-fhs-1.patch" "https://www.linuxfromscratch.org/patches/lfs/12.4/${pkgname}-${pkgver}-fhs-1.patch"
"https://gitea.phywyj.dynv6.net/wyj/LFS-PKGBUILDs/raw/branch/main/lfs/${pkgname}-${pkgver}/nsswitch.conf" "nsswitch.conf"
"https://gitea.phywyj.dynv6.net/wyj/LFS-PKGBUILDs/raw/branch/main/lfs/${pkgname}-${pkgver}/ld.so.conf" "ld.so.conf"
"https://www.iana.org/time-zones/repository/releases/tzdata2025b.tar.gz" "https://www.iana.org/time-zones/repository/releases/tzdata2025b.tar.gz"
) )
md5sums=("23c6f5a27932b435cae94e087cb8b1f5" md5sums=("23c6f5a27932b435cae94e087cb8b1f5"
@@ -37,7 +38,7 @@ src_build() {
echo "rootsbindir=/usr/sbin" > configparms echo "rootsbindir=/usr/sbin" > configparms
../configure --prefix=/usr \ ../configure --prefix=/usr \
--disable-werror \ --disable-werror \
--enable-kernel=5.4 \ --enable-kernel=${_kernel_min_ver} \
--enable-stack-protector=strong \ --enable-stack-protector=strong \
--disable-nscd \ --disable-nscd \
libc_cv_slibdir=/usr/lib libc_cv_slibdir=/usr/lib
@@ -51,6 +52,7 @@ _skip_test() {
} }
src_check() { src_check() {
cd build
_skip_test tst-lchmod io/Makefile _skip_test tst-lchmod io/Makefile
make check make check
@@ -64,7 +66,7 @@ src_install() {
make DESTDIR="${pkgdir}" install make DESTDIR="${pkgdir}" install
sed '/RTLDLIST=/s@/usr@@g' -i "${pkgdir}/usr/bin/ldd" sed '/RTLDLIST=/s@/usr@@g' -i "${pkgdir}/usr/bin/ldd"
install -m644 "${distdir}/${sources[2]}" "${pkgdir}/etc/nsswitch.conf" install -m644 "${filedir}/${sources[2]}" "${pkgdir}/etc/nsswitch.conf"
tar -xf "${distdir}/${sources[4]}" tar -xf "${distdir}/${sources[4]}"
ZONEINFO=${pkgdir}/usr/share/zoneinfo ZONEINFO=${pkgdir}/usr/share/zoneinfo
@@ -79,7 +81,10 @@ src_install() {
zic -d $ZONEINFO -p America/New_York zic -d $ZONEINFO -p America/New_York
unset ZONEINFO unset ZONEINFO
install -m644 "${distdir}/${sources[3]}" "${pkgdir}/etc/ld.so.conf" install -m644 "${filedir}/${sources[3]}" "${pkgdir}/etc/ld.so.conf"
rm -f "${pkgdir}/etc/ld.so.cache"
install -vd "${pkgdir}/usr/lib/locale/"
} }
src_preinstall() { src_preinstall() {
@@ -124,3 +129,5 @@ src_postinstall() {
localedef -i zh_TW -f UTF-8 zh_TW.UTF-8 localedef -i zh_TW -f UTF-8 zh_TW.UTF-8
localedef -i zh_CN -f UTF-8 zh_CN.UTF-8 localedef -i zh_CN -f UTF-8 zh_CN.UTF-8
} }
# vim:ft=sh syn=sh et sw=2: