[libalgorithm-svm-perl] 01/02: Add patch to add $Config{ccflags} in Makefile.PL.
gregor herrmann
gregoa at debian.org
Fri Jul 21 18:01:11 UTC 2017
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libalgorithm-svm-perl.
commit 55c14dd8b933127ca2798e57fd64bd6f7be480a9
Author: gregor herrmann <gregoa at debian.org>
Date: Fri Jul 21 19:56:20 2017 +0200
Add patch to add $Config{ccflags} in Makefile.PL.
This is needed to get the CCFLAGS Perl itself was compiled with.
Thanks: Adrian Bunk for the bug report.
Closes: #869208
---
debian/patches/ccflags.patch | 23 +++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 24 insertions(+)
diff --git a/debian/patches/ccflags.patch b/debian/patches/ccflags.patch
new file mode 100644
index 0000000..e069d14
--- /dev/null
+++ b/debian/patches/ccflags.patch
@@ -0,0 +1,23 @@
+Description: Add $Config{ccflags} to CCFLAGS
+ Since 5.14 we need the same CCFLAGS Perl itself was compiled with.
+ So don't override but add to CCFLAGS.
+Origin: vendor; but also on CPAN RT
+Bug-Debian: https://bugs.debian.org/869208
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=79754
+Forwarded: not-needed
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2017-07-21
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -1,8 +1,9 @@
+ use ExtUtils::MakeMaker;
++use Config;
+
+ $CC = 'g++';
+
+-%args = ('CCFLAGS' => '-Wall');
++%args = ('CCFLAGS' => "-Wall $Config{ccflags}");
+
+ if($^O eq 'cygwin') {
+ $args{'LDDLFLAGS'} = '-shared -L/usr/local/lib';
diff --git a/debian/patches/series b/debian/patches/series
index c99f230..b167135 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ remove-3rd-party-libsvm.patch
update-libsvm3.patch
do-not-link-to-libm.patch
spelling.patch
+ccflags.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libalgorithm-svm-perl.git
More information about the Pkg-perl-cvs-commits
mailing list