Control: tags -1 + patch

Hi,

this bug also occurs on other architectures:
  https://buildd.debian.org/status/logs.php?pkg=argus&suite=experimental


Snip of build log:
<  ArgusSource.o: In function `ArgusGetPackets':
<  
/build/buildd-argus_3.0.0-3-mips-ANkqA6/argus-3.0.0/argus/ArgusSource.c:2212: 
undefined reference to `pcap_offline_read'
<  collect2: ld returned 1 exit status
<  make[2]: *** [../bin/argus] Error 1

The solution is to set libpcap library path.

The patch that solves this problem is attached.
With this patch I successfully built argus for following architectures:  misp, 
mipsel, i386 and amd64.

Regards,
Dejan Latinović
--- argus-3.0.0.orig/debian/rules	2014-01-09 17:25:55.000000000 +0000
+++ argus-3.0.0/debian/rules	2014-01-09 16:25:25.920618844 +0000
@@ -14,6 +14,7 @@
 
 export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
   confflags += --build $(DEB_HOST_GNU_TYPE)
@@ -42,7 +43,8 @@
 	--bindir=/usr/bin \
 	--sysconfdir=/etc \
 	--mandir=/usr/share/man \
-	--includedir=/usr/include CFLAGS="$(CFLAGS)"
+	--includedir=/usr/include CFLAGS="$(CFLAGS)" \
+	--with-libpcap=/usr/lib/$(DEB_HOST_MULTIARCH)
 	
 binary-indep: build
 	dh_testroot

Reply via email to