!49 loongarch64: use glibc instead of unsupported dietlibc

From: @zhangwenlong01 
Reviewed-by: @Lostwayzxc 
Signed-off-by: @Lostwayzxc
This commit is contained in:
openeuler-ci-bot 2024-07-01 06:20:22 +00:00 committed by Gitee
commit b6425a85a6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: supermin Name: supermin
Version: 5.3.3 Version: 5.3.3
Release: 5 Release: 6
Summary: A tool for building supermin appliances, required by libguestfs Summary: A tool for building supermin appliances, required by libguestfs
License: GPLv2+ License: GPLv2+
URL: http://libguestfs.org/ URL: http://libguestfs.org/
@ -16,6 +16,8 @@ Patch9003: 9003-fix-cannot-detect-package-manager-on-KylinOS.patch
Patch9100: 9100-src-format_ext2_kernel.ml-Rename-function-file-kerne.patch Patch9100: 9100-src-format_ext2_kernel.ml-Rename-function-file-kerne.patch
Patch9101: 9101-src-Uncompress-kernel-on-RISC-V.patch Patch9101: 9101-src-Uncompress-kernel-on-RISC-V.patch
BuildRequires: musl-gcc musl-libc-static BuildRequires: musl-gcc musl-libc-static
%elifarch loongarch64
BuildRequires: glibc-static
%else %else
BuildRequires: dietlibc-devel BuildRequires: dietlibc-devel
%endif %endif
@ -55,6 +57,8 @@ This contains man files for the using of supermin.
%configure --disable-network-tests %configure --disable-network-tests
%ifarch riscv64 %ifarch riscv64
make -C init CC="musl-gcc" make -C init CC="musl-gcc"
%elifarch loongarch64
%make_build
%else %else
make -C init CC="diet gcc" make -C init CC="diet gcc"
%endif %endif
@ -80,6 +84,9 @@ install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/
%{_mandir}/man1/* %{_mandir}/man1/*
%changelog %changelog
* Thu Jun 27 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 5.3.3-6
- loongarch64: use glibc instead of unsupported dietlibc
* Mon Apr 22 2024 yueyuankun <yueyuankun@kylinos.cn> - 5.3.3-5 * Mon Apr 22 2024 yueyuankun <yueyuankun@kylinos.cn> - 5.3.3-5
- fix cannot detect package manager on KylinOS - fix cannot detect package manager on KylinOS