Overwrite target for x86_64_v2

Add /usr/lib64/lp64d to ricv64
This commit is contained in:
Eduard Abdullin 2025-05-07 01:38:10 +00:00 committed by root
commit 77d592e1a7

View File

@ -145,7 +145,7 @@ Version: %{glibcversion}
# - It allows using the Release number without the %%dist tag in the dependency
# generator to make the generated requires interchangeable between Rawhide
# and ELN (.elnYY < .fcXX).
%global baserelease 37
%global baserelease 38
Release: %{baserelease}%{?dist}.alma.1
# Licenses:
@ -1586,17 +1586,6 @@ for d in $usrmove_file_names ; do
ln -s "usr/$d" "%{glibc_sysroot}/$d"
done
%ifarch riscv64
# RISC-V ABI wants to install everything in /usr/lib64/lp64d.
# Make these be symlinks to /usr/lib64. See:
# Make these be symlinks to /lib64 or /usr/lib64 respectively. See:
# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/DRHT5YTPK4WWVGL3GIN5BF2IKX2ODHZ3/
for d in %{glibc_sysroot}%{_libdir}; do
mkdir -p $d
(cd $d && ln -sf . lp64d)
done
%endif
%ifarch x86_64
# Install for the glibc32 package.
pushd build-%{target}-32
@ -1701,6 +1690,19 @@ popd
%endif
##############################################################################
# Move files to the expected location
##############################################################################
# On riscv64 libraries end up installed into the lp64d/ subdirectory
# by default, but in Fedora that's a compatibility symlink (owned by
# the filesystem package) that we don't want to show up in paths.
# Let's move everything out.
%ifarch riscv64
mv %{glibc_sysroot}%{_libdir}/lp64d/* %{glibc_sysroot}/%{_libdir}/
rm -rf %{glibc_sysroot}%{_libdir}/lp64d/
%endif
##############################################################################
# Remove the files we don't want to distribute
##############################################################################
@ -1938,10 +1940,6 @@ for lib in lib lib64; do
set +x
slbase=$(basename $sl)
sltarget=$(basename $(readlink $sl))
if test "$sltarget" = . ; then
# This is the lp64d symbolic link on riscv64, see above.
continue
fi
if ! test -r usr/$lib/$sltarget; then
echo "$sl: inferred $sltarget ($(readlink $sl)) missing"
exit 1
@ -2364,6 +2362,9 @@ update_gconv_modules_cache ()
%ifarch s390x
%verify(not md5 size mtime) %config(noreplace) %{_libdir}/gconv/gconv-modules.d/gconv-modules-s390.conf
%endif
%ifarch riscv64
%{_libdir}/lp64d
%endif
%dir %attr(0700,root,root) /var/cache/ldconfig
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/cache/ldconfig/aux-cache
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /etc/ld.so.cache
@ -2506,8 +2507,12 @@ update_gconv_modules_cache ()
%endif
%changelog
* Tue Feb 11 2025 Eduard Abdullin <eabdullin@almalinux.org> - 2.39-37.alma.1
* Wed May 07 2025 Eduard Abdullin <eabdullin@almalinux.org> - 2.39-38.alma.1
- Overwrite target for x86_64_v2
- Add /usr/lib64/lp64d to ricv64
* Fri Apr 18 2025 Frédéric Bérat <fberat@redhat.com> - 2.39-38
- Update riscv64 handling (thanks David Abdurachmanov) (RHEL-87574)
* Fri Jan 24 2025 Florian Weimer <fweimer@redhat.com> - 2.39-37
- setenv: Rework free(environ) compatibility support (RHEL-75809)