Source: x2gokdriveclient Version: 0.0.0.1-1 Tags: patch User: [email protected] Usertags: ftcbfs
x2gokdriveclient fails to cross build from source for two reasons. The immediate failure happens when running lrelease. This can work, but when it operates on a .pro file it requires a native qmake while usually, Build-Depends only imply a host architecture qmake. Thus a separate dependency is required here. Then when it runs qmake, it uses the native qmake, which fails to find supporting libraries, while it should be using the host architecture one. dpkg's buildtools.mk can be used to compute the name of the qmake binary. I'm attaching a patch for your convenience. Helmut
diff --minimal -Nru x2gokdriveclient-0.0.0.1/debian/changelog x2gokdriveclient-0.0.0.1/debian/changelog --- x2gokdriveclient-0.0.0.1/debian/changelog 2023-06-19 07:28:32.000000000 +0200 +++ x2gokdriveclient-0.0.0.1/debian/changelog 2023-07-07 13:21:13.000000000 +0200 @@ -1,3 +1,12 @@ +x2gokdriveclient (0.0.0.1-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + B-D: qt5-qmake:native for running lrelease. + + Pass a cross qmake to make. + + -- Helmut Grohne <[email protected]> Fri, 07 Jul 2023 13:21:13 +0200 + x2gokdriveclient (0.0.0.1-1) unstable; urgency=medium * Initial upload to Debian. (Closes: #1038620). diff --minimal -Nru x2gokdriveclient-0.0.0.1/debian/control x2gokdriveclient-0.0.0.1/debian/control --- x2gokdriveclient-0.0.0.1/debian/control 2023-06-19 07:16:15.000000000 +0200 +++ x2gokdriveclient-0.0.0.1/debian/control 2023-07-07 13:21:12.000000000 +0200 @@ -13,6 +13,7 @@ libxcb1-dev, libxcb-xfixes0-dev, man2html-base, + qt5-qmake:native, zlib1g-dev Standards-Version: 4.6.2 Rules-Requires-Root: binary-targets diff --minimal -Nru x2gokdriveclient-0.0.0.1/debian/rules x2gokdriveclient-0.0.0.1/debian/rules --- x2gokdriveclient-0.0.0.1/debian/rules 2023-06-19 07:04:14.000000000 +0200 +++ x2gokdriveclient-0.0.0.1/debian/rules 2023-07-07 13:21:13.000000000 +0200 @@ -12,6 +12,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk +include /usr/share/dpkg/buildtools.mk export QT_SELECT=qt5 @@ -26,7 +27,7 @@ dh_auto_configure override_dh_auto_build: - dh_auto_build + dh_auto_build -- QMAKE_BINARY=$(QMAKE) override_dh_clean: dh_clean

