Source: txt2tags
Version: txt2tags: FTBFS in buster/sid (failing tests)
Followup-For: Bug #902523
Control: tags -1 patch

Dear Maintainer,

The attached debdiff fixes the issue by using a reproducible
getCurrentDate value to match self.currdate in txt2tags.

I've uploaded an NMU to DELAYED/2 per DevRef 5.11.1.

Kind Regards,

Bas
diff -Nru txt2tags-2.6/debian/changelog txt2tags-2.6/debian/changelog
--- txt2tags-2.6/debian/changelog       2018-04-22 19:07:13.000000000 +0200
+++ txt2tags-2.6/debian/changelog       2018-07-09 10:26:25.000000000 +0200
@@ -1,3 +1,12 @@
+txt2tags (2.6-4.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch to fix macro test failure by using reproducible
+    getCurrentDate value to match self.currdate in txt2tags.
+    (closes: #902523)
+
+ -- Bas Couwenberg <sebas...@debian.org>  Mon, 09 Jul 2018 10:26:25 +0200
+
 txt2tags (2.6-4) unstable; urgency=medium
 
   [ Jakub Wilk ]
diff -Nru txt2tags-2.6/debian/patches/macro.patch 
txt2tags-2.6/debian/patches/macro.patch
--- txt2tags-2.6/debian/patches/macro.patch     1970-01-01 01:00:00.000000000 
+0100
+++ txt2tags-2.6/debian/patches/macro.patch     2018-07-09 10:20:12.000000000 
+0200
@@ -0,0 +1,15 @@
+Description: Use reproducible getCurrentDate value to match self.currdate in 
txt2tags.
+Author: Bas Couwenberg <sebas...@debian.org>
+Bug-Debian: https://bugs.debian.org/902523
+
+--- a/test/lib.py
++++ b/test/lib.py
+@@ -56,7 +56,7 @@ def getFileMtime(file):
+       return ret
+ 
+ def getCurrentDate():
+-      return time.strftime('%Y%m%d',time.localtime(time.time()))
++      return 
time.strftime('%Y%m%d',time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', 
time.time()))))
+ 
+ #
+ # the hot tools
diff -Nru txt2tags-2.6/debian/patches/series txt2tags-2.6/debian/patches/series
--- txt2tags-2.6/debian/patches/series  2018-04-22 19:07:13.000000000 +0200
+++ txt2tags-2.6/debian/patches/series  2018-07-09 10:02:06.000000000 +0200
@@ -3,3 +3,4 @@
 manpages.patch
 skip-error-csv-test.patch
 reproducible.patch
+macro.patch

Reply via email to