[neon/qt6/qt6-tools/Neon/release] debian: more build profile abuse
Carlos De Maine
null at kde.org
Thu Dec 14 11:20:52 GMT 2023
Git commit 1c0cd1e692ecc6c8576e63fecac7f72f4aba8d90 by Carlos De Maine.
Committed on 14/12/2023 at 12:20.
Pushed by carlosdem into branch 'Neon/release'.
more build profile abuse
M +3 -3 debian/control
M +9 -3 debian/rules
https://invent.kde.org/neon/qt6/qt6-tools/-/commit/1c0cd1e692ecc6c8576e63fecac7f72f4aba8d90
diff --git a/debian/control b/debian/control
index 4b9f5c8..b612d69 100644
--- a/debian/control
+++ b/debian/control
@@ -23,9 +23,9 @@ Build-Depends: clang-14,
pkg-kde-tools,
qt6-base-dev (>= 6.6.1~),
qt6-declarative-dev (>= 6.6.1~)
-Build-Depends-Indep: qt6-base-dev (>= 6.6~) <!nodoc>,
- qt6-base-doc (>= 6.6~) <!nodoc>,
- qt6-documentation-tools (>= 6.6~) <!nodoc>,
+Build-Depends-Indep: qt6-base-dev (>= 6.6~) <!neon_nodoc>,
+ qt6-base-doc (>= 6.6~) <!neon_nodoc>,
+ qt6-documentation-tools (>= 6.6~) <!neon_nodoc>,
Standards-Version: 4.6.2
Homepage: https://www.qt.io/developers/
Vcs-Browser: https://salsa.debian.org/qt-kde-team/qt6/qt6-tools
diff --git a/debian/rules b/debian/rules
index 915419d..b461d39 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,8 +4,7 @@ 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_OPTIONS := ${DEB_BUILD_OPTIONS} nodoc
-#export DEB_BUILD_PROFILES := ${DEB_BUILD_PROFILES} nodoc
+#export DEB_BUILD_PROFILES := ${DEB_BUILD_PROFILES} neon_nodoc
# need gcc 12.1 for mold to be able to process --gdb-index
@@ -25,7 +24,8 @@ override_dh_auto_configure:
-DQT_UNITY_BUILD=ON \
$(extra_cmake_args)
-
+## attention to the negation
+ifneq ($(filter neon_nodoc,$(DEB_BUILD_PROFILES)),)
override_dh_auto_build-indep:
dh_auto_build -- docs
@@ -34,4 +34,10 @@ override_dh_auto_install-indep:
# Remove build path from index files.
find $(CURDIR)/debian/tmp/usr/share/qt6/doc -type f -name *.index -exec \
sed -i 's@$(CURDIR)/@@g' {} \;
+else
+override_dh_auto_build-indep:
+ dh_auto_build
+override_dh_auto_install-indep:
+ DESTDIR=$(CURDIR)/debian/tmp dh_auto_build -- install
+endif
More information about the Neon-commits
mailing list