I am uploading a NMU with the patch included.
Please find the debdiff attached.
diff -Nru ddate-0.2.2/debian/changelog ddate-0.2.2/debian/changelog
--- ddate-0.2.2/debian/changelog        2014-10-08 09:44:15.000000000 +0200
+++ ddate-0.2.2/debian/changelog        2025-03-19 20:16:55.000000000 +0100
@@ -1,3 +1,10 @@
+ddate (0.2.2-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * Use time_t for time (Closes: #1091251)
+
+ -- Bastian Germann <b...@debian.org>  Wed, 19 Mar 2025 20:16:55 +0100
+
 ddate (0.2.2-1) unstable; urgency=low
 
   * Initial release (Closes: #764325)
diff -Nru 
ddate-0.2.2/debian/patches/Fix-segfault-of-sizeof-long-not-time_t.patch 
ddate-0.2.2/debian/patches/Fix-segfault-of-sizeof-long-not-time_t.patch
--- ddate-0.2.2/debian/patches/Fix-segfault-of-sizeof-long-not-time_t.patch     
1970-01-01 01:00:00.000000000 +0100
+++ ddate-0.2.2/debian/patches/Fix-segfault-of-sizeof-long-not-time_t.patch     
2025-03-19 20:15:05.000000000 +0100
@@ -0,0 +1,18 @@
+Origin: upstream, ac96f5555247c7a735daed1a8e1b4fa18560ab52
+From: Denis Bychkov <mano...@gmail.com>
+Date: Fri, 22 May 2015 00:14:55 -0400
+Subject: Fix segfault of the architectures where sizeof(long) != sizeof(time_t)
+---
+diff --git a/ddate.c b/ddate.c
+index 4c2a0f8..c0a6bf3 100644
+--- a/ddate.c
++++ b/ddate.c
+@@ -183,7 +183,7 @@ struct disc_time makeday(int,int,int);
+ 
+ int
+ main (int argc, char *argv[]) {
+-    long t;
++    time_t t;
+     struct tm *eris;
+     int bob,raw;
+     struct disc_time hastur;
diff -Nru ddate-0.2.2/debian/patches/series ddate-0.2.2/debian/patches/series
--- ddate-0.2.2/debian/patches/series   1970-01-01 01:00:00.000000000 +0100
+++ ddate-0.2.2/debian/patches/series   2025-03-19 20:16:48.000000000 +0100
@@ -0,0 +1 @@
+Fix-segfault-of-sizeof-long-not-time_t.patch

Reply via email to