Package: libpcap
Version: 1.1.1-8
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu ubuntu-patch precise
libpcap relies on the default CFLAGS exported by dpkg-buildpackage to
build with debugging symbols. However, as of dpkg 1.16.1,
dpkg-buildpackage no longer exports these, and packages should fetch
them for themselves. dh_auto_build already does that in debhelper
compat level 9, but only if the flags aren't already exported in
debian/rules.
* Use DEB_CFLAGS_MAINT_APPEND to avoid losing compiler flags when built
with dpkg >= 1.16.1.
diff -Nru libpcap-1.1.1/debian/control libpcap-1.1.1/debian/control
--- libpcap-1.1.1/debian/control 2011-06-28 14:09:26.000000000 -0400
+++ libpcap-1.1.1/debian/control 2011-11-01 13:47:33.000000000 -0400
@@ -1,8 +1,9 @@
Source: libpcap
Section: devel
Priority: optional
Maintainer: Romain Francoise <[email protected]>
-Build-Depends: debhelper (>= 8.1.3),
+Build-Depends: dpkg-dev (>= 1.16.1~),
+ debhelper (>= 8.1.3),
flex,
bison,
perl,
diff -Nru libpcap-1.1.1/debian/rules libpcap-1.1.1/debian/rules
--- libpcap-1.1.1/debian/rules 2010-04-06 13:11:00.000000000 -0400
+++ libpcap-1.1.1/debian/rules 2011-11-01 13:46:01.000000000 -0400
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
-export CFLAGS += -D_FILE_OFFSET_BITS=64
+export DEB_CFLAGS_MAINT_APPEND := -D_FILE_OFFSET_BITS=64
%:
dh $@
Thanks,
--
Colin Watson [[email protected]]
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]