From 707cd679c00ee050e96f607834a67a722f75321d Mon Sep 17 00:00:00 2001 From: "yan.yihao 10263201" Date: Mon, 20 Oct 2025 16:20:34 +0800 Subject: [PATCH] turning gcc errors back into warnings --- texlive-base.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/texlive-base.spec b/texlive-base.spec index 3ba5d3b..cabbec9 100644 --- a/texlive-base.spec +++ b/texlive-base.spec @@ -1,4 +1,4 @@ -%define anolis_release 17 +%define anolis_release 18 %global shortname texlive %global source_date 20220321 %global source_name texlive-%{source_date}-source @@ -576,7 +576,11 @@ latex dummy.tex rm -f dummy.* %endif +%ifarch riscv64 +export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Werror=format-security -Wno-error=incompatible-pointer-types" +%else export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Werror=format-security" +%endif export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Werror=format-security" cd source @@ -1003,6 +1007,9 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || : %ghost %{_datadir}/texmf.rpmmoved %changelog +* Mon Oct 20 2025 Yihao Yan - 10:20220321-18 +- turning gcc errors back into warnings + * Tue Aug 12 2025 wh02252983 - 10:20220321-17 - add patch to fix CVE-2023-46048 -- Gitee