Revert "Fix xindy build by eliminating race to create latex.fmt."

This reverts commit b6f7cc9173.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
This commit is contained in:
David Abdurachmanov 2019-08-18 20:34:58 -07:00
parent a8cd0656e7
commit ec1c7576b8
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 25 additions and 52 deletions

View File

@ -15,6 +15,10 @@
# We do not want exec perms changing.
%global __brp_mangle_shebangs_exclude ^$
# Not ppc64, not s390x, not aarch64 due to lack of clisp
# code SIGSEGV's on armv7hl
%global xindy_arches empty
Name: %{shortname}-base
Version: %{source_date}
Release: 2.0.riscv64%{?dist}
@ -449,8 +453,10 @@ BuildRequires: gmp-devel mpfr-devel
# This is really for macros.
BuildRequires: python3-devel
# This is for xindy
%ifarch %{xindy_arches}
BuildRequires: clisp-devel
BuildRequires: texlive-cyrillic, texlive-latex, texlive-metafont, texlive-cm-super, texlive-ec
%endif
# Cleanup Provides/Obsoletes
# texlive-cjk-gs-integrate (depackaged 2018-03-09)
Provides: texlive-cjk-gs-integrate = %{epoch}:%{source_date}-%{release}
@ -6406,24 +6412,7 @@ XeTeX also eliminates the complex task of managing a TeX font installation.
XeTeX is now part of the standard TeX distribution TeXLive and works well with
TeX macro packages like LaTeX and ConTeXt.
%package -n %{shortname}-xindex
Provides: tex-xindex = %{epoch}:%{source_date}-%{release}
Provides: tex-xindex-bin = %{epoch}:%{source_date}-%{release}
Provides: texlive-xindex-bin = %{epoch}:%{source_date}-%{release}
License: LPPL 1.3
Summary: Unicode compatible index program for LaTeX
Requires: lua >= 5.3
Requires: texlive-base
Requires: texlive-kpathsea
Requires: texlive-luatex
Provides: tex(xindex.lua) = %{epoch}:%{source_date}-%{release}
Provides: tex(xindex.sty) = %{epoch}:%{source_date}-%{release}
# lua
BuildArch: noarch
%description -n %{shortname}-xindex
Unicode compatible index program for LaTeX.
%ifarch %{xindy_arches}
%package -n %{shortname}-xindy
Provides: tex-xindy = %{epoch}:%{source_date}-%{release}
Provides: tex-xindy-bin = %{epoch}:%{source_date}-%{release}
@ -6448,6 +6437,7 @@ Xindy can be used to process indexes for documents marked up
using (La)TeX, Nroff family and SGML-based languages. Xindy is
highly configurable, both in markup terms and in terms of the
collating order of the text being processed.
%endif
%package -n %{shortname}-xmltex
Provides: tex-xmltex = %{epoch}:%{source_date}-%{release}
@ -6541,17 +6531,6 @@ done
%global mysources %{lua: for index,value in ipairs(sources) do if index >= 16 then print(value.." ") end end}
%build
# Make texlive generate latex.fmt, so that multiple threads do not race to
# make it during the xindy build.
cat > dummy.tex << EOF
\documentclass{article}
\begin{document}
This is a document.
\end{document}
EOF
latex dummy.tex
rm -f dummy.*
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Werror=format-security"
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11 -fno-strict-aliasing -Werror=format-security"
# When redhat-rpm-config is updated in all stable targets, this conditional can go away
@ -6574,7 +6553,11 @@ cd work
%ifarch aarch64 %{mips} %{power64} s390 s390x riscv64
--disable-luajittex --disable-mfluajit \
%endif
%ifarch %{xindy_arches}
--enable-xindy --disable-xindy-docs --disable-xindy-make-rules \
%else
--disable-xindy --disable-xindy-docs --disable-xindy-make-rules \
%endif
--disable-rpath
# disable rpath
@ -6841,6 +6824,17 @@ cp -R %{buildroot}%{_texdir}/texmf-dist/doc/man %{buildroot}%{_datadir}/
find %{buildroot}%{_texdir}/texmf-dist/doc/man -type f | xargs rm -f
mv %{buildroot}%{_texdir}/texmf-dist/doc/info/* %{buildroot}%{_infodir}/
%ifarch %{xindy_arches}
# nothing to do here
%else
rm -rf %{buildroot}%{_mandir}/man1/xindy.1*
rm -rf %{buildroot}%{_mandir}/man1/texindy.1*
rm -rf %{buildroot}%{_mandir}/man1/tex2xindy.1*
rm -rf %{buildroot}%{_texdir}/texmf-dist/scripts/xindy
rm -rf %{buildroot}%{_texdir}/texmf-dist/xindy
rm -rf %{buildroot}%{_texdir}/texmf-dist/doc/xindy
%endif
# Remove cjk-gs-integrate files
# Yes, we probably should remove the source, but there is a possibility that we will
# re-add this subpackage at some point.
@ -8917,14 +8911,7 @@ done <<< "$list"
%{fmtutil_cnf_d}/xetex
%doc %{_texdir}/texmf-dist/doc/xetex/
%files -n %{shortname}-xindex
%license lppl1.3.txt
%{_bindir}/xindex
%{_texdir}/texmf-dist/scripts/xindex/
%{_texdir}/texmf-dist/tex/latex/xindex/
%{_texdir}/texmf-dist/tex/lualatex/xindex/
%doc %{_texdir}/texmf-dist/doc/lualatex/xindex/
%ifarch %{xindy_arches}
%files -n %{shortname}-xindy
%license gpl.txt
%{_bindir}/tex2xindy
@ -8937,6 +8924,7 @@ done <<< "$list"
%{_texdir}/texmf-dist/scripts/xindy/
%{_texdir}/texmf-dist/xindy/
%doc %{_texdir}/texmf-dist/doc/xindy/
%endif
%files -n %{shortname}-xmltex
%license lppl1.txt
@ -8957,21 +8945,6 @@ done <<< "$list"
* Sun Aug 18 2019 David Abdurachmanov <david.abdurachmanov@sifive.com> - 7:20190410-2.0.riscv64
- Add support for RISC-V (riscv64)
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7:20190410-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu May 23 2019 Tom Callaway <spot@fedoraproject.org> - 7:20190410-1
- update to 20190410
- update all component tarballs to latest available
- new subpackages: cluttex, ctanbib, dviout-util, pdftex-quiet, webquiz, xindex
- add a slightly neutered tlmgr back into texlive.infra because texconfig paper needs it
IF YOU ARE READING THIS PLEASE DO NOT USE tlmgr install/update. IF YOU IGNORE ME
PLEASE DO NOT FILE BUGS. PLEASE DO NOT REQUEST THE tlmgrgui BITS.
* Wed May 15 2019 Jerry James <loganjerry@gmail.com> - 7:20180414-36
- Fix xindy build by eliminating race to create latex.fmt
- Build xindy on all supported arches
* Tue Mar 19 2019 Tom Callaway <spot@fedoraproject.org> - 7:20180414-35
- do not throw no file error in synctex