Tue Nov 23 13:53:54 2010 UTC ()
Add small patch which fixes problem with p5-gettext described in

http://rt.cpan.org/Public/Bug/Display.html?id=35680


(haad)
diff -r1.20 -r1.21 pkgsrc/devel/p5-gettext/Makefile
diff -r1.4 -r1.5 pkgsrc/devel/p5-gettext/distinfo
diff -r0 -r1.1 pkgsrc/devel/p5-gettext/patches/patch-aa

cvs diff -r1.20 -r1.21 pkgsrc/devel/p5-gettext/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/p5-gettext/Makefile 2010/08/21 16:34:46 1.20
+++ pkgsrc/devel/p5-gettext/Makefile 2010/11/23 13:53:53 1.21
@@ -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
4DISTNAME= gettext-1.05 4DISTNAME= gettext-1.05
5PKGNAME= p5-${DISTNAME} 5PKGNAME= p5-${DISTNAME}
6PKGREVISION= 4 6PKGREVISION= 5
7SVR4_PKGNAME= p5gtx 7SVR4_PKGNAME= p5gtx
8CATEGORIES= devel perl5 8CATEGORIES= devel perl5
9MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Locale/} 9MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Locale/}
10 10
11MAINTAINER= pkgsrc-users@NetBSD.org 11MAINTAINER= pkgsrc-users@NetBSD.org
12HOMEPAGE= http://search.cpan.org/dist/gettext/ 12HOMEPAGE= http://search.cpan.org/dist/gettext/
13COMMENT= Perl5 module interface to C I18N functions 13COMMENT= Perl5 module interface to C I18N functions
14 14
15PKG_DESTDIR_SUPPORT= user-destdir 15PKG_DESTDIR_SUPPORT= user-destdir
16PKG_INSTALLATION_TYPES= overwrite pkgviews 16PKG_INSTALLATION_TYPES= overwrite pkgviews
17 17
18USE_LANGUAGES= c 18USE_LANGUAGES= c
19PERL5_PACKLIST= auto/Locale/gettext/.packlist 19PERL5_PACKLIST= auto/Locale/gettext/.packlist

cvs diff -r1.4 -r1.5 pkgsrc/devel/p5-gettext/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/p5-gettext/distinfo 2005/10/25 13:23:52 1.4
+++ pkgsrc/devel/p5-gettext/distinfo 2010/11/23 13:53:53 1.5
@@ -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
3SHA1 (gettext-1.05.tar.gz) = 705f519ad61b4a8c522d8aaf98425e0bd21709f2 3SHA1 (gettext-1.05.tar.gz) = 705f519ad61b4a8c522d8aaf98425e0bd21709f2
4RMD160 (gettext-1.05.tar.gz) = 767adfce05b8fe77ddd7d3814951822746cf6e4b 4RMD160 (gettext-1.05.tar.gz) = 767adfce05b8fe77ddd7d3814951822746cf6e4b
5Size (gettext-1.05.tar.gz) = 7693 bytes 5Size (gettext-1.05.tar.gz) = 7693 bytes
 6SHA1 (patch-aa) = 70b38ba8d332f42e2097c8b58b408ca023387247

File Added: pkgsrc/devel/p5-gettext/patches/Attic/patch-aa
$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;