Source: openbsd-inetd Version: 0.20140418-2 Tags: patch User: [email protected] Usertags: rebootstrap
openbsd-inetd fails to cross build from source, because it uses the build architecture pkg-config. Other than that, it just works. Please consider applying the attached patch to move to a triplet-prefixed pkg-config. Helmut
diff --minimal -Nru openbsd-inetd-0.20140418/debian/changelog openbsd-inetd-0.20140418/debian/changelog --- openbsd-inetd-0.20140418/debian/changelog 2014-10-21 03:22:48.000000000 +0200 +++ openbsd-inetd-0.20140418/debian/changelog 2016-09-27 21:12:41.000000000 +0200 @@ -1,3 +1,10 @@ +openbsd-inetd (0.20140418-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Use triplet-prefixed pkg-config. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Tue, 27 Sep 2016 21:12:24 +0200 + openbsd-inetd (0.20140418-2) unstable; urgency=medium * Recognize IPv6-bound sockets in the init script. (Closes: #763722) diff --minimal -Nru openbsd-inetd-0.20140418/debian/patches/makefile openbsd-inetd-0.20140418/debian/patches/makefile --- openbsd-inetd-0.20140418/debian/patches/makefile 2014-06-03 04:52:27.000000000 +0200 +++ openbsd-inetd-0.20140418/debian/patches/makefile 2016-09-27 21:11:33.000000000 +0200 @@ -1,10 +1,11 @@ --- /dev/null +++ b/Makefile.debian -@@ -0,0 +1,20 @@ +@@ -0,0 +1,21 @@ ++PKG_CONFIG ?= pkg-config +CFLAGS ?= -g -O2 + -+DEFS := -DLIBWRAP $(shell pkg-config --cflags libbsd-overlay) -+LIBS := -lwrap $(shell pkg-config --libs libbsd-overlay) ++DEFS := -DLIBWRAP $(shell $(PKG_CONFIG) --cflags libbsd-overlay) ++LIBS := -lwrap $(shell $(PKG_CONFIG) --libs libbsd-overlay) + +CPPFLAGS += $(DEFS) + diff --minimal -Nru openbsd-inetd-0.20140418/debian/rules openbsd-inetd-0.20140418/debian/rules --- openbsd-inetd-0.20140418/debian/rules 2014-10-21 03:13:07.000000000 +0200 +++ openbsd-inetd-0.20140418/debian/rules 2016-09-27 21:12:12.000000000 +0200 @@ -9,6 +9,7 @@ ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) export CC := $(DEB_HOST_GNU_TYPE)-gcc endif +export PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config D := $(CURDIR)/debian/openbsd-inetd

