fix: glibc-2.42
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
pkgname="glibc"
|
||||
pkgver=2.42
|
||||
_kernel_min_ver=6.12
|
||||
sources=("${pkgname}-${pkgver}.tar.xz"
|
||||
"${pkgname}-${pkgver}-fhs-1.patch"
|
||||
"${pkgname}-${pkgver}/nsswitch.conf"
|
||||
"${pkgname}-${pkgver}/ld.so.conf"
|
||||
"${pkgname}-${pkgver}/tzdata2025b.tar.gz"
|
||||
"nsswitch.conf"
|
||||
"ld.so.conf"
|
||||
"tzdata2025b.tar.gz"
|
||||
)
|
||||
urls=("https://ftp.gnu.org/gnu/glibc/${sources[0]}"
|
||||
"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"
|
||||
"nsswitch.conf"
|
||||
"ld.so.conf"
|
||||
"https://www.iana.org/time-zones/repository/releases/tzdata2025b.tar.gz"
|
||||
)
|
||||
md5sums=("23c6f5a27932b435cae94e087cb8b1f5"
|
||||
@@ -37,7 +38,7 @@ src_build() {
|
||||
echo "rootsbindir=/usr/sbin" > configparms
|
||||
../configure --prefix=/usr \
|
||||
--disable-werror \
|
||||
--enable-kernel=5.4 \
|
||||
--enable-kernel=${_kernel_min_ver} \
|
||||
--enable-stack-protector=strong \
|
||||
--disable-nscd \
|
||||
libc_cv_slibdir=/usr/lib
|
||||
@@ -51,6 +52,7 @@ _skip_test() {
|
||||
}
|
||||
|
||||
src_check() {
|
||||
cd build
|
||||
_skip_test tst-lchmod io/Makefile
|
||||
|
||||
make check
|
||||
@@ -64,7 +66,7 @@ src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
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]}"
|
||||
ZONEINFO=${pkgdir}/usr/share/zoneinfo
|
||||
@@ -79,7 +81,10 @@ src_install() {
|
||||
zic -d $ZONEINFO -p America/New_York
|
||||
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() {
|
||||
@@ -124,3 +129,5 @@ src_postinstall() {
|
||||
localedef -i zh_TW -f UTF-8 zh_TW.UTF-8
|
||||
localedef -i zh_CN -f UTF-8 zh_CN.UTF-8
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
|
||||
Reference in New Issue
Block a user