diff options
author | tron <tron> | 2012-10-04 20:59:24 +0000 |
---|---|---|
committer | tron <tron> | 2012-10-04 20:59:24 +0000 |
commit | aea2db573c0483f05e8703e79ad8900095786dcf (patch) | |
tree | 3d77ffb52fe349e561153c1040c121fd60e470e6 /textproc | |
parent | c6d1e6e4e74b2950b931a4d70332775c2dfd15a9 (diff) | |
download | pkgsrc-aea2db573c0483f05e8703e79ad8900095786dcf.tar.gz |
Add patch from Gentoo Linux to fix build with Perl 5.16.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/openjade/distinfo | 3 | ||||
-rw-r--r-- | textproc/openjade/patches/patch-msggen.pl | 35 |
2 files changed, 37 insertions, 1 deletions
diff --git a/textproc/openjade/distinfo b/textproc/openjade/distinfo index 4003037f43d..969b10cd39b 100644 --- a/textproc/openjade/distinfo +++ b/textproc/openjade/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.12 2012/08/06 16:51:50 jperkin Exp $ +$NetBSD: distinfo,v 1.13 2012/10/04 20:59:24 tron Exp $ SHA1 (openjade-1.3.2.tar.gz) = 54e1999f41450fbd62c5d466002d79d3efca2321 RMD160 (openjade-1.3.2.tar.gz) = 3b12f6596a42c49a60cc07cd9b8f4c5fdf3bafd2 @@ -11,4 +11,5 @@ SHA1 (patch-ae) = b67fde4062691b2d953cb4cb5b4ebd2428c3c285 SHA1 (patch-af) = 1e0db04b5b85ad3b71066e55f94bf3144d69efe5 SHA1 (patch-jade_TeXFOTBuilder.cxx) = 037953d73d896afae7531e313821224ccd1e30e4 SHA1 (patch-jade_TransformFOTBuilder.cxx) = cf4c51f05f95e31111a7e48d7984397ba4850e7d +SHA1 (patch-msggen.pl) = d55befeb6f859c9c3330c2083fce5d5281a496ef SHA1 (patch-style_primitive.cxx) = a7f3328c436c9a73805cdd1abb4321f156b94c6e diff --git a/textproc/openjade/patches/patch-msggen.pl b/textproc/openjade/patches/patch-msggen.pl new file mode 100644 index 00000000000..160f6648b2a --- /dev/null +++ b/textproc/openjade/patches/patch-msggen.pl @@ -0,0 +1,35 @@ +$NetBSD: patch-msggen.pl,v 1.1 2012/10/04 20:59:24 tron Exp $ + +Fix build problem with Perl 5.16. Patch taken from Gentoo Linux: + +https://bugs.gentoo.org/show_bug.cgi?id=420083 + +--- msggen.pl.orig 2002-10-20 22:47:23.000000000 +0100 ++++ msggen.pl 2012-10-04 21:50:57.000000000 +0100 +@@ -4,6 +4,7 @@ + # See the file COPYING for copying permission. + + use POSIX; ++use Getopt::Std; + + # Package and version. + $package = 'openjade'; +@@ -18,8 +19,7 @@ + undef $opt_l; + undef $opt_p; + undef $opt_t; +-do 'getopts.pl'; +-&Getopts('l:p:t:'); ++getopts('l:p:t:'); + $module = $opt_l; + $pot_file = $opt_p; + +@@ -72,7 +72,7 @@ + else { + $field[0] =~ /^[IWQXE][0-9]$/ || &error("invalid first field");; + $type[$num] = substr($field[0], 0, 1); +- $argc = int(substr($field[0], 1, 1)); ++ $argc = substr($field[0], 1, 1); + } + $nargs[$num] = $argc; + $field[1] =~ /^[a-zA-Z_][a-zA-Z0-9_]+$/ || &error("invalid tag"); |