[perl-MongoDB] Version update to 0.44 Removing ccflags from Makefile.PL that breaks i686 build

ksyz ksyz at fedoraproject.org
Sun Aug 7 22:08:59 UTC 2011


commit 1036793b2a8ca40838d9058aa7c845f742041fc1
Author: Michal Ingeli <mi at v3.sk>
Date:   Mon Aug 8 00:08:26 2011 +0200

    Version update to 0.44
    Removing ccflags from Makefile.PL that breaks i686 build

 .gitignore                 |    1 +
 perl-MongoDB-ccflags.patch |   17 +++++++++++++++++
 perl-MongoDB.spec          |   12 +++++++++---
 sources                    |    2 +-
 4 files changed, 28 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 1028ad3..4aaee22 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /MongoDB-0.41.tar.gz
+/MongoDB-0.44.tar.gz
diff --git a/perl-MongoDB-ccflags.patch b/perl-MongoDB-ccflags.patch
new file mode 100644
index 0000000..b22e10d
--- /dev/null
+++ b/perl-MongoDB-ccflags.patch
@@ -0,0 +1,17 @@
+diff -ur MongoDB-0.44.orig//Makefile.PL MongoDB-0.44/Makefile.PL
+--- MongoDB-0.44.orig//Makefile.PL	2011-08-07 17:03:55.628211015 -0400
++++ MongoDB-0.44/Makefile.PL	2011-08-07 17:08:42.007630778 -0400
+@@ -40,9 +40,10 @@
+ my @arch = $Config::Config{ccflags} =~ m/-arch\s+(\S+)/g;
+ my $archStr = join '', map { " -arch $_ " } @arch;
+ 
+-my $ccflags = makemaker_args->{CCFLAGS};
+-$ccflags = $ccflags . $archStr;
+-makemaker_args(CCFLAGS => $ccflags);
++# Breaks compilation on i686
++#my $ccflags = makemaker_args->{CCFLAGS};
++#$ccflags = $ccflags . $archStr;
++#makemaker_args(CCFLAGS => $ccflags);
+ 
+ makemaker_args(
+     dynamic_lib => {
diff --git a/perl-MongoDB.spec b/perl-MongoDB.spec
index 99b52e7..d22d1dc 100644
--- a/perl-MongoDB.spec
+++ b/perl-MongoDB.spec
@@ -1,13 +1,14 @@
 %{?perl_default_filter}
 
 Name:           perl-MongoDB
-Version:        0.41
-Release:        5%{?dist}
+Version:        0.44
+Release:        1%{?dist}
 Summary:        Database driver
 License:        ASL 2.0 
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/MongoDB/
 Source0:        http://www.cpan.org/authors/id/K/KR/KRISTINA/MongoDB-%{version}.tar.gz
+Patch0:         perl-MongoDB-ccflags.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  perl >= 1:5.8.7
 BuildRequires:  perl(Any::Moose)
@@ -28,6 +29,7 @@ The perl database access module for MongoDB.
 
 %prep
 %setup -q -n MongoDB-%{version}
+%patch0 -p1 -b .ccflags
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
@@ -58,6 +60,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/*
 
 %changelog
+* Fri Aug 08 2011 Michal Ingeli <mi at v3.sk> 0.44-1
+- Version update to 0.44
+- Removing ccflags from Makefile.PL that breaks i686 build
+
 * Thu Jul 21 2011 Petr Sabata <contyk at redhat.com> - 0.41-5
 - Perl mass rebuild
 
@@ -65,7 +71,7 @@ rm -rf $RPM_BUILD_ROOT
 - Perl mass rebuild
 
 * Sat Jan 22 2011 Michal Ingeli <mi at v3.sk> 0.41-3
-- Conditionalize %perl_default_filter
+- Conditionalize perl_default_filter
 - Added Try::Tiny, required for test phase
 
 * Sat Jan 22 2011 Michal Ingeli <mi at v3.sk> 0.41-2
diff --git a/sources b/sources
index 53ceb3a..a08a4b8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1ca1cc4e6d5f49cc7a523764e1674f1a  MongoDB-0.41.tar.gz
+f34b4928f64687aace644aa294276654  MongoDB-0.44.tar.gz


More information about the scm-commits mailing list