[neon/extras/kraft/Neon/release] debian: create a fake .tag for running cmake

Pino Toscano null at kde.org
Wed Oct 4 11:17:06 BST 2023


Git commit 29a8592b1834efba58fa4c17f64f3106b5616b50 by Pino Toscano.
Committed on 17/09/2023 at 04:36.
Pushed by jriddell into branch 'Neon/release'.

create a fake .tag for running cmake

sigh

M  +2    -0    debian/changelog
M  +4    -0    debian/rules

https://invent.kde.org/neon/extras/kraft/-/commit/29a8592b1834efba58fa4c17f64f3106b5616b50

diff --git a/debian/changelog b/debian/changelog
index d945cfb..49f248c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,8 @@ kraft (1.1-0r1) UNRELEASED; urgency=medium
       cmake-fix-empty-replace.diff
     - do not try to get git branch information if there is no .git directory;
       patch cmake-fix-without-git.diff
+    - create a ".tag" file for the cmake run, since apparently the build system
+      assumes it is there (while it is not) in case .git is not present
 
  -- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>  Sun, 17 Sep 2023 03:50:07 +0200
 
diff --git a/debian/rules b/debian/rules
index f129ce6..a621c3f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,11 @@
 	dh $@ --with kf5,python3
 
 override_dh_auto_configure:
+	# workaround lack of ".tag: top-level file assumed by the build system
+	# in case no .git directory is present
+	touch .tag
 	dh_auto_configure -Skf5 -- -DAKONADI_LEGACY_BUILD=ON
+	rm .tag
 
 override_dh_auto_test:
 	xvfb-run -a env KRAFT_HOME="$(CURDIR)" dh_auto_test --no-parallel



More information about the Neon-commits mailing list