[perl-GD] patch to avoid issue with EU::MM and CCFLAGS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 21cb7a6f8da0894c4401693a20a294fc47894d70
Author: Iain Arnell <iarnell@xxxxxxxxx>
Date:   Sat Jun 18 02:41:22 2011 +0200

    patch to avoid issue with EU::MM and CCFLAGS

 perl-GD-ccflags.patch |   12 ++++++++++++
 perl-GD.spec          |   12 ++++++++++--
 2 files changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/perl-GD-ccflags.patch b/perl-GD-ccflags.patch
new file mode 100644
index 0000000..47d4290
--- /dev/null
+++ b/perl-GD-ccflags.patch
@@ -0,0 +1,12 @@
+diff -up GD-2.44/Makefile.PL.orig GD-2.44/Makefile.PL
+--- GD-2.44/Makefile.PL.orig	2011-06-18 02:28:12.000000000 +0200
++++ GD-2.44/Makefile.PL	2011-06-18 02:28:50.000000000 +0200
+@@ -246,7 +246,7 @@ WriteMakefile(
+     'PL_FILES'  => {'bdf_scripts/bdf2gdfont.PLS' => 'bdf_scripts/bdf2gdfont.pl',
+ 		    'GD/Image.pm.PLS' => 'GD/Image.pm',
+ 		   },
+-    'CCFLAGS'    => '-Wformat=0',
++    'CCFLAGS'    => "-Wformat=0 $Config{ccflags}",
+     'EXE_FILES' => ['bdf_scripts/bdf2gdfont.pl'],
+     'AUTHOR'    => 'Lincoln Stein (lstein@xxxxxxxx)',
+     'ABSTRACT'  => 'Interface to Gd Graphics Library',
diff --git a/perl-GD.spec b/perl-GD.spec
index 7f0916c..da14651 100644
--- a/perl-GD.spec
+++ b/perl-GD.spec
@@ -1,6 +1,6 @@
 Name:           perl-GD
 Version:        2.44
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        Perl interface to the GD graphics library
 
 Group:          Development/Libraries
@@ -9,6 +9,9 @@ URL:            http://search.cpan.org/dist/GD/
 Source0:        http://www.cpan.org/authors/id/L/LD/LDS/GD-%{version}.tar.gz
 Patch0:		perl-GD-2.41-Group.patch
 Patch1:		perl-GD-skip-3.patch
+# see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628522
+# and https://rt.cpan.org/Public/Bug/Display.html?id=67990
+Patch2:         perl-GD-ccflags.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  gd-devel >= 2.0.28
@@ -28,6 +31,7 @@ create PNG images on the fly or modify existing files.
 %ifarch %{ix86}
 %patch1 -p1
 %endif
+%patch2 -p1
 %{__perl} -pi -e 's|/usr/local/bin/perl\b|%{__perl}|' \
   qd.pl demos/{*.{pl,cgi},truetype_test}
 chmod -c 644 bdf_scripts/* demos/*
@@ -35,7 +39,7 @@ chmod -c 755 qd.pl
 
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" 
 make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
 
 
@@ -77,6 +81,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sat Jun 18 2011 Iain Arnell <iarnell@xxxxxxxxx> 2.44-8
+- patch to avoid issue with ExtUtils::MakeMaker and CCFLAGS
+  see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628522
+
 * Wed Jun 15 2011 Marcela Mašláňová <mmaslano@xxxxxxxxxx> - 2.44-7
 - Perl mass rebuild
 
--
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



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux