[Debian-med-packaging] Bug#977482: pilercr FTCBFS: builds for the build architecture
Helmut Grohne
helmut at subdivi.de
Tue Dec 15 14:46:36 GMT 2020
Source: pilercr
Version: 1.06+dfsg-3
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs
pilercr fails to cross build from source, because it builds for the
build architecture. The upstream makefile uses a non-standard compiler
variable GPP rather than CXX, so it doesn't use the compiler passed by
dh_auto_build. After renaming it, it fails due to help2man. Given that
pilercr is small and has few dependencies, a simple workaround is adding
a native build pass for help2man. The attached patch makes pilercr cross
buildable. Please consider applying it.
Helmut
-------------- next part --------------
diff --minimal -Nru pilercr-1.06+dfsg/debian/changelog pilercr-1.06+dfsg/debian/changelog
--- pilercr-1.06+dfsg/debian/changelog 2020-12-05 11:52:04.000000000 +0100
+++ pilercr-1.06+dfsg/debian/changelog 2020-12-15 15:37:19.000000000 +0100
@@ -1,3 +1,12 @@
+pilercr (1.06+dfsg-3.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Pass C++ compiler as GPP variable.
+ + Add native build pass for help2man.
+
+ -- Helmut Grohne <helmut at subdivi.de> Tue, 15 Dec 2020 15:37:19 +0100
+
pilercr (1.06+dfsg-3) unstable; urgency=medium
* Team upload.
diff --minimal -Nru pilercr-1.06+dfsg/debian/rules pilercr-1.06+dfsg/debian/rules
--- pilercr-1.06+dfsg/debian/rules 2020-12-05 11:52:04.000000000 +0100
+++ pilercr-1.06+dfsg/debian/rules 2020-12-15 15:37:19.000000000 +0100
@@ -1,5 +1,6 @@
#!/usr/bin/make -f
+include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/pkg-info.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
@@ -7,13 +8,17 @@
%:
dh $@
-override_dh_installman:
+override_dh_auto_build:
+ dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dh_auto_build -- 'GPP=$$(CXX)'
help2man ./pilercr \
--name 'software for finding CRISPR repeats' \
--help-option '-options' --no-discard-stderr \
--version-string ${DEB_VERSION_UPSTREAM} \
--no-info > pilercr.1
- dh_installman
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+ $(RM) pilercr *.o
+ dh_auto_build -- 'GPP=$$(CXX)'
+endif
override_dh_auto_clean:
rm -f *.o pilercr pilercr.1
More information about the Debian-med-packaging
mailing list