[Debian-med-packaging] Bug#939512: libfastahack FTCBFS: confuses build and host

Helmut Grohne helmut at subdivi.de
Thu Sep 5 19:01:03 BST 2019


Source: libfastahack
Version: 1.0.0+dfsg-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

libfastahack fails to cross build from source, because debian/rules
confuses the terms "build" and "host". Please refer to man
dpkg-architecture for their definition. Please consider applying the
attached patch to make libfastahack cross buildable.

Helmut
-------------- next part --------------
diff --minimal -Nru libfastahack-1.0.0+dfsg/debian/changelog libfastahack-1.0.0+dfsg/debian/changelog
--- libfastahack-1.0.0+dfsg/debian/changelog	2019-09-04 08:37:29.000000000 +0200
+++ libfastahack-1.0.0+dfsg/debian/changelog	2019-09-05 19:57:53.000000000 +0200
@@ -1,3 +1,10 @@
+libfastahack (1.0.0+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Fix build/host confusion. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Thu, 05 Sep 2019 19:57:53 +0200
+
 libfastahack (1.0.0+dfsg-1) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru libfastahack-1.0.0+dfsg/debian/rules libfastahack-1.0.0+dfsg/debian/rules
--- libfastahack-1.0.0+dfsg/debian/rules	2019-09-04 08:37:29.000000000 +0200
+++ libfastahack-1.0.0+dfsg/debian/rules	2019-09-05 19:57:51.000000000 +0200
@@ -18,16 +18,16 @@
 		    debian/tmp/usr/lib/*/*.so
 
 override_dh_makeshlibs:
-ifeq ($(DEB_BUILD_ARCH),$(filter $(DEB_BUILD_ARCH), amd64 arm64 mips64el ppc64el ia64 kfreebsd-amd64 risc64 sparc64))
-	echo "On architecture $(DEB_BUILD_ARCH) symbols file is provided"
+ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH), amd64 arm64 mips64el ppc64el ia64 kfreebsd-amd64 risc64 sparc64))
+	echo "On architecture $(DEB_HOST_ARCH) symbols file is provided"
 else
-	echo "Symbols file for architecture $(DEB_BUILD_ARCH) is not provided"
+	echo "Symbols file for architecture $(DEB_HOST_ARCH) is not provided"
 	mkdir -p debian/hidesymbols
 	mv debian/*.symbols debian/hidesymbols
 endif
 	dh_makeshlibs
-ifeq ($(DEB_BUILD_ARCH),$(filter $(DEB_BUILD_ARCH), amd64 arm64 mips64el ppc64el ia64 kfreebsd-amd64 risc64 sparc64))
-	echo "dh_makeshlibs for architecture $(DEB_BUILD_ARCH) including symbols done"
+ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH), amd64 arm64 mips64el ppc64el ia64 kfreebsd-amd64 risc64 sparc64))
+	echo "dh_makeshlibs for architecture $(DEB_HOST_ARCH) including symbols done"
 else
 	# restore original debian/ dir to enable building twice in a row
 	mv debian/hidesymbols/*.symbols debian


More information about the Debian-med-packaging mailing list