LoongArch: fix up spec file.

Ignore kernel version checks.
Not provided libanl, libnsl and libutil by LoongArch.

Signed-off-by: Peng Fan <fanpeng@loongson.cn>
This commit is contained in:
Peng Fan 2023-10-23 14:51:22 +08:00
parent e42a81cd79
commit faab9dd8a4

View file

@ -1,4 +1,4 @@
%define anolis_release 10 %define anolis_release 11
%bcond_without testsuite %bcond_without testsuite
%bcond_without benchtests %bcond_without benchtests
@ -434,6 +434,11 @@ find . -type f -size 0 -o -name "*.orig" -exec rm -f {} \;
touch `find . -name configure` touch `find . -name configure`
touch locale/programs/*-kw.h touch locale/programs/*-kw.h
# Ignore kernel version check errors.
%ifarch loongarch64
sed -i "s@5.19.0@4.15.0@g" sysdeps/unix/sysv/linux/loongarch/configure{,.ac}
%endif
%build %build
uname -a uname -a
LD_SHOW_AUXV=1 /bin/true LD_SHOW_AUXV=1 /bin/true
@ -879,7 +884,10 @@ update_gconv_modules_cache ()
%endif %endif
/lib64/libBrokenLocale.so.1 /lib64/libBrokenLocale.so.1
%ifnarch loongarch64
/lib64/libanl.so.1 /lib64/libanl.so.1
/lib64/libutil.so.1
%endif
/lib64/libc.so.6 /lib64/libc.so.6
/lib64/libc_malloc_debug.so.0 /lib64/libc_malloc_debug.so.0
/lib64/libdl.so.2 /lib64/libdl.so.2
@ -888,7 +896,6 @@ update_gconv_modules_cache ()
/lib64/libresolv.so.2 /lib64/libresolv.so.2
/lib64/librt.so.1 /lib64/librt.so.1
/lib64/libthread_db.so.1 /lib64/libthread_db.so.1
/lib64/libutil.so.1
/lib64/libnss_compat.so.2 /lib64/libnss_compat.so.2
/lib64/libnss_files.so.2 /lib64/libnss_files.so.2
/lib64/libnss_dns.so.2 /lib64/libnss_dns.so.2
@ -1116,6 +1123,10 @@ update_gconv_modules_cache ()
%{_libdir}/libpthread_nonshared.a %{_libdir}/libpthread_nonshared.a
%changelog %changelog
* Thu Oct 11 2023 Peng Fan <fanpeng@loongson.cn> - 2.36-11
- LoongArch: Ignore kernel version checks.
- Temporarily not pack libanl.so and libutil.so in LoongArch.
* Wed Oct 04 2023 Funda Wang <fundawang@yeah.net> - 2.36-10 * Wed Oct 04 2023 Funda Wang <fundawang@yeah.net> - 2.36-10
- fix CVE-2023-4527, CVE-2023-4806, CVE-2023-5156, CVE-2023-4911 - fix CVE-2023-4527, CVE-2023-4806, CVE-2023-5156, CVE-2023-4911