glibc: drop unneeded rtldlist hack, noarch, rebuild

since we have lib64 symlinks in place and so on, the default
rtldlist is actually sufficient

while at it, fix the 32-bit dynlinker on ppc64 elfv2
This commit is contained in:
q66 2020-12-23 20:35:08 +01:00
parent 2646b6ebde
commit a128060e48

View file

@ -1,7 +1,7 @@
# Template file for 'glibc'
pkgname=glibc
version=2.30
revision=1
revision=2
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
@ -139,17 +139,13 @@ do_install() {
# ldd is a bash script, so make it run as such.
replace_interpreter bash ${DESTDIR}/usr/bin/ldd
rtldlist=""
# On x86_64, add dynamic linker's 32bit version to ldd,
# on ppc64 substitute with our own dynamic linker path
# wrong 32bit dynamic linker when using elfv2 ABI
case "$XBPS_TARGET_MACHINE" in
x86_64) rtldlist="/lib/ld-linux.so.2 /lib/ld-linux-x86-64.so.2";;
ppc64|ppc64le) rtldlist="/lib/ld64.so.2";;
ppc64*)
vsed -i '/RTLDLIST=/s/ld.so.2/ld.so.1/g' \
${DESTDIR}/usr/bin/ldd
;;
esac
if [ -n "$rtldlist" ]; then
sed -i "s|^RTLDLIST.*$|RTLDLIST=\"$rtldlist\"|" \
${DESTDIR}/usr/bin/ldd
fi
install -d ${DESTDIR}/etc/ld.so.conf.d
echo "/usr/local/lib" > ${DESTDIR}/etc/ld.so.conf.d/usr_local.conf
@ -197,7 +193,6 @@ glibc-devel_package() {
}
}
glibc-locales_package() {
archs="noarch"
conf_files="/etc/default/libc-locales"
short_desc+=" - locale data files"
pkg_install() {