[SCM] Debian packaging of DBD-Firebird CPAN distribution branch, master, updated. debian/0.70-1

Damyan Ivanov dmn at debian.org
Tue Sep 27 20:32:03 UTC 2011


The following commit has been merged in the master branch:
commit a9b18b2008a56cf5d7506275b70e7e7e5cc82e9c
Author: Damyan Ivanov <dmn at debian.org>
Date:   Tue Sep 27 18:27:42 2011 +0300

    add a patch from upstream Git appending $Config{ccflags} to CCFLAGS
    
    ensures binary compatibility with the perl binary.
    Closes: #643038 -- FTBFS with perl 5.14: CCFLAGS should include
    $Config{ccflags}

diff --git a/debian/patches/git-append-config-ccflags.patch b/debian/patches/git-append-config-ccflags.patch
new file mode 100644
index 0000000..254f1e1
--- /dev/null
+++ b/debian/patches/git-append-config-ccflags.patch
@@ -0,0 +1,25 @@
+commit f2cf59cd734fb7563665d366fd1490ab876d3736
+Author: Damyan Ivanov <dmn at debian.org>
+Commit: Damyan Ivanov <dmn at debian.org>
+
+    append $Config{ccflags} to CCFLAGS
+    
+    This makes it possible for binary distributions to rebuild the module
+    if perl's $Config{ccflags} is changed for whatever reason. Without
+    this appending, binary compatibility can't be guaranteed.
+    
+    http://bugs.debian.org/643038
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 63fbe28..f48e574 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -158,7 +158,7 @@ my %MakeParams = (
+     VERSION_FROM => 'Firebird.pm',                              # finds $VERSION
+     C            => ['dbdimp.c'],
+     H            => [ 'dbdimp.h', 'Firebird.h' ],
+-    CCFLAGS      => '-Wall -fno-strict-aliasing',
++    CCFLAGS      => "-Wall -fno-strict-aliasing $Config{ccflags}",
+     INC          => qq(-I"$fb_INC" -I"$dbi_arch_dir"),
+     OBJECT       => "Firebird.o dbdimp.o",
+     LIBS         => [''],
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6bcf3f1
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+git-append-config-ccflags.patch

-- 
Debian packaging of DBD-Firebird CPAN distribution



More information about the Pkg-perl-cvs-commits mailing list