Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package bsd-games for openSUSE:Factory checked in at 2026-03-04 21:03:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/bsd-games (Old) and /work/SRC/openSUSE:Factory/.bsd-games.new.561 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "bsd-games" Wed Mar 4 21:03:26 2026 rev:35 rq:1336054 version:2.17 Changes: -------- --- /work/SRC/openSUSE:Factory/bsd-games/bsd-games.changes 2024-11-28 22:43:55.860912677 +0100 +++ /work/SRC/openSUSE:Factory/.bsd-games.new.561/bsd-games.changes 2026-03-04 21:03:46.988876785 +0100 @@ -1,0 +2,5 @@ +Thu Feb 26 09:28:13 UTC 2026 - Bernhard Wiedemann <[email protected]> + +- Add time_t.patch to fix a year-2038 problem (boo#1258930) + +------------------------------------------------------------------- New: ---- time_t.patch ----------(New B)---------- New: - Add time_t.patch to fix a year-2038 problem (boo#1258930) ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bsd-games.spec ++++++ --- /var/tmp/diff_new_pack.YGJZDX/_old 2026-03-04 21:03:47.620902909 +0100 +++ /var/tmp/diff_new_pack.YGJZDX/_new 2026-03-04 21:03:47.624903074 +0100 @@ -45,6 +45,7 @@ Patch9: %{name}-%{version}-gcc4.3.diff # PATCH-FIX-UPSTREAM fix building with gcc 14 Patch10: bsd-games-gcc14.diff +Patch11: time_t.patch BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ @@ -72,6 +73,7 @@ %patch -P 8 %patch -P 9 %patch -P 10 -p1 +%patch -P11 -p1 %build # easier than patching :-) ++++++ time_t.patch ++++++ commit 2f1ae8ec9989d9f7250d03841de66ca9ba4c11f6 Author: Bernhard M. Wiedemann <[email protected]> Date: Thu Feb 26 09:02:28 2026 +0000 Fix handling of time after year 2038 diff --git a/atc/extern.c b/atc/extern.c index a96fdd4..6921b7a 100644 --- a/atc/extern.c +++ b/atc/extern.c @@ -51,10 +51,13 @@ __RCSID("$NetBSD: extern.c,v 1.7 2003/08/07 09:36:53 agc Exp $"); #endif /* not lint */ #include "include.h" +#include <time.h> char GAMES[] = "Game_List"; -int clck, safe_planes, start_time, test_mode; +int clck, safe_planes, test_mode; + +time_t start_time; const char *file; diff --git a/atc/extern.h b/atc/extern.h index c2706d2..739b1f0 100644 --- a/atc/extern.h +++ b/atc/extern.h @@ -43,10 +43,13 @@ * For more info on this and all of my stuff, mail [email protected]. */ +#include <time.h> + extern char GAMES[]; extern const char *file; -extern int clck, safe_planes, start_time, test_mode; +extern int clck, safe_planes, test_mode; +extern time_t start_time; extern FILE *filein, *fileout; diff --git a/atc/main.c b/atc/main.c index fe2482c..aac85f4 100644 --- a/atc/main.c +++ b/atc/main.c @@ -79,7 +79,7 @@ main(ac, av) open_score_file(); setregid(getgid(), getgid()); - start_time = seed = time(NULL); + seed = start_time = time(NULL); while ((ch = getopt(ac, av, "ulstpg:f:r:")) != -1) { switch (ch) {
