aballier 17/01/20 13:36:23
Added: 010_all_installedscripts.patch
020_all_a2ping_invocation.patch
030_all_updmap_normalize.patch
040_all_remove_define_abs.patch
050_all_latex2man_predictable_tmp.patch series
Log:
start adding texlive 2016 patches
Revision Changes Path
1.1
src/patchsets/texlive/2016/texlive-core/010_all_installedscripts.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2016/texlive-core/010_all_installedscripts.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2016/texlive-core/010_all_installedscripts.patch?rev=1.1&content-type=text/plain
Index: 010_all_installedscripts.patch
===================================================================
Index: texlive-20160523-source/texk/texlive/tl_scripts/Makefile.in
===================================================================
--- texlive-20160523-source.orig/texk/texlive/tl_scripts/Makefile.in
+++ texlive-20160523-source/texk/texlive/tl_scripts/Makefile.in
@@ -262,13 +262,8 @@ sh_scripts = \
allneeded \
dvi2fax \
dvired \
- fontinst \
kpsetool \
kpsewhere \
- ps2frag \
- pslatex \
- rubibtex \
- rumakeindex \
texconfig-dialog \
texconfig-sys \
texconfig \
@@ -292,13 +287,8 @@ dist_man_MANS = \
e2pall.1 \
fmtutil.1 \
fmtutil.cnf.5 \
- fontinst.1 \
kpsetool.1 \
kpsewhere.1 \
- ps2frag.1 \
- pslatex.1 \
- rubibtex.1 \
- rumakeindex.1 \
texconfig.1 \
texlinks.1 \
updmap.1 \
Index: texlive-20160523-source/texk/texlive/linked_scripts/Makefile.in
===================================================================
--- texlive-20160523-source.orig/texk/texlive/linked_scripts/Makefile.in
+++ texlive-20160523-source/texk/texlive/linked_scripts/Makefile.in
@@ -268,124 +268,46 @@ EXTRA_DIST = scripts.lst context/stubs/u
texmf_scriptsdir = $(datarootdir)/texmf-dist/scripts
texmf_shell_scripts = \
adhocfilelist/adhocfilelist.sh \
- bibexport/bibexport.sh \
checklistings/checklistings.sh \
dtxgen/dtxgen \
installfont/installfont-tl \
latexfileversion/latexfileversion \
- listbib/listbib \
listings-ext/listings-ext.sh \
ltxfileinfo/ltxfileinfo \
- lua2dox/lua2dox_filter \
pdfbook2/pdfbook2 \
- pdfjam/pdf180 \
- pdfjam/pdf270 \
- pdfjam/pdf90 \
- pdfjam/pdfbook \
- pdfjam/pdfflip \
- pdfjam/pdfjam \
- pdfjam/pdfjam-pocketmod \
- pdfjam/pdfjam-slides3up \
- pdfjam/pdfjam-slides6up \
- pdfjam/pdfjoin \
- pdfjam/pdfnup \
- pdfjam/pdfpun \
pdfxup/pdfxup \
- pst-pdf/ps4pdf \
- simpdftex/simpdftex \
typeoutfileinfo/typeoutfileinfo.sh
texmf_other_scripts = \
a2ping/a2ping.pl \
- accfonts/mkt1font \
- accfonts/vpl2ovp \
- accfonts/vpl2vpl \
- arara/arara.sh \
- authorindex/authorindex \
bundledoc/arlatex \
bundledoc/bundledoc \
- cachepic/cachepic.tlu \
- checkcites/checkcites.lua \
- cjk-gs-integrate/cjk-gs-integrate.pl \
- context/perl/mptopdf.pl \
- convbkmk/convbkmk.rb \
- crossrefware/bibdoiadd.pl \
- crossrefware/bibzbladd.pl \
- crossrefware/ltx2crossrefxml.pl \
ctanify/ctanify \
ctanupload/ctanupload.pl \
de-macro/de-macro \
diadia/diadia.lua \
- dosepsbin/dosepsbin.pl \
dviasm/dviasm.py \
- ebong/ebong.py \
- epspdf/epspdf.tlu \
- epspdf/epspdftk.tcl \
- epstopdf/epstopdf.pl \
- exceltex/exceltex \
- fig4latex/fig4latex \
findhyph/findhyph \
- fontools/afm2afm \
- fontools/autoinst \
- fontools/ot2kpx \
fragmaster/fragmaster.pl \
- getmap/getmapdl.lua \
- glossaries/makeglossaries \
glossaries/makeglossaries-lite.lua \
- jfontmaps/kanji-config-updmap-sys.sh \
- jfontmaps/kanji-config-updmap.pl \
- jfontmaps/kanji-fontmap-creator.pl \
- kotex-utils/jamo-normalize.pl \
- kotex-utils/komkindex.pl \
- kotex-utils/ttf2kotexfont.pl \
latex-git-log/latex-git-log \
latex2man/latex2man \
- latexdiff/latexdiff-vc.pl \
- latexdiff/latexdiff.pl \
- latexdiff/latexrevise.pl \
latexindent/latexindent.pl \
- latexmk/latexmk.pl \
latexpand/latexpand \
- lilyglyphs/lily-glyph-commands.py \
- lilyglyphs/lily-image-commands.py \
- lilyglyphs/lily-rebuild-pdfs.py \
ltximg/ltximg.pl \
- luaotfload/luaotfload-tool.lua \
- m-tx/m-tx.lua \
makedtx/makedtx.pl \
make4ht/make4ht \
match_parens/match_parens \
- mathspic/mathspic.pl \
- mf2pt1/mf2pt1.pl \
- mkgrkindex/mkgrkindex \
mkjobtexmf/mkjobtexmf.pl \
- mkpic/mkpic \
- multibibliography/multibibliography.pl \
- musixtex/musixflx.lua \
- musixtex/musixtex.lua \
- oberdiek/pdfatfi.pl \
- pax/pdfannotextractor.pl \
pdfcrop/pdfcrop.pl \
- pedigree-perl/pedigree.pl \
- perltex/perltex.pl \
petri-nets/pn2pdf \
pfarrei/a5toa4.tlu \
pfarrei/pfarrei.tlu \
pkfix-helper/pkfix-helper \
pkfix/pkfix.pl \
- pmx/pmx2pdf.lua \
- pmxchords/pmxchords.lua \
- pst2pdf/pst2pdf.pl \
- ptex2pdf/ptex2pdf.lua \
purifyeps/purifyeps \
- pygmentex/pygmentex.py \
- pythontex/depythontex.py \
- pythontex/pythontex.py \
- rubik/rubikrotation.pl \
- splitindex/splitindex.pl \
srcredact/srcredact.pl \
sty2dtx/sty2dtx.pl \
- svn-multi/svn-multi.pl \
tex4ebook/tex4ebook \
texcount/texcount.pl \
texdef/texdef.pl \
@@ -395,26 +317,13 @@ texmf_other_scripts = \
texfot/texfot.pl \
texlive/fmtutil-sys.sh \
texlive/fmtutil.pl \
- texlive/rungs.tlu \
texlive/tlmgr.pl \
texlive/updmap-sys.sh \
texlive/updmap.pl \
texliveonfly/texliveonfly.py \
- texloganalyser/texloganalyser \
- thumbpdf/thumbpdf.pl \
- ulqda/ulqda.pl \
- urlbst/urlbst \
- vpe/vpe.pl \
- yplan/yplan
+ texloganalyser/texloganalyser
-texmf_context_scripts = \
- context/stubs/unix/context \
- context/stubs/unix/contextjit \
- context/stubs/unix/luatools \
- context/stubs/unix/mtxrun \
- context/stubs/unix/mtxrunjit \
- context/stubs/unix/texexec \
- context/stubs/unix/texmfstart
+texmf_context_scripts =
nobase_dist_texmf_scripts_SCRIPTS = \
$(texmf_shell_scripts) \
@@ -422,7 +331,6 @@ nobase_dist_texmf_scripts_SCRIPTS = \
$(texmf_context_scripts)
bin_links = \
- epstopdf:repstopdf \
pdfcrop:rpdfcrop
relpath = $(SHELL) $(top_srcdir)/../../build-aux/relpath
1.1
src/patchsets/texlive/2016/texlive-core/020_all_a2ping_invocation.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2016/texlive-core/020_all_a2ping_invocation.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2016/texlive-core/020_all_a2ping_invocation.patch?rev=1.1&content-type=text/plain
Index: 020_all_a2ping_invocation.patch
===================================================================
Index: texlive-20160523-source/texk/texlive/linked_scripts/a2ping/a2ping.pl
===================================================================
--- texlive-20160523-source.orig/texk/texlive/linked_scripts/a2ping/a2ping.pl
+++ texlive-20160523-source/texk/texlive/linked_scripts/a2ping/a2ping.pl
@@ -1,9 +1,5 @@
-#! /bin/sh
-eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \
-;exec perl -x -S -- "$0" ${1+"$@"};#'if 0;
-eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+
-#!perl -w
-package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if
!1;
+#! /usr/bin/perl -w
+package Htex::a2ping;
# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003.
# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib
#
Index: texlive-20160523-source/texmf-dist/scripts/a2ping/a2ping.pl
===================================================================
--- texlive-20160523-source.orig/texmf-dist/scripts/a2ping/a2ping.pl
+++ texlive-20160523-source/texmf-dist/scripts/a2ping/a2ping.pl
@@ -1,9 +1,5 @@
-#! /bin/sh
-eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \
-;exec perl -x -S -- "$0" ${1+"$@"};#'if 0;
-eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+
-#!perl -w
-package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if
!1;
+#! /usr/bin/perl -w
+package Htex::a2ping;
# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003.
# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib
#
1.1
src/patchsets/texlive/2016/texlive-core/030_all_updmap_normalize.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2016/texlive-core/030_all_updmap_normalize.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2016/texlive-core/030_all_updmap_normalize.patch?rev=1.1&content-type=text/plain
Index: 030_all_updmap_normalize.patch
===================================================================
https://bugs.gentoo.org/show_bug.cgi?id=428350
Normalize the path here too otherwise it may fail.
Index: texlive-20160523-source/texmf-dist/scripts/texlive/updmap.pl
===================================================================
--- texlive-20160523-source.orig/texmf-dist/scripts/texlive/updmap.pl
+++ texlive-20160523-source/texmf-dist/scripts/texlive/updmap.pl
@@ -1483,7 +1483,7 @@ sub setOptions {
sub enable_disable_maps {
my (@what) = @_;
- my $tc = $alldata->{'changes_config'};
+ my $tc = Cwd::abs_path($alldata->{'changes_config'});
die "$prg: top config file $tc has not been read."
if (!defined($alldata->{'updmap'}{$tc}));
1.1
src/patchsets/texlive/2016/texlive-core/040_all_remove_define_abs.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2016/texlive-core/040_all_remove_define_abs.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2016/texlive-core/040_all_remove_define_abs.patch?rev=1.1&content-type=text/plain
Index: 040_all_remove_define_abs.patch
===================================================================
utils/pmx/pmx-2.7.0/libf2c/f2c.h: remove unnecesary macro for abs()
On POSIX systems, abs() is a function provided by your C Standard library,
so we don't need to define it as a macro. It is dangerous to do so because
if f2c.h is included before stdlib.h, then then macro breaks the function
prototype.
See
https://bugs.gentoo.org/show_bug.cgi?id=510770
Signed-off-by: Felix Janda <[email protected]>
Signed-off-by: Anthony G. Basile <[email protected]>
Index: texlive-20160523-source/utils/pmx/pmx-src/libf2c/f2c.h
===================================================================
--- texlive-20160523-source.orig/utils/pmx/pmx-src/libf2c/f2c.h
+++ texlive-20160523-source/utils/pmx/pmx-src/libf2c/f2c.h
@@ -162,8 +162,8 @@ struct Namelist {
};
typedef struct Namelist Namelist;
-#define abs(x) ((x) >= 0 ? (x) : -(x))
-#define dabs(x) (doublereal)abs(x)
+extern int abs(int x);
+#define dabs(x) ((doublereal)((x) >= 0 ? (x) : -(x)))
#undef min
#undef max
#define min(a,b) ((a) <= (b) ? (a) : (b))
1.1
src/patchsets/texlive/2016/texlive-core/050_all_latex2man_predictable_tmp.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2016/texlive-core/050_all_latex2man_predictable_tmp.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2016/texlive-core/050_all_latex2man_predictable_tmp.patch?rev=1.1&content-type=text/plain
Index: 050_all_latex2man_predictable_tmp.patch
===================================================================
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668779
https://bugs.gentoo.org/show_bug.cgi?id=432144
CVE-2012-2120 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2012-2120)
Index: texlive-20160523-source/texmf-dist/scripts/latex2man/latex2man
===================================================================
--- texlive-20160523-source.orig/texmf-dist/scripts/latex2man/latex2man
+++ texlive-20160523-source/texmf-dist/scripts/latex2man/latex2man
@@ -29,8 +29,6 @@ sub date2str;
$VERSION = "1.24";
$DATE = date2str ('$Date: 2017/01/20 13:36:23 $' =~ m|(\d+/\d+/\d+)|);
-$tmp = "/tmp/$CMD.$$";
-
##################################################################
# check option and arguments
##################################################################
@@ -124,6 +122,8 @@ $SrcFile = $ARGV[0];
$DestFile = $ARGV[1];
open (SRC, "<$SrcFile") || die "$CMD: Can't open file \`$SrcFile' for
reading.\n";
if ($opt_H || $opt_T) {
+ $tmp = `mktemp` || die;
+ chomp $tmp;
# DestFile will be written in the postprocess
open (DEST, ">$tmp") || die "$CMD: Can't open file \`$tmp' for
writing.\n";
} else {
1.1 src/patchsets/texlive/2016/texlive-core/series
file :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2016/texlive-core/series?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2016/texlive-core/series?rev=1.1&content-type=text/plain
Index: series
===================================================================
010_all_installedscripts.patch
020_all_a2ping_invocation.patch
030_all_updmap_normalize.patch
040_all_remove_define_abs.patch
050_all_latex2man_predictable_tmp.patch