From 2f797f64c6077dd9d795fa8d672f39817f3d4f3d Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Tue, 24 Oct 2023 09:50:47 +0000 Subject: [PATCH 1/2] SPECS: update spec file Signed-off-by: Peng Fan --- glibc.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/glibc.spec b/glibc.spec index ad3e4f4..9a3665a 100644 --- a/glibc.spec +++ b/glibc.spec @@ -1,4 +1,4 @@ -%define anolis_release 11 +%define anolis_release 12 %bcond_without testsuite %bcond_without benchtests @@ -883,6 +883,10 @@ update_gconv_modules_cache () /lib/ld-linux-aarch64.so.1 %endif +%ifarch loongarch64 +/lib64/ld-linux-loongarch-lp64d.so.1 +%endif + /lib64/libBrokenLocale.so.1 %ifnarch loongarch64 /lib64/libanl.so.1 @@ -984,7 +988,9 @@ update_gconv_modules_cache () %{_prefix}/share/i18n/charmaps/* %files devel +%ifnarch loongarch64 /usr/lib64/libanl.a +%endif /usr/lib64/libc_nonshared.a /usr/lib64/libdl.a /usr/lib64/libg.a @@ -1001,7 +1007,9 @@ update_gconv_modules_cache () /usr/lib64/grcrt1.o /usr/lib64/rcrt1.o /usr/lib64/libBrokenLocale.so +%ifnarch loongarch64 /usr/lib64/libanl.so +%endif /usr/lib64/libc.so /usr/lib64/libm.so /usr/lib64/libresolv.so @@ -1112,7 +1120,9 @@ update_gconv_modules_cache () %{_libdir}/libnss_hesiod.so %files -n libnsl +%ifnarch loongarch64 /lib64/libnsl.so.1 +%endif %if %{with benchtests} %files benchtests @@ -1123,6 +1133,9 @@ update_gconv_modules_cache () %{_libdir}/libpthread_nonshared.a %changelog +* Mon Oct 23 2023 Peng Fan - 2.36-12 +- LoongArch: Not provided libanl, libnsl and libutil by LoongArch. + * Thu Oct 11 2023 Peng Fan - 2.36-11 - LoongArch: Ignore kernel version checks. - Temporarily not pack libanl.so and libutil.so in LoongArch. From df770ce59ed62f02eaf809f8e9aae60df786fc96 Mon Sep 17 00:00:00 2001 From: ticat_fp Date: Tue, 24 Oct 2023 12:14:00 +0000 Subject: [PATCH 2/2] update glibc.spec. Signed-off-by: ticat_fp --- glibc.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/glibc.spec b/glibc.spec index 9a3665a..e92e815 100644 --- a/glibc.spec +++ b/glibc.spec @@ -224,6 +224,7 @@ This particular package contains the most important sets of shared libraries: the standard C library and the standard math library. Without these two libraries, a Linux system will not function. +%ifnarch loongarch64 %package -n libnsl Summary: Legacy support library for NIS Requires: %{name} = %{EVR} @@ -233,6 +234,7 @@ This package provides the legacy version of libnsl library, for accessing NIS services. This library is provided for backwards compatibility only, applications should use libnsl2 instead to gain IPv6 support. +%endif %package devel Summary: Object files for development using standard C libraries. @@ -1119,8 +1121,8 @@ update_gconv_modules_cache () %{_libdir}/libnss_db.so %{_libdir}/libnss_hesiod.so -%files -n libnsl %ifnarch loongarch64 +%files -n libnsl /lib64/libnsl.so.1 %endif @@ -1133,7 +1135,7 @@ update_gconv_modules_cache () %{_libdir}/libpthread_nonshared.a %changelog -* Mon Oct 23 2023 Peng Fan - 2.36-12 +* Tue Oct 24 2023 Peng Fan - 2.36-12 - LoongArch: Not provided libanl, libnsl and libutil by LoongArch. * Thu Oct 11 2023 Peng Fan - 2.36-11 @@ -1180,4 +1182,4 @@ update_gconv_modules_cache () - RISC-V ABI wants to install everything in /lib64/lp64d or /usr/lib64/lp64d. Make these be symlinks to /lib64 or /usr/lib64 respectively. * Tue Feb 22 2022 Chunmei Xu - 2.35-1 -- upstream 2.35 release tarball and add patches from release/2.35/master +- upstream 2.35 release tarball and add patches from release/2.35/master \ No newline at end of file