pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
POSIX compatibility patch for devel/p5-gettext
Dear pkgsrc users and maintainers,
The perl script help2man (converters/help2man) gives the following message:
Constant subroutine main::LC_ALL redefined at
/usr/pkg/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/pkg/bin/help2man line 38
This problem may be related to pkg/42079:
http://mail-index.netbsd.org/pkgsrc-bugs/2009/09/17/msg033902.html
According to google, this is a known problem for old perl programs on
perl 5.10. In Debian, this problem is solved with the attached patch.
See :
http://rt.cpan.org/Public/Bug/Display.html?id=35680
http://bugs.debian.org/479803
Is it possible to apply this patch (or a variant) to the package
devel/p5-gettext?
Best regards,
Grégoire
Description: Re-export LC_* constants of the POSIX module
Locale::Gettext exports by default the various LC_* constants as does the
POSIX perl module. Up to perl-5.10, their definition was strictly the same
and didn't cause any harm. Now the POSIX module evolved slightly and the
symbol redefinition are conflictual and generate warnings.
.
Resolve this by making sure that Locale::Gettext reexports the constants
coming from the POSIX module.
Bug: http://rt.cpan.org/Public/Bug/Display.html?id=35680
Bug-Debian: http://bugs.debian.org/479803
Author: Raphaël Hertzog <hertzog%debian.org@localhost>
Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479803#20
--- a/gettext.pm
+++ b/gettext.pm
@@ -32,6 +32,7 @@ to internationalize software.
=cut
use Carp;
+use POSIX qw(:locale_h);
require Exporter;
require DynaLoader;
Home |
Main Index |
Thread Index |
Old Index