Add small patch which fixes problem with p5-gettext described in http://rt.cpan.org/Public/Bug/Display.html?id=35680diff -r1.20 -r1.21 pkgsrc/devel/p5-gettext/Makefile
(haad)
@@ -1,19 +1,19 @@ | @@ -1,19 +1,19 @@ | |||
1 | # $NetBSD: Makefile,v 1.20 2010/08/21 16:34:46 seb Exp $ | 1 | # $NetBSD: Makefile,v 1.21 2010/11/23 13:53:53 haad Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= gettext-1.05 | 4 | DISTNAME= gettext-1.05 | |
5 | PKGNAME= p5-${DISTNAME} | 5 | PKGNAME= p5-${DISTNAME} | |
6 | PKGREVISION= 4 | 6 | PKGREVISION= 5 | |
7 | SVR4_PKGNAME= p5gtx | 7 | SVR4_PKGNAME= p5gtx | |
8 | CATEGORIES= devel perl5 | 8 | CATEGORIES= devel perl5 | |
9 | MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Locale/} | 9 | MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Locale/} | |
10 | 10 | |||
11 | MAINTAINER= pkgsrc-users@NetBSD.org | 11 | MAINTAINER= pkgsrc-users@NetBSD.org | |
12 | HOMEPAGE= http://search.cpan.org/dist/gettext/ | 12 | HOMEPAGE= http://search.cpan.org/dist/gettext/ | |
13 | COMMENT= Perl5 module interface to C I18N functions | 13 | COMMENT= Perl5 module interface to C I18N functions | |
14 | 14 | |||
15 | PKG_DESTDIR_SUPPORT= user-destdir | 15 | PKG_DESTDIR_SUPPORT= user-destdir | |
16 | PKG_INSTALLATION_TYPES= overwrite pkgviews | 16 | PKG_INSTALLATION_TYPES= overwrite pkgviews | |
17 | 17 | |||
18 | USE_LANGUAGES= c | 18 | USE_LANGUAGES= c | |
19 | PERL5_PACKLIST= auto/Locale/gettext/.packlist | 19 | PERL5_PACKLIST= auto/Locale/gettext/.packlist |
@@ -1,5 +1,6 @@ | @@ -1,5 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.4 2005/10/25 13:23:52 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.5 2010/11/23 13:53:53 haad Exp $ | |
2 | 2 | |||
3 | SHA1 (gettext-1.05.tar.gz) = 705f519ad61b4a8c522d8aaf98425e0bd21709f2 | 3 | SHA1 (gettext-1.05.tar.gz) = 705f519ad61b4a8c522d8aaf98425e0bd21709f2 | |
4 | RMD160 (gettext-1.05.tar.gz) = 767adfce05b8fe77ddd7d3814951822746cf6e4b | 4 | RMD160 (gettext-1.05.tar.gz) = 767adfce05b8fe77ddd7d3814951822746cf6e4b | |
5 | Size (gettext-1.05.tar.gz) = 7693 bytes | 5 | Size (gettext-1.05.tar.gz) = 7693 bytes | |
6 | SHA1 (patch-aa) = 70b38ba8d332f42e2097c8b58b408ca023387247 |
$NetBSD: patch-aa,v 1.1 2010/11/23 13:53:54 haad Exp $
Fix problem with gettext definition of LC_* variables. See
code below as example of warning.
perl -MLocale::gettext -MPOSIX -e ''
Prototype mismatch: sub main::LC_ALL: none vs () at -e line 0
Prototype mismatch: sub main::LC_NUMERIC: none vs () at -e line 0
Prototype mismatch: sub main::LC_TIME: none vs () at -e line 0
Prototype mismatch: sub main::LC_MONETARY: none vs () at -e line 0
Prototype mismatch: sub main::LC_CTYPE: none vs () at -e line 0
Prototype mismatch: sub main::LC_MESSAGES: none vs () at -e line 0
Prototype mismatch: sub main::LC_COLLATE: none vs () at -e line 0
Prblem fixed with patch from
http://rt.cpan.org/Public/Bug/Display.html?id=35680
--- gettext.pm.orig 2005-06-01 03:11:16.000000000 +0000
+++ gettext.pm
@@ -32,6 +32,7 @@ to internationalize software.
=cut
use Carp;
+use POSIX qw(:locale_h);
require Exporter;
require DynaLoader;