commit 7ae8f8036058637d97a676c96e32dd3dd5d9ecfc Author: Nicolas Chauvet <kwizart@xxxxxxxxx> Date: Sun Apr 22 18:16:53 2012 +0200 Fix build on isa_bit == 32 Devel-FindRef-fix.patch | 12 ++++++++++++ perl-Devel-FindRef.spec | 9 +++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) --- diff --git a/Devel-FindRef-fix.patch b/Devel-FindRef-fix.patch new file mode 100644 index 0000000..41f9ede --- /dev/null +++ b/Devel-FindRef-fix.patch @@ -0,0 +1,12 @@ +diff -up Devel-FindRef-1.422/FindRef.xs.orig Devel-FindRef-1.422/FindRef.xs +--- Devel-FindRef-1.422/FindRef.xs.orig 2009-08-30 16:33:01.000000000 +0200 ++++ Devel-FindRef-1.422/FindRef.xs 2012-02-01 10:17:35.698276247 +0100 +@@ -214,7 +214,7 @@ find_ (SV *target_ref) + if (GvSV (sv) == (SV *)targ) res_gv ('$'); + if (GvAV (sv) == (AV *)targ) res_gv ('@'); + if (GvHV (sv) == (HV *)targ) res_gv ('%'); +- if (GvCV (sv) == (CV *)targ) res_gv ('&'); ++ if (GvCVu(sv) == (CV *)targ) res_gv ('&'); + } + + break; diff --git a/perl-Devel-FindRef.spec b/perl-Devel-FindRef.spec index 7b6a990..610aecc 100644 --- a/perl-Devel-FindRef.spec +++ b/perl-Devel-FindRef.spec @@ -1,6 +1,6 @@ Name: perl-Devel-FindRef Version: 1.42 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Where is that reference to my variable hiding? License: GPL+ or Artistic Group: Development/Libraries @@ -8,6 +8,7 @@ URL: http://search.cpan.org/dist/Devel-FindRef/ Source0: http://www.cpan.org/authors/id/M/ML/MLEHMANN/Devel-FindRef-%{version}2.tar.gz Patch0: 0001-Fix-compiler-warnings.patch Patch1: 0001-Fix-64-bit-warnings.patch +Patch2: Devel-FindRef-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(common::sense) @@ -22,7 +23,11 @@ references "backwards" is usually possible. %prep %setup -q -n Devel-FindRef-%{version}2 %patch0 -p1 +%if %{__isa_bits} == 64 %patch1 -p1 +%endif +%patch2 -p1 + %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" @@ -53,7 +58,7 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/Devel*.3* %changelog -* Sun Apr 22 2012 Nicolas Chauvet <kwizart@xxxxxxxxx> - 1.42-15 +* Sun Apr 22 2012 Nicolas Chauvet <kwizart@xxxxxxxxx> - 1.42-16 - Fix rhbz#815073 - Segfault in XS_Devel__FindRef_find_() * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.42-14 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel