From fa3f807f464cc14354a1495b242fc2579b401a7b Mon Sep 17 00:00:00 2001 From: jackie_wu123 Date: Mon, 20 Jan 2020 20:05:44 +0800 Subject: [PATCH 1/2] bugfix --- texlive-base.spec | 11 ++++++----- tl-kpfix.patch | 12 ++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 tl-kpfix.patch diff --git a/texlive-base.spec b/texlive-base.spec index b077d83..cb409e6 100644 --- a/texlive-base.spec +++ b/texlive-base.spec @@ -374,11 +374,12 @@ Source361: http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2018/t Source362: http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2018/tlnet-final/archive/xmltex.tar.xz Source363: http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2018/tlnet-final/archive/yplan.doc.tar.xz Source364: http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2018/tlnet-final/archive/yplan.tar.xz -Patch0001: tl-format.patch -Patch0002: texlive-20180414-new-poppler.patch -Patch0003: texlive-20180414-poppler-0.64.patch -Patch0004: texlive-20180414-synctex-version.patch -Patch0005: texlive-base-CVE-2018-17407.patch +Patch0001: tl-kpfix.patch +Patch0002: tl-format.patch +Patch0003: texlive-20180414-new-poppler.patch +Patch0004: texlive-20180414-poppler-0.64.patch +Patch0005: texlive-20180414-synctex-version.patch +Patch0006: texlive-base-CVE-2018-17407.patch BuildRequires: xz libXaw-devel libXi-devel ncurses-devel bison flex file perl(Digest::MD5) texinfo gcc-c++ BuildRequires: gd-devel freetype-devel libpng-devel zlib-devel poppler-devel diff --git a/tl-kpfix.patch b/tl-kpfix.patch new file mode 100644 index 0000000..7f09444 --- /dev/null +++ b/tl-kpfix.patch @@ -0,0 +1,12 @@ +diff -up texlive-2013/a/texlive-20180414-source/texk/kpathsea/progname.c.kpfix texlive-2013/a/texlive-20180414-source/texk/kpathsea/progname.c +--- a/texlive-20180414-source/texk/kpathsea/progname.c.kpfix 2013-08-12 09:28:14.422522624 +0200 ++++ a/texlive-20180414-source/texk/kpathsea/progname.c 2013-08-12 12:16:02.958132658 +0200 +@@ -668,7 +668,7 @@ kpathsea_set_program_name (kpathsea kpse + kpathsea_xputenv (kpse, "SELFAUTOLOC", fix_selfdir (sdir)); + sdir_parent = xdirname (sdir); + kpathsea_xputenv (kpse, "SELFAUTODIR", fix_selfdir (sdir_parent)); +- sdir_grandparent = xdirname (sdir_parent); ++ sdir_grandparent = strdup("/usr/share/texlive"); + kpathsea_xputenv (kpse, "SELFAUTOPARENT", fix_selfdir (sdir_grandparent)); + sdir_greatgrandparent = xdirname (sdir_grandparent); + kpathsea_xputenv (kpse, "SELFAUTOGRANDPARENT", fix_selfdir (sdir_greatgrandparent)); -- Gitee From 833a4ddd4470b3af3d70a33e5bf89ac0b08dcce0 Mon Sep 17 00:00:00 2001 From: jackie_wu123 Date: Mon, 20 Jan 2020 20:20:51 +0800 Subject: [PATCH 2/2] changelog --- texlive-base.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/texlive-base.spec b/texlive-base.spec index cb409e6..3211cf9 100644 --- a/texlive-base.spec +++ b/texlive-base.spec @@ -4,7 +4,7 @@ Name: texlive-base Version: 20180414 -Release: 27 +Release: 28 Epoch: 7 Summary: TeX formatting system License: ASL 2.0 and Artistic 2.0 and BSD and GFDL and GPL+ and GPLv2 and GPLv3 and Knuth and LGPLv2+ and LGPLv3+ and LPPL and OFL and Public Domain @@ -8095,6 +8095,12 @@ done <<< "$list" %doc %{_datadir}/texlive/texmf-dist/doc/latex/yplan/ %changelog +* Mon Jan 20 2020 wutao - 20180414-28 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: modify spec + * Sun Jan 19 2020 wutao - 20180414-27 - Type:bugfix - ID:NA -- Gitee