Source: centrifuge
Version: 1.0.3-6
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

centrifuge fails to cross build from source, because its Makefile
detects a -m64 flag from uname and that can happen to be the wrong
result. The attached patch passes dpkg's view of bits and generally
removes any -m64 flag unneeded on Debian toolchains. Surprisingly it
still fails to build due to narrowing conversions. I suspect that there
is a difference in the cross toolchain. Please consider applying the
attached patch and close this bug when doing so.

Helmut
diff --minimal -Nru centrifuge-1.0.3/debian/changelog 
centrifuge-1.0.3/debian/changelog
--- centrifuge-1.0.3/debian/changelog   2020-11-07 07:26:48.000000000 +0100
+++ centrifuge-1.0.3/debian/changelog   2020-11-08 07:29:26.000000000 +0100
@@ -1,3 +1,10 @@
+centrifuge (1.0.3-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Improve cross building: Don't detect -m64 from uname. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 08 Nov 2020 07:29:26 +0100
+
 centrifuge (1.0.3-6) unstable; urgency=medium
 
   * Fix patch for other architectures than amd64
diff --minimal -Nru centrifuge-1.0.3/debian/rules centrifuge-1.0.3/debian/rules
--- centrifuge-1.0.3/debian/rules       2020-11-07 07:26:48.000000000 +0100
+++ centrifuge-1.0.3/debian/rules       2020-11-08 07:29:24.000000000 +0100
@@ -11,6 +11,9 @@
 %:
        dh $@ --with python3
 
+override_dh_auto_build:
+       dh_auto_build -- BITS=$(DEB_HOST_ARCH_BITS) BITS_FLAG=
+
 override_dh_auto_install:
        dh_auto_install -- prefix=/usr/lib/centrifuge
        mv debian/$(DEB_SOURCE)/usr/lib/centrifuge/bin/* 
debian/$(DEB_SOURCE)/usr/lib/centrifuge/

Reply via email to