Source: qt6-languageserver Version: 6.3.1-2 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
qt6-languageserver fails to cross build from source, because it does not pass QT_HOST_PATH to cmake. I'm attaching a patch for your convenience. Helmut
diff --minimal -Nru qt6-languageserver-6.3.1/debian/changelog qt6-languageserver-6.3.1/debian/changelog --- qt6-languageserver-6.3.1/debian/changelog 2022-08-15 19:22:45.000000000 +0200 +++ qt6-languageserver-6.3.1/debian/changelog 2022-10-31 11:24:16.000000000 +0100 @@ -1,3 +1,10 @@ +qt6-languageserver (6.3.1-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Pass QT_HOST_PATH. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Mon, 31 Oct 2022 11:24:16 +0100 + qt6-languageserver (6.3.1-2) unstable; urgency=medium [ Patrick Franz ] diff --minimal -Nru qt6-languageserver-6.3.1/debian/rules qt6-languageserver-6.3.1/debian/rules --- qt6-languageserver-6.3.1/debian/rules 2022-06-19 13:14:41.000000000 +0200 +++ qt6-languageserver-6.3.1/debian/rules 2022-10-31 11:24:14.000000000 +0100 @@ -6,12 +6,19 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all +cmake_extra_args := + +ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) +cmake_extra_args += -DQT_HOST_PATH=/usr +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) \ + $(cmake_extra_args) execute_after_dh_auto_install: # Reproducible builds: remove build paths from .prl files