!81 fix build error on sw_64 mips64el
From: @hailianguniontech Reviewed-by: @wk333 Signed-off-by: @wk333
This commit is contained in:
commit
cdc7d8af05
@ -4,7 +4,7 @@
|
||||
|
||||
Name: texlive-base
|
||||
Version: 20210325
|
||||
Release: 9
|
||||
Release: 10
|
||||
Epoch: 9
|
||||
Summary: TeX formatting system
|
||||
License: ASL 2.0 and LGPL-2.1-only and Zlib and OFL-1.1 and Public Domain and LGPL-2.0-only and GPLv2+ and MPL-1.1 and Libpng and LGPL-3.0-only and BSL-1.0 and GPLv2 and GPLv3 and CPL-1.0 and IJG and MIT and LPPL-1.3c and ICU and psutils
|
||||
@ -6116,9 +6116,15 @@ ln -s %{_datadir}/texlive/licenses/$l $l
|
||||
done
|
||||
|
||||
%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
|
||||
|
||||
%build
|
||||
%ifarch loongarch64
|
||||
%ifarch loongarch64 sw_64 mips64el
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fcommon"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11 -fno-strict-aliasing -fcommon"
|
||||
%else
|
||||
@ -6140,7 +6146,7 @@ cd work
|
||||
--enable-shared --enable-compiler-warnings=max --without-cxx-runtime-hack \
|
||||
--disable-native-texlive-build --disable-t1utils --disable-psutils --disable-biber --disable-ptexenc --disable-largefile \
|
||||
--disable-xindy --disable-xindy-docs --disable-xindy-make-rules \
|
||||
%ifarch aarch64 riscv64 loongarch64 ppc64le
|
||||
%ifarch aarch64 riscv64 loongarch64 ppc64le sw_64 mips64el
|
||||
--disable-luajittex --disable-mfluajit --disable-luajithbtex --disable-mfluajit-nowin \
|
||||
%endif
|
||||
--disable-rpath
|
||||
@ -6324,7 +6330,7 @@ for i in afm2pl afm2tfm aleph bibtex bibtex8 bibtexu chkdvifont chktex ctie ctan
|
||||
chrpath --delete %{buildroot}%{_bindir}/$i
|
||||
done
|
||||
|
||||
%ifnarch aarch64 riscv64 loongarch64 ppc64le
|
||||
%ifnarch aarch64 riscv64 loongarch64 ppc64le sw_64 mips64el
|
||||
for i in luajittex luajithbtex mfluajit;do
|
||||
chrpath --delete %{buildroot}%{_bindir}/$i
|
||||
done
|
||||
@ -7493,7 +7499,7 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || :
|
||||
%{_includedir}/kpathsea/*
|
||||
%{_includedir}/synctex/
|
||||
%{_includedir}/texlua53/
|
||||
%ifnarch aarch64 riscv64 loongarch64 ppc64le
|
||||
%ifnarch aarch64 riscv64 loongarch64 ppc64le sw_64 mips64el
|
||||
%{_includedir}/texluajit/
|
||||
%endif
|
||||
%{_libdir}/*.so
|
||||
@ -7569,7 +7575,7 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || :
|
||||
|
||||
%files -n texlive-luajittex
|
||||
%license gpl2.txt
|
||||
%ifnarch aarch64 riscv64 loongarch64 ppc64le
|
||||
%ifnarch aarch64 riscv64 loongarch64 ppc64le sw_64 mips64el
|
||||
%{_bindir}/luajittex
|
||||
%{_bindir}/luajithbtex
|
||||
%{_bindir}/texluajit
|
||||
@ -7688,7 +7694,7 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || :
|
||||
%license gpl2.txt
|
||||
%{_bindir}/mflua
|
||||
%{_bindir}/mflua-nowin
|
||||
%ifnarch aarch64 riscv64 loongarch64 ppc64le
|
||||
%ifnarch aarch64 riscv64 loongarch64 ppc64le sw_64 mips64el
|
||||
%{_bindir}/mfluajit
|
||||
%{_bindir}/mfluajit-nowin
|
||||
%endif
|
||||
@ -8621,6 +8627,9 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || :
|
||||
%doc %{_datadir}/texlive/texmf-dist/doc/latex/yplan/
|
||||
|
||||
%changelog
|
||||
* Mon Mar 10 2025 mahailiang <mahailiang@uniontech.com> - 9:20210325-10
|
||||
- fix build error on sw_64 mips64el
|
||||
|
||||
* Wed Aug 21 2024 xu_ping <707078654@qq.com> - 9:20210325-9
|
||||
- License compliance rectification.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user