ports/158642: [patch] devel/p5-Locale-gettext: LC_* dub/conflict with from POSIX.pm
Sergey Kandaurov
pluknet at gmail.com
Mon Jul 4 16:20:10 UTC 2011
>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:
More information about the freebsd-ports-bugs
mailing list