Source: qt6-declarative Version: 6.3.1+dfsg-5 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
qt6-declarative fails to cross build from source. The immediate failure is QT_HOST_PATH not being specified. A few more things come up and I've created a patch for your convenience. The details are in the changelog. Please consider applying it. Helmut
diff --minimal -Nru qt6-declarative-6.3.1+dfsg/debian/changelog qt6-declarative-6.3.1+dfsg/debian/changelog --- qt6-declarative-6.3.1+dfsg/debian/changelog 2022-09-04 07:34:45.000000000 +0200 +++ qt6-declarative-6.3.1+dfsg/debian/changelog 2022-10-29 16:02:51.000000000 +0200 @@ -1,3 +1,13 @@ +qt6-declarative (6.3.1+dfsg-5.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Pass QT_HOST_* variables to cmake. + + Build tools when cross compiling. + + Build depend on ourselves during cross compiling. + + -- Helmut Grohne <hel...@subdivi.de> Sat, 29 Oct 2022 16:02:51 +0200 + qt6-declarative (6.3.1+dfsg-5) unstable; urgency=medium * Team upload. diff --minimal -Nru qt6-declarative-6.3.1+dfsg/debian/control qt6-declarative-6.3.1+dfsg/debian/control --- qt6-declarative-6.3.1+dfsg/debian/control 2022-09-03 20:11:00.000000000 +0200 +++ qt6-declarative-6.3.1+dfsg/debian/control 2022-10-29 16:02:51.000000000 +0200 @@ -16,6 +16,7 @@ pkg-kde-tools, qt6-base-dev (>= 6.3.1+dfsg~), qt6-base-private-dev (>= 6.3.1+dfsg~), + qt6-declarative-dev:native <cross>, qt6-languageserver-private-dev (>= 6.3.1~), Standards-Version: 4.6.1 Homepage: https://www.qt.io/developers/ diff --minimal -Nru qt6-declarative-6.3.1+dfsg/debian/rules qt6-declarative-6.3.1+dfsg/debian/rules --- qt6-declarative-6.3.1+dfsg/debian/rules 2021-11-20 19:53:33.000000000 +0100 +++ qt6-declarative-6.3.1+dfsg/debian/rules 2022-10-29 16:02:51.000000000 +0200 @@ -6,12 +6,22 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all +extra_cmake_args := + +ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) +extra_cmake_args += \ + -DQT_HOST_PATH=/usr \ + -DQT_HOST_PATH_CMAKE_DIR=/usr/lib/${DEB_BUILD_MULTIARCH}/cmake \ + -DQT_BUILD_TOOLS_WHEN_CROSSCOMPILING=ON +endif + %: dh $@ --with pkgkde_symbolshelper --buildsystem=cmake+ninja override_dh_auto_configure: dh_auto_configure -- \ - -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) + -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \ + $(extra_cmake_args) execute_after_dh_auto_install: # Reproducible builds: remove build paths from .prl files