--- glibc.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/glibc.spec b/glibc.spec index f00686a..ea5393f 100644 --- a/glibc.spec +++ b/glibc.spec @@ -1,6 +1,6 @@ %define glibcsrcdir glibc-2.27 %define glibcversion 2.27 -%define glibcrelease 1%{?dist} +%define glibcrelease 2%{?dist} # Pre-release tarballs are pulled in from git using a command that is # effectively: # @@ -1009,6 +1009,16 @@ chmod 644 sysdeps/gnu/errlist.c # Reload compiler and build options that were used during %%build. GCC=`cat Gcc`
+%ifarch riscv64 +# RISC-V ABI wants to install everything in /lib64/lp64d or /usr/lib64/lp64d. +# Make these be symlinks to /lib64 or /usr/lib64 respectively. See: +# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/... +for d in $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT/%{_lib}; do + mkdir -p $d + (cd $d && ln -s . lp64d) +done +%endif + # Build and install. make -j1 install_root=$RPM_BUILD_ROOT install -C build-%{target}
@@ -2001,6 +2011,9 @@ fi %endif
%changelog +* Sat Feb 10 2018 Richard W.M. Jones rjones@redhat.com - 2.27-2 +- riscv64: Add symlink from /usr/lib64/lp64d -> /usr/lib64 for ABI compat. + * Mon Feb 05 2018 Carlos O'Donell carlos@redhat.com - 2.27-1 - Update to released glibc 2.27. - Auto-sync with upstream branch master,