!51 use glibc instead of unsupported dietlibc

From: @zhangwenlong01 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
This commit is contained in:
openeuler-ci-bot 2024-10-16 02:23:05 +00:00 committed by Gitee
commit 6b3bf33d84
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: supermin
Version: 5.3.3
Release: 4
Release: 5
Summary: A tool for building supermin appliances, required by libguestfs
License: GPLv2+
URL: http://libguestfs.org/
@ -15,6 +15,8 @@ Patch0004: 0001-fix-cannot-detect-package-manager-on-NestOS.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
@ -54,6 +56,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 -C init CC="gcc"
%else
make -C init CC="diet gcc"
%endif
@ -79,6 +83,9 @@ install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/
%{_mandir}/man1/*
%changelog
* Tue Oct 15 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 5.3.3-5
- use glibc instead of unsupported dietlibc
* Mon Apr 22 2024 laokz <zhangkai@iscas.ac.cn> - 5.3.3-4
- riscv64: use musl instead of unsupported dietlibc