Bug#1107996: qt6-grpc FTCBFS: multiple reasons
Source: qt6-grpc
Version: 6.8.2-3
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
qt6-grpc fails to cross build from source. The immediate failure is due
to expecteding a built qtprotobufgen but not finding it. It expects a
native build of itself. We may provide it with a <cross> tagged
additional build dependency. In order to find it, we also have to set
QT_HOST_PATH_CMAKE_DIR. Then, the build mostly finishes but it now lacks
qtprotobufgen and dh_install fails. We need to also set
QT_FORCE_BUILD_TOOLS and then it succeeds. Please consider applying the
attached patch in forky.
Helmut
diff --minimal -Nru qt6-grpc-6.8.2/debian/changelog qt6-grpc-6.8.2/debian/changelog
--- qt6-grpc-6.8.2/debian/changelog 2025-03-01 12:37:46.000000000 +0100
+++ qt6-grpc-6.8.2/debian/changelog 2025-06-18 07:59:35.000000000 +0200
@@ -1,3 +1,12 @@
+qt6-grpc (6.8.2-3.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Depend on a native build and instruct CMake to use it.
+ + Always build tools.
+
+ -- Helmut Grohne <helmut@subdivi.de> Wed, 18 Jun 2025 07:59:35 +0200
+
qt6-grpc (6.8.2-3) unstable; urgency=medium
* Upload to unstable.
diff --minimal -Nru qt6-grpc-6.8.2/debian/control qt6-grpc-6.8.2/debian/control
--- qt6-grpc-6.8.2/debian/control 2025-03-01 12:37:34.000000000 +0100
+++ qt6-grpc-6.8.2/debian/control 2025-06-18 07:59:34.000000000 +0200
@@ -19,6 +19,7 @@
qt6-base-private-dev (>= 6.8.2+dfsg~),
qt6-declarative-dev (>= 6.8.2+dfsg~),
qt6-declarative-private-dev (>= 6.8.2+dfsg~),
+ qt6-grpc-dev:native <cross>,
Build-Depends-Indep: qt6-base-dev (>= 6.8~) <!nodoc>,
qt6-documentation-tools (>= 6.8~) <!nodoc>,
Standards-Version: 4.7.0
diff --minimal -Nru qt6-grpc-6.8.2/debian/rules qt6-grpc-6.8.2/debian/rules
--- qt6-grpc-6.8.2/debian/rules 2025-02-08 00:10:52.000000000 +0100
+++ qt6-grpc-6.8.2/debian/rules 2025-06-18 07:59:35.000000000 +0200
@@ -6,7 +6,7 @@
# cross-builds
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
- extra_cmake_args += -DQT_HOST_PATH=/usr
+ extra_cmake_args += -DQT_HOST_PATH=/usr -DQT_HOST_PATH_CMAKE_DIR=/usr/lib/${DEB_BUILD_MULTIARCH}/cmake
endif
%:
@@ -16,6 +16,7 @@
dh_auto_configure -- \
--log-level=STATUS \
-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
+ -DQT_FORCE_BUILD_TOOLS=ON \
$(extra_cmake_args)
override_dh_auto_build-indep:
Reply to: