loongarch64: use glibc instead of unsupported dietlibc

This commit is contained in:
Wenlong Zhang 2024-06-27 15:44:24 +08:00
parent f93b5cba63
commit afda70d0cd

View File

@ -1,6 +1,6 @@
Name: supermin
Version: 5.3.3
Release: 5
Release: 6
Summary: A tool for building supermin appliances, required by libguestfs
License: GPLv2+
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
Patch9101: 9101-src-Uncompress-kernel-on-RISC-V.patch
BuildRequires: musl-gcc musl-libc-static
%elifarch loongarch64
BuildRequires: glibc-static
%else
BuildRequires: dietlibc-devel
%endif
@ -55,6 +57,8 @@ This contains man files for the using of supermin.
%configure --disable-network-tests
%ifarch riscv64
make -C init CC="musl-gcc"
%elifarch loongarch64
%make_build
%else
make -C init CC="diet gcc"
%endif
@ -80,6 +84,9 @@ install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/
%{_mandir}/man1/*
%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
- fix cannot detect package manager on KylinOS