Source: ukui-interface Version: 1.0.1-2 Tags: patch User: [email protected] Usertags: ftcbfs
ukui-interface fails to cross build from source, because debian/rules hard codes the build architecture qmake. There are two easy ways to get the host architecture one. Using dh_auto_configure (and yeah you can call this multiple times with different build systems) would be the simplest. Using dpkg's buildtools.mk is the least invasive. I'm attaching a patch of the latter approach for your convenience. Helmut
diff --minimal -Nru ukui-interface-1.0.1/debian/changelog ukui-interface-1.0.1/debian/changelog --- ukui-interface-1.0.1/debian/changelog 2021-11-02 07:53:40.000000000 +0100 +++ ukui-interface-1.0.1/debian/changelog 2023-03-08 07:13:31.000000000 +0100 @@ -1,3 +1,10 @@ +ukui-interface (1.0.1-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Use the host architecture qmake. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Wed, 08 Mar 2023 07:13:31 +0100 + ukui-interface (1.0.1-2) unstable; urgency=medium * Source only upload for migration to testing. diff --minimal -Nru ukui-interface-1.0.1/debian/rules ukui-interface-1.0.1/debian/rules --- ukui-interface-1.0.1/debian/rules 2021-07-29 09:09:37.000000000 +0200 +++ ukui-interface-1.0.1/debian/rules 2023-03-08 07:13:29.000000000 +0100 @@ -3,6 +3,7 @@ #export DH_VERBOSE = 1 DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk +include /usr/share/dpkg/buildtools.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed @@ -30,7 +31,7 @@ override_dh_auto_build: dh_auto_build mkdir -p $(LOG4QT_BUILD_DIR) - cd $(LOG4QT_BUILD_DIR) && qmake -makefile "QMAKE_CFLAGS_RELEASE=-g -O2 -fdebug-prefix-map=$(LOG4QT_BUILD_DIR)=. \ + cd $(LOG4QT_BUILD_DIR) && $(QMAKE) -makefile "QMAKE_CFLAGS_RELEASE=-g -O2 -fdebug-prefix-map=$(LOG4QT_BUILD_DIR)=. \ -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" \ "QMAKE_CFLAGS_DEBUG=-g -O2 -fdebug-prefix-map=$(LOG4QT_BUILD_DIR)=. -fstack-protector-strong \ -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" \

