From ed52343074af88d70e638bc50c7c468bdb494cae Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Tue, 14 Jul 2020 13:23:46 -0400 Subject: [PATCH] bootstrap again --- texlive-20200327-poppler-0.90.patch | 20 ++++++++++++++++++++ texlive-base.spec | 10 +++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 texlive-20200327-poppler-0.90.patch diff --git a/texlive-20200327-poppler-0.90.patch b/texlive-20200327-poppler-0.90.patch new file mode 100644 index 0000000..e76b436 --- /dev/null +++ b/texlive-20200327-poppler-0.90.patch @@ -0,0 +1,20 @@ +diff -up texlive-base-20200327/source/texk/web2c/pdftexdir/pdftoepdf.cc.poppler090 texlive-base-20200327/source/texk/web2c/pdftexdir/pdftoepdf.cc +--- texlive-base-20200327/source/texk/web2c/pdftexdir/pdftoepdf.cc.poppler090 2020-07-14 13:13:31.620607263 -0400 ++++ texlive-base-20200327/source/texk/web2c/pdftexdir/pdftoepdf.cc 2020-07-14 13:16:01.530248309 -0400 +@@ -766,7 +766,7 @@ read_pdf_info(char *image_name, char *pa + if (page_name) { + // get page by name + GString name(page_name); +- LinkDest *link = pdf_doc->doc->findDest(&name); ++ std::unique_ptr link = pdf_doc->doc->findDest(&name); + if (link == 0 || !link->isOk()) + pdftex_fail("PDF inclusion: invalid destination <%s>", page_name); + Ref ref = link->getPageRef(); +@@ -774,7 +774,6 @@ read_pdf_info(char *image_name, char *pa + if (page_num == 0) + pdftex_fail("PDF inclusion: destination is not a page <%s>", + page_name); +- delete link; + } else { + // get page by number + if (page_num <= 0 || page_num > epdf_num_pages) diff --git a/texlive-base.spec b/texlive-base.spec index 9dea48c..9b78113 100644 --- a/texlive-base.spec +++ b/texlive-base.spec @@ -20,7 +20,7 @@ Name: %{shortname}-base Version: %{source_date} -Release: 8%{?dist} +Release: 9%{?dist} Epoch: 7 Summary: TeX formatting system # The only files in the base package are directories, cache, and license texts @@ -444,6 +444,8 @@ Patch21: texlive-20190410-tlmgr-ignore-warning.patch Patch23: texlive-20200327-poppler-0.84.patch # bz#1798119, buffer overflow, CVE-2019-19601 Patch28: texlive-base-20190410-CVE-2019-19601.patch +# Fixes for poppler 0.90 (f33+) +Patch29: texlive-20200327-poppler-0.90.patch # Can't do this because it causes everything else to be noarch # BuildArch: noarch @@ -6537,6 +6539,9 @@ xz -dc %{SOURCE0} | tar x %patch23 -p1 -b .poppler-0.84 %endif %patch28 -p1 -b .CVE-2019-19601 +%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9 +%patch29 -p1 -b .poppler090 +%endif # Setup copies of the licenses for l in `unxz -c %{SOURCE3} | tar t`; do @@ -9096,6 +9101,9 @@ done <<< "$list" %doc %{_texdir}/texmf-dist/doc/latex/yplan/ %changelog +* Tue Jul 14 2020 Tom Callaway - 7:20200327-9 +- bootstrap again + * Tue Jul 14 2020 Tom Callaway - 7:20200327-8 - rebuild for poppler 0.90.0 - bootstrap on