[Git][haskell-team/DHG_packages][master] bustle: Patch to compile with newer libpcap

Ilias Tsitsimpis (@iliastsi) gitlab at salsa.debian.org
Sat Jan 21 20:31:01 GMT 2023



Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / DHG_packages


Commits:
bfda3ee3 by Ilias Tsitsimpis at 2023-01-21T22:28:34+02:00
bustle: Patch to compile with newer libpcap

- - - - -


3 changed files:

- p/bustle/debian/changelog
- + p/bustle/debian/patches/fix-pcap-config
- p/bustle/debian/patches/series


Changes:

=====================================
p/bustle/debian/changelog
=====================================
@@ -1,8 +1,9 @@
-bustle (0.8.0-2) UNRELEASED; urgency=medium
+bustle (0.8.0-2) unstable; urgency=medium
 
   * Declare compliance with Debian policy 4.6.1
+  * Patch to compile with newer libpcap (Closes: #1028699)
 
- -- Ilias Tsitsimpis <iliastsi at debian.org>  Tue, 28 Jun 2022 15:31:58 +0300
+ -- Ilias Tsitsimpis <iliastsi at debian.org>  Sat, 21 Jan 2023 22:28:17 +0200
 
 bustle (0.8.0-1) unstable; urgency=medium
 


=====================================
p/bustle/debian/patches/fix-pcap-config
=====================================
@@ -0,0 +1,40 @@
+From: Fabrice Fontaine <fontaine.fabrice at gmail.com>
+Date: Sun, 8 Jan 2023 11:03:52 +0100
+Subject: [PATCH] Makefile: fix pcap-config call
+Origin: https://gitlab.freedesktop.org/bustle/bustle/-/merge_requests/21
+
+Fix the following build failure raised since libpcap version 1.10.2 and
+https://github.com/the-tcpdump-group/libpcap/commit/d0cba780dc2b2bb4f3ca9427d1a0f03479f45707:
+
+pcap-config: Invalid command-line option pcap-config specified
+Usage: pcap-config [ --help ] [ --static | --static-pcap-only ] [ --libs | --additional-libs ]
+perl -nle 'm/^Version:\s+(.*)$/ and print $1' \
+	bustle.cabal > dist/build/autogen/version.txt
+echo '#define BUSTLE_VERSION "'`cat dist/build/autogen/version.txt`'"' > dist/build/autogen/version.h
+/home/buildroot/autobuild/run/instance-2/output-1/host/bin/arm-linux-gcc -Idist/build/autogen -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os -g0  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  \
+	-o dist/build/bustle-pcap c-sources/pcap-reader.c c-sources/pcap-monitor.c c-sources/bustle-pcap.c \
+	-I/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/glib-2.0 -I/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/glib-2.0/include -I/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/libmount -I/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/blkid -I/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/gio-unix-2.0 -pthread -L/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0
+/home/buildroot/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/10.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: /tmp/cc5SQkTV.o: in function `bustle_pcap_reader_finalize':
+pcap-reader.c:(.text+0x254): undefined reference to `pcap_close'
+
+Fixes:
+ - http://autobuild.buildroot.org/results/f3dcb617488e4172e639e3bd51a93bc9822ea186
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: b/Makefile
+===================================================================
+--- a/Makefile
++++ b/Makefile
+@@ -2,7 +2,7 @@ CFLAGS = -g -O2 -Wall -Wunused -Waddress
+ DBUS_FLAGS = $(shell pkg-config --cflags --libs dbus-1)
+ GIO_FLAGS := $(shell pkg-config --cflags --libs 'glib-2.0 >= 2.26' gio-2.0 gio-unix-2.0)
+ PCAP_CONFIG ?= pcap-config
+-PCAP_FLAGS := $(shell $(PCAP_CONFIG) --cflags pcap-config --libs)
++PCAP_FLAGS := $(shell $(PCAP_CONFIG) --cflags --libs)
+ DESTDIR =
+ PREFIX = /usr
+ BINDIR = $(DESTDIR)$(PREFIX)/bin


=====================================
p/bustle/debian/patches/series
=====================================
@@ -1 +1,2 @@
 use-system-usr-prefix.patch
+fix-pcap-config



View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/bfda3ee3a881c266fa7e453a0809d23c84ffbe0f

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/bfda3ee3a881c266fa7e453a0809d23c84ffbe0f
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20230121/d676719a/attachment-0001.htm>


More information about the Pkg-haskell-commits mailing list