Fix pdflatex run out of memory

This commit is contained in:
Than Ngo 2020-09-23 09:43:06 +02:00
parent 64ee65584f
commit 4e2d1fb28f
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up texlive-base-20200327/source/texk/kpathsea/texmf.cnf.me texlive-base-20200327/source/texk/kpathsea/texmf.cnf
--- texlive-base-20200327/source/texk/kpathsea/texmf.cnf.me 2020-09-23 09:35:26.729192291 +0200
+++ texlive-base-20200327/source/texk/kpathsea/texmf.cnf 2020-09-23 09:36:01.849651692 +0200
@@ -786,7 +786,7 @@ texmf_casefold_search = 1
% For some xy-pic samples, you may need as much as 700000 words of memory.
% For the vast majority of documents, 60000 or less will do.
%
-main_memory = 5000000 % words of inimemory available; also applies to inimf&mp
+main_memory = 6000000 % words of inimemory available; also applies to inimf&mp
extra_mem_top = 0 % extra high memory for chars, tokens, etc.
extra_mem_bot = 0 % extra low memory for boxes, glue, breakpoints, etc.

View File

@ -20,7 +20,7 @@
Name: %{shortname}-base Name: %{shortname}-base
Version: %{source_date} Version: %{source_date}
Release: 16%{?dist} Release: 17%{?dist}
Epoch: 7 Epoch: 7
Summary: TeX formatting system Summary: TeX formatting system
# The only files in the base package are directories, cache, and license texts # The only files in the base package are directories, cache, and license texts
@ -446,6 +446,8 @@ Patch23: texlive-20200327-poppler-0.84.patch
Patch28: texlive-base-20190410-CVE-2019-19601.patch Patch28: texlive-base-20190410-CVE-2019-19601.patch
# Fixes for poppler 0.90 (f33+) # Fixes for poppler 0.90 (f33+)
Patch29: texlive-20200327-poppler-0.90.patch Patch29: texlive-20200327-poppler-0.90.patch
# Fix pdflatex run out of memory
Patch30: texlive-base-20200327-out-of-memory.patch
# Can't do this because it causes everything else to be noarch # Can't do this because it causes everything else to be noarch
# BuildArch: noarch # BuildArch: noarch
@ -6546,6 +6548,7 @@ xz -dc %{SOURCE0} | tar x
%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9 %if 0%{?fedora} >= 33 || 0%{?rhel} >= 9
%patch29 -p1 -b .poppler090 %patch29 -p1 -b .poppler090
%endif %endif
%patch30 -p1 -b .out_of_memory
# Setup copies of the licenses # Setup copies of the licenses
for l in `unxz -c %{SOURCE3} | tar t`; do for l in `unxz -c %{SOURCE3} | tar t`; do
@ -9106,6 +9109,9 @@ done <<< "$list"
%doc %{_texdir}/texmf-dist/doc/latex/yplan/ %doc %{_texdir}/texmf-dist/doc/latex/yplan/
%changelog %changelog
* Wed Sep 23 2020 Than Ngo <than@redhat.com> - 7:20200327-17
- Fix pdflatex run out of memory
* Mon Sep 21 2020 Tom Callaway <spot@fedoraproject.org> - 7:20200327-16 * Mon Sep 21 2020 Tom Callaway <spot@fedoraproject.org> - 7:20200327-16
- move "mtxrun --generate" call from -kpathsea transfiletriggerin to -context - move "mtxrun --generate" call from -kpathsea transfiletriggerin to -context
- drop Requires(post): texlive-context from -kpathsea - drop Requires(post): texlive-context from -kpathsea