From 8600bd8bf39b42c54db4ee3566f3e3168a0aee5e Mon Sep 17 00:00:00 2001 From: David Woodfall Date: Mon, 11 Nov 2013 13:46:07 -0600 Subject: office/texlive: Patched to fix texcount.pl Signed-off-by: Robby Workman --- office/texlive/patches/texcount-scalar-fixup.diff | 11 +++++++++++ office/texlive/texlive.SlackBuild | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 office/texlive/patches/texcount-scalar-fixup.diff (limited to 'office/texlive') diff --git a/office/texlive/patches/texcount-scalar-fixup.diff b/office/texlive/patches/texcount-scalar-fixup.diff new file mode 100644 index 000000000000..bdd166b81a5c --- /dev/null +++ b/office/texlive/patches/texcount-scalar-fixup.diff @@ -0,0 +1,11 @@ +--- share/texmf-dist/scripts/texcount/texcount.pl.orig 2013-11-11 18:16:18.388313783 +0000 ++++ share/texmf-dist/scripts/texcount/texcount.pl 2013-11-11 18:16:32.407314117 +0000 +@@ -2218,7 +2218,7 @@ + } + $template=~s/\{VER\}/$versionnumber/gi; + # TODO: Should base warnings and errors on TeXcode or Main object +- $template=__process_template($template,"W|WARN|WARNING|WARNINGS",length(%warnings)); ++ $template=__process_template($template,"W|WARN|WARNING|WARNINGS",scalar(keys %warnings)); + $template=__process_template($template,"E|ERR|ERROR|ERRORS",$errorcount); + $template=__process_template($template,"S|SUM",get_sum_count($count)); + $template=__process_template($template,"T|TITLE",$count->{'title'}||""); diff --git a/office/texlive/texlive.SlackBuild b/office/texlive/texlive.SlackBuild index 69d2109f9b24..c566daff0df2 100644 --- a/office/texlive/texlive.SlackBuild +++ b/office/texlive/texlive.SlackBuild @@ -164,6 +164,9 @@ find . \ # Fix up some paths patch -p1 < $CWD/patches/texmf-fixup_texmf-local_tree_in_texmf_cnf.diff +# Thanks to David Woodfall for this patch +patch -p1 < $CWD/patches/texcount-scalar-fixup.diff + # Move manual pages to the correct place # There's some duplicates of stuff that's already present in /usr/man # from the texlive source we just compiled above, but I'm going to -- cgit v1.2.3