Source: tcpbench
Version: 2.02-2
Tags: patch
User: [email protected]
Usertags: ftcbfs
X-Debbugs-Cc: [email protected]
tcpbench FTCBFS because
a) It hard-codes pkgconf so the arch-prefixed pkg-config does not work
b) strips the binary which at install step. This is already done by `dh_strip`
The patch below fixes it. Please consider applying.
diff --git a/debian/patches/cross.patch b/debian/patches/cross.patch
new file mode 100644
index 0000000..d2972fe
--- /dev/null
+++ b/debian/patches/cross.patch
@@ -0,0 +1,22 @@
+--- a/GNUmakefile
++++ b/GNUmakefile
+@@ -1,7 +1,8 @@
++PKG_CONFIG ?= pkgconf
+ CFLAGS+= -D_DEFAULT_SOURCE -D_GNU_SOURCE -Wall \
+- $(shell pkgconf --cflags libbsd-overlay)
++ $(shell $(PKG_CONFIG) --cflags libbsd-overlay)
+ LDFLAGS+= -levent -lm \
+- $(shell pkgconf --libs libbsd-overlay)
++ $(shell $(PKG_CONFIG) --libs libbsd-overlay)
+ BINDIR?= /usr/local/bin
+ MANDIR?= /usr/local/man/man
+
+@@ -15,7 +16,7 @@
+ rm -f tcpbench tcpbench.o out
+
+ install:
+- install -c -m 555 -s tcpbench -D -t ${DESTDIR}${BINDIR}
++ install -c -m 555 tcpbench -D -t ${DESTDIR}${BINDIR}
+ install -c -m 444 tcpbench.1 -D -t ${DESTDIR}${MANDIR}1
+
+ .PHONY: test test-localhost test-localhost6
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..def274a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+cross.patch