update to 12.3: glibc
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
pkgname="glibc"
|
||||
pkgver=2.40
|
||||
sources=("glibc-2.40.tar.xz"
|
||||
"glibc-2.40-fhs-1.patch"
|
||||
"nsswitch.conf"
|
||||
"ld.so.conf"
|
||||
"tzdata2024a.tar.gz"
|
||||
pkgver=2.41
|
||||
sources=("${pkgname}-${pkgver}.tar.xz"
|
||||
"${pkgname}-${pkgver}-fhs-1.patch"
|
||||
"${pkgname}-${pkgver}/nsswitch.conf"
|
||||
"${pkgname}-${pkgver}/ld.so.conf"
|
||||
"${pkgname}-${pkgver}/tzdata2025a.tar.gz"
|
||||
)
|
||||
urls=("https://ftp.gnu.org/gnu/glibc/glibc-2.40.tar.xz"
|
||||
"https://www.linuxfromscratch.org/patches/lfs/12.2/glibc-2.40-fhs-1.patch"
|
||||
"https://gitea.phywyj.dynv6.net/wyj/LFS-PKGBUILDs/raw/branch/main/lfs-12.2-systemd/glibc-2.40/nsswitch.conf"
|
||||
"https://gitea.phywyj.dynv6.net/wyj/LFS-PKGBUILDs/raw/branch/main/lfs-12.2-systemd/glibc-2.40/ld.so.conf"
|
||||
"https://www.iana.org/time-zones/repository/releases/tzdata2024a.tar.gz"
|
||||
urls=("https://ftp.gnu.org/gnu/glibc/${sources[0]}"
|
||||
"https://www.linuxfromscratch.org/patches/lfs/12.2/${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"
|
||||
)
|
||||
md5sums=("b390feef233022114950317f10c4fa97"
|
||||
"9a5997c3452909b1769918c759eff8a2"
|
||||
@@ -29,12 +29,12 @@ src_build() {
|
||||
mkdir -pv build
|
||||
cd build
|
||||
echo "rootsbindir=/usr/sbin" > configparms
|
||||
../configure --prefix=/usr \
|
||||
--disable-werror \
|
||||
--enable-kernel=4.19 \
|
||||
--enable-stack-protector=strong \
|
||||
--disable-nscd \
|
||||
libc_cv_slibdir=/usr/lib
|
||||
../configure --prefix=/usr \
|
||||
--disable-werror \
|
||||
--enable-kernel=5.4 \
|
||||
--enable-stack-protector=strong \
|
||||
--disable-nscd \
|
||||
libc_cv_slibdir=/usr/lib
|
||||
make
|
||||
}
|
||||
|
||||
@@ -94,11 +94,9 @@ src_install() {
|
||||
localedef -i zh_TW -f UTF-8 zh_TW.UTF-8
|
||||
localedef -i zh_CN -f UTF-8 zh_CN.UTF-8
|
||||
|
||||
if [ ! -f /etc/nsswitch.conf ]; then
|
||||
install -m644 "${distdir}/nsswitch.conf" "${pkgdir}/etc/nsswitch.conf"
|
||||
fi
|
||||
install -m644 "${distdir}/${sources[2]}" "${pkgdir}/etc/nsswitch.conf"
|
||||
|
||||
tar -xf "${distdir}/tzdata2024a.tar.gz"
|
||||
tar -xf "${distdir}/${sources[4]}"
|
||||
ZONEINFO=${pkgdir}/usr/share/zoneinfo
|
||||
mkdir -pv $ZONEINFO/{posix,right}
|
||||
for tz in etcetera southamerica northamerica europe africa antarctica \
|
||||
@@ -111,9 +109,7 @@ src_install() {
|
||||
zic -d $ZONEINFO -p America/New_York
|
||||
unset ZONEINFO
|
||||
|
||||
if [ ! -f /etc/ld.so.conf ]; then
|
||||
install -m644 "${distdir}/ld.so.conf" "${pkgdir}/etc/ld.so.conf"
|
||||
fi
|
||||
install -m644 "${distdir}/${sources[3]}" "${pkgdir}/etc/ld.so.conf"
|
||||
}
|
||||
|
||||
src_preinstall() {
|
||||
Reference in New Issue
Block a user