update to 12.4: glibc-2.42

This commit is contained in:
2025-12-20 17:40:23 -05:00
parent fd69842d12
commit 0e193fc464
3 changed files with 11 additions and 6 deletions

View File

@@ -1,28 +1,33 @@
pkgname="glibc"
pkgver=2.41
pkgver=2.42
sources=("${pkgname}-${pkgver}.tar.xz"
"${pkgname}-${pkgver}-fhs-1.patch"
"${pkgname}-${pkgver}/nsswitch.conf"
"${pkgname}-${pkgver}/ld.so.conf"
"${pkgname}-${pkgver}/tzdata2025a.tar.gz"
"${pkgname}-${pkgver}/tzdata2025b.tar.gz"
)
urls=("https://ftp.gnu.org/gnu/glibc/${sources[0]}"
"https://www.linuxfromscratch.org/patches/lfs/12.3/${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"
"https://gitea.phywyj.dynv6.net/wyj/LFS-PKGBUILDs/raw/branch/main/lfs/${pkgname}-${pkgver}/ld.so.conf"
"https://www.iana.org/time-zones/repository/releases/tzdata2025a.tar.gz"
"https://www.iana.org/time-zones/repository/releases/tzdata2025b.tar.gz"
)
md5sums=("19862601af60f73ac69e067d3e9267d4"
md5sums=("23c6f5a27932b435cae94e087cb8b1f5"
"9a5997c3452909b1769918c759eff8a2"
"4caf37ca10aacf7f7bfabddf915e9d25"
"79220f5a36182b7160e0cf567dc64129"
"404229390c06b7440f5e48d12c1a3251"
"ad65154c48c74a9b311fe84778c5434f"
)
license=(GPL-2.0-or-later LGPL-2.1-or-later)
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
patch -Np1 -i "${distdir}/${sources[1]}"
sed -e '/unistd.h/i #include <string.h>' \
-e '/libc_rwlock_init/c\
__libc_rwlock_define_initialized (, reset_lock);\
memcpy (&lock, &reset_lock, sizeof (lock));' \
-i stdlib/abort.c
}
src_build() {