Skip to content
Browse files

Add patch from Gentoo Linux to fix build with Perl 5.16.

  • Loading branch information...
1 parent d5ffffa commit f22910942b9ef575e0ad4b150fa3cb17974752e5 tron committed Oct 4, 2012
Showing with 37 additions and 1 deletion.
  1. +2 −1 textproc/openjade/distinfo
  2. +35 −0 textproc/openjade/patches/patch-msggen.pl
View
3 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
View
35 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");

0 comments on commit f229109

Please sign in to comment.
Something went wrong with that request. Please try again.