Source: pachi
Version: 1:1.0-9
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

pachi fails to cross build from source, because it compiles for the
build architecture. It actually tries passing --host to ./configure and
besides mixing up host and build, the configure script is too old and
entirely ignores those flags. Rather, one is supposed to export the
various tool variables. Using dpkg's buildtools.mk is a simple way to do
that. Beyond this, it also hard codes the build architecture strip,
which also happens to be supplied from buildtools.mk. Please consider
applying the attached patch. Please also consider using debhelper, but
that is beyond the scope of this bug.

Helmut
diff --minimal -Nru pachi-1.0/debian/changelog pachi-1.0/debian/changelog
--- pachi-1.0/debian/changelog  2019-02-16 18:49:05.000000000 +0100
+++ pachi-1.0/debian/changelog  2020-04-18 20:30:22.000000000 +0200
@@ -1,3 +1,10 @@
+pachi (1:1.0-9.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dpkg's buildtools.mk supply tools. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 18 Apr 2020 20:30:22 +0200
+
 pachi (1:1.0-9) unstable; urgency=low
 
   * Recompiled against sid.
diff --minimal -Nru pachi-1.0/debian/rules pachi-1.0/debian/rules
--- pachi-1.0/debian/rules      2019-02-16 18:49:05.000000000 +0100
+++ pachi-1.0/debian/rules      2020-04-18 20:30:22.000000000 +0200
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 
+DPKG_EXPORT_BUILDTOOLS=1
+include /usr/share/dpkg/buildtools.mk
+
 testdir   = test -f src/faes.cpp && test -f debian/rules
 testroot  = test x`whoami` = xroot
 
@@ -51,7 +54,7 @@
                debian/pachi/usr/share/doc/pachi/License.txt
 
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-       strip --strip-unneeded -R .comment -R .note debian/pachi/usr/games/pachi
+       $(STRIP) --strip-unneeded -R .comment -R .note 
debian/pachi/usr/games/pachi
 endif
 
        install -D -p -m 0644 debian/menu      debian/pachi/usr/share/menu/pachi

Reply via email to