From d23e3d4161a4c312cbddddce3ae3f3b3dec00303 Mon Sep 17 00:00:00 2001 From: corsepiu Date: Mon, 27 Jul 2009 14:24:45 +0000 Subject: [PATCH] - Adopt Debian's compatibility-with-POSIX-module.diff (RH BZ#447859). --- compatibility-with-POSIX-module.diff | 27 +++++++++++++++++++++++++++ perl-gettext.spec | 8 ++++++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 compatibility-with-POSIX-module.diff diff --git a/compatibility-with-POSIX-module.diff b/compatibility-with-POSIX-module.diff new file mode 100644 index 0000000..f02aefe --- /dev/null +++ b/compatibility-with-POSIX-module.diff @@ -0,0 +1,27 @@ + +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. + +Fixes Debian bug #479803. + + -- Raphael Hertzog + +Index: liblocale-gettext-perl-1.05/gettext.pm +=================================================================== +--- liblocale-gettext-perl-1.05.orig/gettext.pm 2008-05-07 09:40:23.000000000 +0200 ++++ liblocale-gettext-perl-1.05/gettext.pm 2008-05-07 09:41:04.000000000 +0200 +@@ -32,6 +32,7 @@ + =cut + + use Carp; ++use POSIX qw(:locale_h); + + require Exporter; + require DynaLoader; + diff --git a/perl-gettext.spec b/perl-gettext.spec index 6f330ab..1225685 100644 --- a/perl-gettext.spec +++ b/perl-gettext.spec @@ -1,12 +1,13 @@ Name: perl-gettext Version: 1.05 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Interface to gettext family of functions Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/gettext/ Source0: http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/gettext-%{version}.tar.gz +Patch0: http://patch-tracking.debian.net/patch/series/view/liblocale-gettext-perl/1.05-4/compatibility-with-POSIX-module.diff BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(ExtUtils::MakeMaker) @@ -22,7 +23,7 @@ internationalize software. %prep %setup -q -n gettext-%{version} - +%patch0 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" @@ -59,6 +60,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Jul 27 2009 Ralf Corsépius - 1.05-16 +- Adopt Debian's compatibility-with-POSIX-module.diff (RH BZ#447859). + * Sun Jul 26 2009 Fedora Release Engineering - 1.05-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild