Date: Mon, 4 Jul 2011 16:12:00 GMT From: Sergey Kandaurov <pluknet@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/158642: [patch] devel/p5-Locale-gettext: LC_* dub/conflict with from POSIX.pm Message-ID: <201107041612.p64GC0JR057946@red.freebsd.org> Resent-Message-ID: <201107041620.p64GK9El028312@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 158642 >Category: ports >Synopsis: [patch] devel/p5-Locale-gettext: LC_* dub/conflict with from POSIX.pm >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 04 16:20:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Sergey Kandaurov >Release: 8.1-RELEASE >Organization: >Environment: perl-5.10.1_3 p5-Locale-gettext-1.05_3 gettext-0.18.1.1 >Description: Please see the reports for full details: o https://rt.cpan.org/Public/Bug/Display.html?id=35680 o https://trac.macports.org/ticket/28318 >How-To-Repeat: use POSIX qw(:locale_h); use Locale::gettext; $ perl -cw loc.pl Constant subroutine main::LC_CTYPE redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at loc.pl line 5 Prototype mismatch: sub main::LC_CTYPE () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at loc.pl line 5 Constant subroutine main::LC_NUMERIC redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at loc.pl line 5 Prototype mismatch: sub main::LC_NUMERIC () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at loc.pl line 5 Constant subroutine main::LC_TIME redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at loc.pl line 5 Prototype mismatch: sub main::LC_TIME () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at loc.pl line 5 Constant subroutine main::LC_COLLATE redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at loc.pl line 5 Prototype mismatch: sub main::LC_COLLATE () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at loc.pl line 5 Constant subroutine main::LC_MONETARY redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at loc.pl line 5 Prototype mismatch: sub main::LC_MONETARY () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at loc.pl line 5 Constant subroutine main::LC_MESSAGES redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at loc.pl line 5 Prototype mismatch: sub main::LC_MESSAGES () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at loc.pl line 5 Constant subroutine main::LC_ALL redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at loc.pl line 5 Prototype mismatch: sub main::LC_ALL () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at loc.pl line 5 loc.pl syntax OK >Fix: Same as in cpan RT: let Locale::gettext re-export the LC_* constants coming from POSIX instead of providing its own XS implementation Patch attached with submission follows: --- gettext.pm.orig 2011-07-04 20:03:41.000000000 +0400 +++ gettext.pm 2011-07-04 20:03:55.000000000 +0400 @@ -32,6 +32,7 @@ =cut use Carp; +use POSIX qw(:locale_h); require Exporter; require DynaLoader; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107041612.p64GC0JR057946>