[SCM] Debian packaging of libdevice-usb-perl branch, master, updated. debian/0.35-2-13-g302c393

gregor herrmann gregoa at debian.org
Sun May 12 17:47:04 UTC 2013


The following commit has been merged in the master branch:
commit bf373c5f97ae8f0a0396f309f7b3400079550ceb
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun May 12 19:44:35 2013 +0200

    New patch hardening-flags.diff.
    
    Pass *FLAGS to compiler and linker to enable hardening.

diff --git a/debian/patches/hardening-flags.diff b/debian/patches/hardening-flags.diff
new file mode 100644
index 0000000..734b821
--- /dev/null
+++ b/debian/patches/hardening-flags.diff
@@ -0,0 +1,44 @@
+Description: pass *FLAGS to compiler and linker for hardening
+Origin: vendor
+Forwarded: no
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2013-05-12
+
+--- a/lib/Device/USB.pm
++++ b/lib/Device/USB.pm
+@@ -4,6 +4,7 @@
+ use warnings;
+ use strict;
+ use Carp;
++use Config;
+ 
+ use Inline (
+         C => "DATA",
+@@ -15,6 +16,8 @@
+         ($ENV{LIBUSB_INCDIR} ? ( INC => "-I\"$ENV{LIBUSB_INCDIR}\"" ) : () ),
+         NAME => 'Device::USB',
+         VERSION => '0.35',
++        CCFLAGS => "$Config{ccflags} $ENV{CFLAGS} $ENV{CPPFLAGS}",
++        LDDLFLAGS => "$Config{lddlflags} $ENV{LDFLAGS}",
+    );
+ 
+ Inline->init();
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -1,6 +1,7 @@
+ use strict;
+ use warnings;
+ use Inline::MakeMaker;
++use Config;
+ 
+ sub MY::libscan {
+ 	return if ($_[1] eq 'USB.pm' or $_[1] eq 'dump_usb.pl');
+@@ -68,6 +69,8 @@
+     clean               => {
+         FILES => 'Device-USB-* USB.inl _Inline'
+     },
++    CCFLAGS => "$Config{ccflags} $ENV{CFLAGS} $ENV{CPPFLAGS}",
++    LDFLAGS => "$Config{lddlflags} $ENV{LDFLAGS}",
+ );
+ 
+ 
diff --git a/debian/patches/series b/debian/patches/series
index a617908..71ec92c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ fix-typo
 fix-buildsystem
 just-assume-libusb-is-there.diff
 pod-encoding.diff
+hardening-flags.diff

-- 
Debian packaging of libdevice-usb-perl



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