[neon/qt6/qt6-doc/Neon/unstable] debian: cludge it
Carlos De Maine
null at kde.org
Mon Oct 28 07:19:08 GMT 2024
Git commit 538c745d35e6b8275359fd07fbd43a97ede87af7 by Carlos De Maine.
Committed on 28/10/2024 at 07:19.
Pushed by carlosdem into branch 'Neon/unstable'.
cludge it
M +21 -2 debian/rules
https://invent.kde.org/neon/qt6/qt6-doc/-/commit/538c745d35e6b8275359fd07fbd43a97ede87af7
diff --git a/debian/rules b/debian/rules
index 649f3a0..cce64f1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,28 @@
#!/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
+
+#### uncomment when bootstrapping a new qt release ####
+#export DEB_BUILD_PROFILES := ${DEB_BUILD_PROFILES} nodoc
+
+ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)),)
+override_dh_auto_build-indep:
+ dh_auto_build
+
+override_dh_auto_install-indep:
+ DESTDIR=$(CURDIR)/debian/tmp dh_auto_build -- install
+endif
+
# QT_HOST_PATH isn't passed in cross-builds
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
- extra_cmake_args += -DQT_HOST_PATH=/usr
+ 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
%:
@@ -24,4 +43,4 @@ override_dh_auto_install-indep:
DESTDIR=$(CURDIR)/debian/tmp dh_auto_build -- install_docs
# Remove build path from index files.
find $(CURDIR)/debian/tmp/usr/share/qt6/doc -type f -name *.index -exec \
- sed -i 's@$(CURDIR)/@@g' {} \;
\ No newline at end of file
+ sed -i 's@$(CURDIR)/@@g' {} \;
More information about the Neon-commits
mailing list