From fa3f807f464cc14354a1495b242fc2579b401a7b Mon Sep 17 00:00:00 2001 From: jackie_wu123 Date: Mon, 20 Jan 2020 20:05:44 +0800 Subject: [PATCH] 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