From afad3603d81a413b7796f17ba73eca0d21ba5839 Mon Sep 17 00:00:00 2001 From: xunian Date: Mon, 31 Mar 2025 18:25:59 +0800 Subject: [PATCH] Add sw_64 support Project:TC2024110202 Signed-off-by: xunian --- texlive-base.spec | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/texlive-base.spec b/texlive-base.spec index 7411a7a..b38756d 100644 --- a/texlive-base.spec +++ b/texlive-base.spec @@ -1,4 +1,4 @@ -%define anolis_release 15 +%define anolis_release 16 %global shortname texlive %global source_date 20220321 %global source_name texlive-%{source_date}-source @@ -539,6 +539,12 @@ done %patch43 -p1 -b .c99-4 %global mysources %{lua: for index,value in ipairs(sources) do if index >= 16 then print(value.." ") end end} +%ifarch sw_64 +cp -fv /usr/lib/rpm/%{_vendor}/config.* source/build-aux/ +cp -fv /usr/lib/rpm/%{_vendor}/config.* source/libs/icu/icu-src/source/ +cp -fv /usr/lib/rpm/%{_vendor}/config.* source/libs/freetype2/freetype-src/builds/unix/ +cp -fv /usr/lib/rpm/%{_vendor}/config.* source/utils/asymptote/ +%endif rm -rf source/libs/xpdf @@ -573,8 +579,13 @@ latex dummy.tex rm -f dummy.* %endif +%ifarch sw_64 +export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +%else export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Werror=format-security" export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Werror=format-security" +%endif cd source PREF=`pwd`/inst @@ -596,7 +607,7 @@ export XPDF_LIBS="-lxpdfcore -lfofi -lgoo -lsplash $GLIB_LIBS $PAPER_LIBS $FONTC --disable-native-texlive-build --disable-t1utils --enable-psutils --disable-biber --disable-ptexenc --disable-largefile \ --with-banner-add='/CVE-2023-32700 patched' \ --with-system-xpdf \ -%ifarch loongarch64 +%ifarch loongarch64 sw_64 --disable-mfluajit \ --disable-luajithbtex \ --disable-luajittex \ @@ -859,7 +870,7 @@ for i in afm2pl afm2tfm aleph bibtex bibtex8 bibtexu chkdvifont chktex ctie ctan chrpath --delete %{buildroot}%{_bindir}/$i done -%ifnarch loongarch64 +%ifnarch loongarch64 sw_64 chrpath --delete %{buildroot}%{_bindir}/luajithbtex chrpath --delete %{buildroot}%{_bindir}/luajittex chrpath --delete %{buildroot}%{_bindir}/mfluajit @@ -1000,6 +1011,9 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || : %ghost %{_datadir}/texmf.rpmmoved %changelog +* Mon Mar 31 2025 xunian - 10:20220321-16 +- Add sw_64 support + * Tue Oct 10 2023 Wenlong Zhang - 10:20220321-15 - disable luajit for loongarch64 -- Gitee