[libdevice-usb-perl] 01/02: Fix autopkgtest: update debian/patches/hardening-flags.diff.

gregor herrmann gregoa at debian.org
Sun Nov 12 18:31:11 UTC 2017


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

gregoa pushed a commit to branch master
in repository libdevice-usb-perl.

commit 70fcd3516ded0755d5926e3c2939580c16ddf48b
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Nov 12 19:27:08 2017 +0100

    Fix autopkgtest: update debian/patches/hardening-flags.diff.
    
    Only add $ENV{*FLAGS} if the variables are set which is usually not the case
    at runtime and then leads to warnings about uninitialized values.
---
 debian/patches/hardening-flags.diff | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/patches/hardening-flags.diff b/debian/patches/hardening-flags.diff
index 2a61c90..e38a926 100644
--- a/debian/patches/hardening-flags.diff
+++ b/debian/patches/hardening-flags.diff
@@ -2,7 +2,7 @@ Description: pass *FLAGS to compiler and linker for hardening
 Origin: vendor
 Forwarded: https://github.com/gwadej/perl-device-usb/pull/9
 Author: gregor herrmann <gregoa at debian.org>
-Last-Update: 2013-10-28
+Last-Update: 2017-11-12
 
 --- a/lib/Device/USB.pm
 +++ b/lib/Device/USB.pm
@@ -14,8 +14,8 @@ Last-Update: 2013-10-28
  
  use Inline (
          C => "DATA",
-+        CCFLAGS => "$Config{ccflags} $ENV{CFLAGS} $ENV{CPPFLAGS}",
-+        LDDLFLAGS => "$Config{lddlflags} $ENV{LDFLAGS}",
++        CCFLAGS => "$Config{ccflags}" . ($ENV{CFLAGS} ? " $ENV{CFLAGS}" : '') . ($ENV{CPPFLAGS} ? " $ENV{CPPFLAGS}" : ''),
++        LDDLFLAGS => "$Config{lddlflags}" . ($ENV{LDFLAGS} ? " $ENV{LDFLAGS}" : ''),
          ($ENV{LIBUSB_LIBDIR}
              ? ( LIBS => "-L\"$ENV{LIBUSB_LIBDIR}\" " .
                          ($^O eq 'MSWin32' ? ' -llibusb -L\"$ENV{WINDDK}\\lib\\crt\\i386\" -lmsvcrt ' : '-lusb') )

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



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