Source: varnish-modules Version: 0.25.0-1 Tags: patch User: [email protected] Usertags: ftcbfs
varnish-modules fails to cross build from source, because it uses the build architecture pkg-config to query the host architecture varnishapi.pc and then passes an invalid include directory to aclocal. I'm attaching a patch for your convenience. Helmut
diff --minimal -Nru varnish-modules-0.25.0/debian/changelog varnish-modules-0.25.0/debian/changelog --- varnish-modules-0.25.0/debian/changelog 2024-10-21 23:47:07.000000000 +0200 +++ varnish-modules-0.25.0/debian/changelog 2024-10-24 10:30:47.000000000 +0200 @@ -1,3 +1,10 @@ +varnish-modules (0.25.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Use the host arch pkg-config to look up varnishapi. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Thu, 24 Oct 2024 10:30:47 +0200 + varnish-modules (0.25.0-1) unstable; urgency=medium * New upstream release. diff --minimal -Nru varnish-modules-0.25.0/debian/rules varnish-modules-0.25.0/debian/rules --- varnish-modules-0.25.0/debian/rules 2024-10-21 23:47:07.000000000 +0200 +++ varnish-modules-0.25.0/debian/rules 2024-10-24 10:30:46.000000000 +0200 @@ -6,6 +6,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk +include /usr/share/dpkg/buildtools.mk P := \) @@ -16,7 +17,7 @@ cut -d ' ' -f 4 | \ tr -d '$(P)') -export VARNISHAPI_DATAROOTDIR = $(shell pkg-config varnishapi --variable=datarootdir) +export VARNISHAPI_DATAROOTDIR = $(shell $(PKG_CONFIG) varnishapi --variable=datarootdir) %: dh $@

