Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package cvsps for openSUSE:Factory checked in at 2026-03-04 21:02:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cvsps (Old) and /work/SRC/openSUSE:Factory/.cvsps.new.561 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cvsps" Wed Mar 4 21:02:45 2026 rev:27 rq:1335834 version:2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/cvsps/cvsps.changes 2025-07-18 15:58:20.141983374 +0200 +++ /work/SRC/openSUSE:Factory/.cvsps.new.561/cvsps.changes 2026-03-04 21:03:01.058978330 +0100 @@ -1,0 +2,5 @@ +Mon Mar 2 14:07:46 UTC 2026 - Bernhard Wiedemann <[email protected]> + +- Add time_t.patch to fix year-2038-problem (boo#1258930) + +------------------------------------------------------------------- New: ---- time_t.patch ----------(New B)---------- New: - Add time_t.patch to fix year-2038-problem (boo#1258930) ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cvsps.spec ++++++ --- /var/tmp/diff_new_pack.2an8Q7/_old 2026-03-04 21:03:01.815009579 +0100 +++ /var/tmp/diff_new_pack.2an8Q7/_new 2026-03-04 21:03:01.815009579 +0100 @@ -35,6 +35,7 @@ Provides: cvsps2 = %{version} Patch0: commitid.diff Patch1: cvsps-min-cmake-3.5.patch +Patch2: time_t.patch URL: http://www.cobite.com/cvsps/ BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -56,6 +57,7 @@ cp %{SOURCE1} %{SOURCE2} %{SOURCE4} . %patch -P 0 -p1 %patch -P 1 -p1 +%patch -P 2 -p1 %build export CFLAGS="%{optflags}" ++++++ time_t.patch ++++++ >From 6b9f4e76b639b2ba831574633606b69155c3fa56 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" <[email protected]> Date: Mon, 2 Mar 2026 14:52:40 +0100 Subject: [PATCH] Fix several year-2038-problems See https://en.wikipedia.org/wiki/Year_2038_problem This patch was done while reviewing potential year-2038 issues in openSUSE. --- cache.c | 8 ++++---- cvsps.c | 4 ++-- util.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cache.c b/cache.c index 5f67a7c..61976ec 100644 --- a/cache.c +++ b/cache.c @@ -145,8 +145,8 @@ time_t read_cache() goto out_close; } - cache_date = atoi(buff + 12); - debug(DEBUG_STATUS, "read cache_date %d", (int)cache_date); + cache_date = atoll(buff + 12); + debug(DEBUG_STATUS, "read cache_date %lld", (long long int)cache_date); while (fgets(buff, BUFSIZ, fp)) { @@ -456,7 +456,7 @@ void write_cache(time_t cache_date) } fprintf(cache_fp, "cache version: %d\n", cache_version); - fprintf(cache_fp, "cache date: %d\n", (int)cache_date); + fprintf(cache_fp, "cache date: %lld\n", (long long int)cache_date); reset_hash_iterator(file_hash); @@ -517,7 +517,7 @@ static void dump_patch_set(FILE * fp, PatchSet * ps) ps_counter++; fprintf(fp, "patchset: %d\n", ps_counter); - fprintf(fp, "date: %d\n", (int)ps->date); + fprintf(fp, "date: %lld\n", (long long int)ps->date); fprintf(fp, "author: %s\n", ps->author); fprintf(fp, "tag: %s\n", ps->tag ? ps->tag : ""); fprintf(fp, "tag_flags: %d\n", ps->tag_flags); diff --git a/cvsps.c b/cvsps.c index 981cd78..8a2290f 100644 --- a/cvsps.c +++ b/cvsps.c @@ -2496,8 +2496,8 @@ static int check_rev_funk(PatchSet * ps, CvsFileRevision * rev) if (next_ps->date > ps->date) break; - debug(DEBUG_STATUS, "ps->date %d next_ps->date %d rev->rev %s rev->branch %s", - ps->date, next_ps->date, rev->rev, rev->branch); + debug(DEBUG_STATUS, "ps->date %lld next_ps->date %d rev->rev %s rev->branch %s", + (long long)ps->date, next_ps->date, rev->rev, rev->branch); /* * If the ps->tag is one of the two possible '-r' tags diff --git a/util.c b/util.c index e4b9d14..dfaf53e 100644 --- a/util.c +++ b/util.c @@ -211,7 +211,7 @@ void convert_date(time_t * t, const char * dte) } else { - *t = atoi(dte); + *t = atoll(dte); } } -- 2.52.0
