Bug#959525: x2gothinclient FTCBFS: uses the build architecture qmake
Source: x2gothinclient
Version: 1.5.0.1-5
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
x2gothinclient fails to cross build from source, because debian/rules
invokes the build architecture qmake. Please use the host architecture
one. An easy solution (implemented in the attached patch) is running it
via dh_auto_configure. Alternatively, use $(DEB_HOST_GNU_TYPE)-qmake or
$(QMAKE) from /usr/share/dpkg/buildtools.mk.
Helmut
diff --minimal -Nru x2gothinclient-1.5.0.1/debian/changelog x2gothinclient-1.5.0.1/debian/changelog
--- x2gothinclient-1.5.0.1/debian/changelog 2020-04-18 23:58:10.000000000 +0200
+++ x2gothinclient-1.5.0.1/debian/changelog 2020-05-03 07:27:38.000000000 +0200
@@ -1,3 +1,10 @@
+x2gothinclient (1.5.0.1-5.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Let dh_auto_configure use a cross qmake. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Sun, 03 May 2020 07:27:38 +0200
+
x2gothinclient (1.5.0.1-5) unstable; urgency=medium
* debian/control:
diff --minimal -Nru x2gothinclient-1.5.0.1/debian/rules x2gothinclient-1.5.0.1/debian/rules
--- x2gothinclient-1.5.0.1/debian/rules 2019-12-13 14:15:22.000000000 +0100
+++ x2gothinclient-1.5.0.1/debian/rules 2020-05-03 07:27:38.000000000 +0200
@@ -12,7 +12,7 @@
dh $@ $(DHFLAGS)
override_dh_auto_configure:
- cd cdmanager/powerej && qmake powerej.pro QMAKE_CFLAGS="${CPPFLAGS} ${CFLAGS}" QMAKE_CXXFLAGS="${CPPFLAGS} ${CXXFLAGS}" QMAKE_LFLAGS="${LDFLAGS}" $(QMAKE_OPTS)
+ dh_auto_configure --sourcedirectory=cdmanager/powerej -- powerej.pro QMAKE_CFLAGS="${CPPFLAGS} ${CFLAGS}" QMAKE_CXXFLAGS="${CPPFLAGS} ${CXXFLAGS}" QMAKE_LFLAGS="${LDFLAGS}" $(QMAKE_OPTS)
dh_auto_configure $(DHFLAGS)
override_dh_auto_build:
Reply to: