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