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/ line 66. at /usr/pkg/bin/help2man line 38

This problem may be related to pkg/42079:

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 :

Is it possible to apply this patch (or a variant) to the package devel/p5-gettext?

Best regards,

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.
Author: Raphaël Hertzog <>
Origin: vendor,

--- a/
+++ b/
@@ -32,6 +32,7 @@ to internationalize software.
 use Carp;
+use POSIX qw(:locale_h);
 require Exporter;
 require DynaLoader;

Home | Main Index | Thread Index | Old Index