ALT Linux Bugzilla
– Attachment 13970 Details for
Bug 47098
glibc: поддержка архитектуры LoongArch (lp64d ABI)
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
патч для spec
0002-spec-adjust-build-for-LoongArch.patch (text/plain), 1.85 KB, created by
Alexey Sheplyakov
on 2023-08-02 15:43:05 MSK
(
hide
)
Description:
патч для spec
Filename:
MIME Type:
Creator:
Alexey Sheplyakov
Created:
2023-08-02 15:43:05 MSK
Size:
1.85 KB
patch
obsolete
>From a353e72cd8fe4959825ccafcc87f49ff4f8b715e Mon Sep 17 00:00:00 2001 >From: Alexey Sheplyakov <asheplyakov@basealt.ru> >Date: Wed, 2 Aug 2023 15:54:08 +0400 >Subject: [PATCH 2/2] spec: adjust build for LoongArch > >- LoongArch has no yp/nis legacy >- gai_ functions are in libc.so since day 0 on LoongArch, > thus no libanl.so compatibility DSO >--- > alt/glibc.spec | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > >diff --git a/alt/glibc.spec b/alt/glibc.spec >index 463c1a855f..4e32d6f717 100644 >--- a/alt/glibc.spec >+++ b/alt/glibc.spec >@@ -51,6 +51,10 @@ Url: http://www.gnu.org/software/glibc/ > %define enablekernel 3.10.0 > %endif > >+%ifarch loongarch64 >+%define enablekernel 6.0 >+%endif >+ > # http://git.altlinux.org/gears/g/glibc.git > Source: glibc-%version-%release.tar > >@@ -393,7 +397,10 @@ mv %buildroot/%_lib/lib{memusage,pcprofile,SegFault}.so \ > %buildroot%_libdir/ ||: > > # Relocate libnsl. >+# Some architectures (LoongArch) have no yp/nis legacy >+%ifnarch loongarch64 > mv %buildroot/%_lib/libnsl.so.1 %buildroot%_libdir/ >+%endif > > # Install upgrade programs. > make -C alt install >@@ -656,7 +663,13 @@ fi > %files core > /%_lib/lib*.so* > %exclude /%_lib/lib*thread*.so* >+# gai_ functions have moved to libc.so as of glibc 2.34, and libanl*.so* >+# exist for compatibility purposes only. LoongArch port has been added >+# in glibc 2.36, and has no libanl*.so* (new port -> no compatibility >+# issues yet) >+%ifnarch loongarch64 > %exclude /%_lib/libanl*.so* >+%endif > %exclude /%_lib/librt*.so* > %attr(755,root,root) /%_lib/ld*.so.* > %ifarch aarch64 >@@ -684,15 +697,19 @@ fi > > %files pthread > /%_lib/lib*thread*.so* >+%ifnarch loongarch64 > /%_lib/libanl*.so* >+%endif > /%_lib/librt*.so* > > %files nss > /%_lib/libnss_*.so* > %exclude /%_lib/libnss_f* > >+%ifnarch loongarch64 > %files -n libnsl1 > %_libdir/libnsl.so.1 >+%endif > > %if_with locales > %files locales -f libc.lang >-- >2.33.8 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 47098
:
13969
| 13970