[libcryptx-perl] 04/05: adapt compilation-flags.patch

Damyan Ivanov dmn at moszumanska.debian.org
Thu Nov 23 21:14:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

dmn pushed a commit to branch master
in repository libcryptx-perl.

commit 6972b3667d1928d82342ad14fee424d6597c3ed8
Author: Damyan Ivanov <dmn at debian.org>
Date:   Thu Nov 23 21:10:35 2017 +0000

    adapt compilation-flags.patch
---
 debian/patches/compilation-flags.patch | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/debian/patches/compilation-flags.patch b/debian/patches/compilation-flags.patch
index 54d4bf0..2bf57af 100644
--- a/debian/patches/compilation-flags.patch
+++ b/debian/patches/compilation-flags.patch
@@ -6,17 +6,18 @@ Forwarded: https://github.com/DCIT/perl-CryptX/pull/39
 Bug: https://github.com/DCIT/perl-CryptX/pull/39
 --- a/Makefile.PL
 +++ b/Makefile.PL
-@@ -12,6 +12,7 @@ my @myobjs = map { s|.c$|$Config{obj_ext
- );
- my $myextlib = "src/liballinone$Config{lib_ext}";
- my $mycflags = "$Config{ccflags} $Config{cccdlflags} $Config{optimize}";
+@@ -25,7 +25,7 @@ $mycflags =~ s/-Wwrite-strings\b//g;
+ $mycflags =~ s/-Wcast-qual\b//g;
+ 
+ #FIX: this is particularly useful for Debian https://github.com/DCIT/perl-CryptX/pull/39
+-$mycflags = "$ENV{CFLAGS} $ENV{CPPFLAGS}" if $ENV{CFLAGS} || $ENV{CPPFLAGS};
 +$mycflags .= " $ENV{CFLAGS}" if $ENV{CFLAGS};
  
- #FIX: gcc with -flto is a trouble maker see https://github.com/DCIT/perl-CryptX/issues/32
- $mycflags =~ s/-flto\b//g;
+ #FIX: avoid "ar: fatal: Numeric group ID too large" see https://github.com/DCIT/perl-CryptX/issues/33
+ my $myarflags = '$(AR_STATIC_ARGS)';
 --- a/src/Makefile
 +++ b/src/Makefile
-@@ -167,4 +167,4 @@ clean:
+@@ -170,4 +170,4 @@ clean:
  .SUFFIXES: .o .c
  
  .c$(OBJ_EXT):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcryptx-perl.git



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