Source: fwknop
Version: 2.6.10-14
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

fwknop fails to cross build from source, because it attempts to build
its perl extension for the build architecture. In order to get the
development files for the host architecture, a dependency on perl-xs-dev
is needed and since there is no dh_auto_foo involved in the perl
extension, the PERL5LIB needs to be set up manually. I'm attaching a
patch for your convenience.

Helmut
diff --minimal -Nru fwknop-2.6.10/debian/changelog 
fwknop-2.6.10/debian/changelog
--- fwknop-2.6.10/debian/changelog      2022-11-27 02:41:38.000000000 +0100
+++ fwknop-2.6.10/debian/changelog      2023-01-10 10:36:15.000000000 +0100
@@ -1,3 +1,12 @@
+fwknop (2.6.10-14.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Add missing B-D: perl-xs-dev for building a perl extension.
+    + Export a suitable PERL5LIB.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 10 Jan 2023 10:36:15 +0100
+
 fwknop (2.6.10-14) unstable; urgency=medium
 
   * Remove outdated gpgme.m4 from build (closes: #1024481).
diff --minimal -Nru fwknop-2.6.10/debian/control fwknop-2.6.10/debian/control
--- fwknop-2.6.10/debian/control        2022-11-27 02:41:38.000000000 +0100
+++ fwknop-2.6.10/debian/control        2023-01-10 10:36:15.000000000 +0100
@@ -12,6 +12,7 @@
  libgpgme11-dev,
  libpcap0.8-dev,
  libtool,
+ perl-xs-dev,
  texinfo,
  wget,
 Maintainer: Francois Marier <franc...@debian.org>
diff --minimal -Nru fwknop-2.6.10/debian/rules fwknop-2.6.10/debian/rules
--- fwknop-2.6.10/debian/rules  2022-11-27 02:41:38.000000000 +0100
+++ fwknop-2.6.10/debian/rules  2023-01-10 10:36:14.000000000 +0100
@@ -18,6 +18,8 @@
 
 LIB_LIBFKODEV      = usr/lib/$(DEB_HOST_MULTIARCH)
 
+PERL_VER           = $(shell perl -MConfig -e 'print $$Config{version}')
+export PERL5LIB    = 
/usr/lib/$(DEB_HOST_MULTIARCH)/perl/cross-config-$(PERL_VER)
 PERL_ARCHLIB       = $(shell perl -MConfig -e 'print $$Config{vendorarch}')
 
 %:

Reply via email to