This commit is contained in:
jackie_wu123 2020-01-20 20:05:44 +08:00
parent 12a5e92106
commit fa3f807f46
2 changed files with 18 additions and 5 deletions

View File

@ -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

12
tl-kpfix.patch Normal file
View File

@ -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));