[packages/ddate] - rel 3, use correct time type

baggins baggins at pld-linux.org
Sat Mar 7 22:13:51 CET 2026


commit 52ff6a82a245ab6dc334e3a8c08e177fee123c70
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Mar 7 23:13:33 2026 +0100

    - rel 3, use correct time type

 ddate.spec   |  4 +++-
 time_t.patch | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/ddate.spec b/ddate.spec
index 52b9981..95e073f 100644
--- a/ddate.spec
+++ b/ddate.spec
@@ -2,7 +2,7 @@ Summary:	Convert Gregorian dates to Discordian dates
 Summary(pl.UTF-8):	Tłumaczenie dat gregoriańskich na diskordiańskie
 Name:		ddate
 Version:	0.2.1
-Release:	2
+Release:	3
 License:	Public Domain
 Group:		Applications
 Source0:	https://github.com/bo0ts/ddate/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
@@ -10,6 +10,7 @@ Source0:	https://github.com/bo0ts/ddate/archive/v%{version}.tar.gz?/%{name}-%{ve
 # temporarily use util-linux mans tarball
 Source1:	http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/util-linux-non-english-man-pages.tar.bz2
 # Source1-md5:	3c940c7e7fe699eaa2ddb1bffb3de2fe
+Patch0:		time_t.patch
 URL:		https://github.com/bo0ts/ddate/
 BuildRequires:	cmake >= 2.8
 BuildRequires:	rpmbuild(macros) >= 1.605
@@ -25,6 +26,7 @@ diskordiańskie.
 
 %prep
 %setup -q -a1
+%patch -P0 -p1
 
 %build
 %cmake .
diff --git a/time_t.patch b/time_t.patch
new file mode 100644
index 0000000..f4444a9
--- /dev/null
+++ b/time_t.patch
@@ -0,0 +1,11 @@
+--- ddate-0.2.1/ddate.c~	2012-06-19 23:57:14.000000000 +0200
++++ ddate-0.2.1/ddate.c	2026-03-07 23:12:08.533333437 +0100
+@@ -173,7 +173,7 @@
+ 
+ int
+ main (int argc, char *argv[]) {
+-    long t;
++    time_t t;
+     struct tm *eris;
+     int bob,raw;
+     struct disc_time hastur;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ddate.git/commitdiff/52ff6a82a245ab6dc334e3a8c08e177fee123c70



More information about the pld-cvs-commit mailing list