Control: tags -1 patch
I am uploading a NMU to fix this. Please find the changes attached.
diff -Nru calcurse-4.8.1/debian/changelog calcurse-4.8.1/debian/changelog --- calcurse-4.8.1/debian/changelog 2025-03-05 22:14:01.000000000 +0100 +++ calcurse-4.8.1/debian/changelog 2025-03-19 12:04:00.000000000 +0100 @@ -1,3 +1,10 @@ +calcurse (4.8.1-1.3) unstable; urgency=medium + + * Non-maintainer upload. + * Use time_t for time instead of long. (Closes: #1100813) + + -- Bastian Germann <b...@debian.org> Wed, 19 Mar 2025 12:04:00 +0100 + calcurse (4.8.1-1.2) unstable; urgency=medium * Non-maintainer upload. diff -Nru calcurse-4.8.1/debian/patches/series calcurse-4.8.1/debian/patches/series --- calcurse-4.8.1/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ calcurse-4.8.1/debian/patches/series 2025-03-19 11:59:39.000000000 +0100 @@ -0,0 +1 @@ +time_t_overflow.patch diff -Nru calcurse-4.8.1/debian/patches/time_t_overflow.patch calcurse-4.8.1/debian/patches/time_t_overflow.patch --- calcurse-4.8.1/debian/patches/time_t_overflow.patch 1970-01-01 01:00:00.000000000 +0100 +++ calcurse-4.8.1/debian/patches/time_t_overflow.patch 2025-03-19 11:59:49.000000000 +0100 @@ -0,0 +1,51 @@ +--- calcurse-4.8.1.orig/src/calcurse.h ++++ calcurse-4.8.1/src/calcurse.h +@@ -1272,8 +1272,8 @@ int asprintf(char **, const char *, ...) + int starts_with(const char *, const char *); + int starts_with_ci(const char *, const char *); + int hash_matches(const char *, const char *); +-long overflow_add(long, long, long *); +-long overflow_mul(long, long, long *); ++time_t overflow_add(time_t, time_t, time_t *); ++time_t overflow_mul(time_t, time_t, time_t *); + time_t next_wday(time_t, int); + int wday_per_year(int, int); + int wday_per_month(int, int, int); +--- calcurse-4.8.1.orig/src/utils.c ++++ calcurse-4.8.1/src/utils.c +@@ -1099,7 +1099,7 @@ int parse_date_increment(const char *str + incr += in; + if (start) { + /* wanted: start = start + incr * DAYINSEC */ +- long p; ++ time_t p; + if (overflow_mul(incr, DAYINSEC, &p)) + return 0; + if (overflow_add(start, p, &start)) +@@ -1261,7 +1261,7 @@ int parse_duration(const char *string, u + if (start) { + /* wanted: end = start + dur * MININSEC */ + time_t end; +- long p, s; ++ time_t p, s; + if (overflow_mul(dur, MININSEC, &p)) + return 0; + if (overflow_add(start, p, &s)) +@@ -2043,7 +2043,7 @@ int hash_matches(const char *pattern, co + /* + * Overflow check for addition with positive second term. + */ +-long overflow_add(long x, long y, long *z) ++time_t overflow_add(time_t x, time_t y, time_t *z) + { + if (!YEAR1902_2037) + goto exit; +@@ -2060,7 +2060,7 @@ long overflow_add(long x, long y, long * + /* + * Overflow check for multiplication with positive terms. + */ +-long overflow_mul(long x, long y, long *z) ++time_t overflow_mul(time_t x, time_t y, time_t *z) + { + if (!YEAR1902_2037) + goto exit;