From 6fabe0508858da141967fea90bc2abdabd1fdb07 Mon Sep 17 00:00:00 2001
From: Slávek Banko <slavek.banko@axis.cz>
Date: Wed, 11 Feb 2026 18:45:22 +0100
Subject: DEB tde-cdbs: Fix FTBFS with date command from Rust Coreutils.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The date command from Rust Coreutils is not fully compatible
with the date command from GNU Coreutils and strictly requires
the date output format to be after options.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
---
 debian/_base/metapackages/tde-cdbs/debian/changelog | 8 ++++++++
 debian/_base/metapackages/tde-cdbs/tde.mk           | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/_base/metapackages/tde-cdbs/debian/changelog b/debian/_base/metapackages/tde-cdbs/debian/changelog
index e1c768dd8..8b30a4c05 100644
--- a/debian/_base/metapackages/tde-cdbs/debian/changelog
+++ b/debian/_base/metapackages/tde-cdbs/debian/changelog
@@ -1,3 +1,11 @@
+tde-cdbs (4:0.2-0) unstable; urgency=low
+
+  * The date command from Rust Coreutils is not fully compatible
+    with the date command from GNU Coreutils and strictly requires
+    the date output format to be after options.
+
+ -- Slávek Banko <slavek.banko@axis.cz>  Wed, 11 Feb 2026 18:38:28 +0100
+
 tde-cdbs (4:0.1-0) unstable; urgency=low
 
   * The epoch change is for historical reasons from the KDE3 era.
diff --git a/debian/_base/metapackages/tde-cdbs/tde.mk b/debian/_base/metapackages/tde-cdbs/tde.mk
index 54314c41b..6afe6e6f5 100644
--- a/debian/_base/metapackages/tde-cdbs/tde.mk
+++ b/debian/_base/metapackages/tde-cdbs/tde.mk
@@ -188,7 +188,7 @@ endif
 	echo "# TDE package information" >.tdepkginfo
 	dpkg-parsechangelog | sed -n "s|^Source: |Name: |p" >>.tdepkginfo
 	dpkg-parsechangelog | sed -n "s|^Version: |Version: |p" >>.tdepkginfo
-	date +"DateTime: %m/%d/%Y %H:%M" -u -d "$$(dpkg-parsechangelog | sed -n 's|^Date: ||p')" >>.tdepkginfo
+	date -u -d "$$(dpkg-parsechangelog | sed -n 's|^Date: ||p')" +"DateTime: %m/%d/%Y %H:%M" >>.tdepkginfo
 
 post-patches:: .tdepkginfo
 
-- 
cgit v1.2.3

