[SCM] Debian packaging of libnet-pcap-perl branch, master, updated. upstream/0.17-53-ga4f1ff6

gregor herrmann gregoa at debian.org
Tue May 21 17:09:18 UTC 2013


The following commit has been merged in the master branch:
commit a5cbe050a41bdad8d896cc263e87ec1953b8e3aa
Author: gregor herrmann <gregoa at debian.org>
Date:   Tue May 21 19:08:01 2013 +0200

    Add a patch to make Makefile.PL die if libpcap isn't found.
    
    Closes: #633414

diff --git a/debian/patches/fail-without-libpcap.patch b/debian/patches/fail-without-libpcap.patch
new file mode 100644
index 0000000..ea73fb7
--- /dev/null
+++ b/debian/patches/fail-without-libpcap.patch
@@ -0,0 +1,46 @@
+Description: die instead of warn when libpcap isn't found
+ otherwise the build proceeds and ends with an empty package
+Origin: vendor
+Bug-Debian: http://bugs.debian.org/633414
+Forwarded: no
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2013-05-21
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -39,7 +39,7 @@
+ #      in recent version and is the only function that can be called 
+ #      with no argument.
+ if ($has_Win32) { # ActivePerl, Cygwin
+-    warn <<"REASON" and exit unless have_library('wpcap', 'blank', 'pcap');
++    die <<"REASON" and exit unless have_library('wpcap', 'blank', 'pcap');
+         - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ The WinPcap driver is not installed on this machine. \a
+ 
+@@ -48,7 +48,7 @@
+         - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ REASON
+ 
+-    warn <<"REASON" unless have_library('wpcap', 'pcap_lib_version', 'pcap');
++    die <<"REASON" unless have_library('wpcap', 'pcap_lib_version', 'pcap');
+         - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ You appear to lack the WinPcap developer pack. \a
+ 
+@@ -64,7 +64,7 @@
+ REASON
+ 
+ } else { # other systems (Unix)
+-    warn <<"REASON" and exit unless have_library('pcap');
++    die <<"REASON" and exit unless have_library('pcap');
+         - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ You appear to lack the pcap(3) library. \a
+ 
+@@ -79,7 +79,7 @@
+         - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ REASON
+ 
+-    warn <<"REASON" unless have_library('pcap', 'pcap_lib_version');
++    die <<"REASON" unless have_library('pcap', 'pcap_lib_version');
+         - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ You appear to have an old version of the pcap library. \a
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 37a48ae..f5bea04 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-Append-CCFLAGS-to-Config-ccflags-instead-of-overridi.patch
 spelling-errors.patch
+fail-without-libpcap.patch

-- 
Debian packaging of libnet-pcap-perl



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