- Adopt Debian's compatibility-with-POSIX-module.diff (RH BZ#447859).
This commit is contained in:
parent
b5ecf82a9b
commit
d23e3d4161
27
compatibility-with-POSIX-module.diff
Normal file
27
compatibility-with-POSIX-module.diff
Normal file
@ -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 <hertzog@debian.org>
|
||||
|
||||
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;
|
||||
|
||||
@ -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 <corsepiu@fedoraproject.org> - 1.05-16
|
||||
- Adopt Debian's compatibility-with-POSIX-module.diff (RH BZ#447859).
|
||||
|
||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user