[neon/qt6/qt6-translations/Neon/release] debian: update boilerplate

Carlos De Maine null at kde.org
Mon Oct 28 07:17:08 GMT 2024


Git commit ffa8f97c602c2d2f3457dceec07797a968bca4f5 by Carlos De Maine.
Committed on 28/10/2024 at 07:17.
Pushed by carlosdem into branch 'Neon/release'.

update boilerplate

M  +13   -3    debian/rules

https://invent.kde.org/neon/qt6/qt6-translations/-/commit/ffa8f97c602c2d2f3457dceec07797a968bca4f5

diff --git a/debian/rules b/debian/rules
index 21b41b0..a567d07 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,21 @@
 #!/usr/bin/make -f
+export DH_VERBOSE = 1
+
+# Use already defined DEB_HOST_* variables.
 include /usr/share/dpkg/architecture.mk
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
 
-# need gcc 12.1 for mold to be able to process --gdb-index
-export CC=gcc-12
-export CXX=g++-12
+#### uncomment when bootstrapping a new qt release ####
+#export DEB_BUILD_PROFILES := ${DEB_BUILD_PROFILES} nodoc
+
+# QT_HOST_PATH isn't passed in cross-builds
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+	cmake_extra_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


More information about the Neon-commits mailing list