Accepting request 1344686 from X11:Utilities

OBS-URL: https://build.opensuse.org/request/show/1344686
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/asclock?expand=0&rev=19
This commit is contained in:
2026-04-07 14:32:45 +00:00
committed by Git OBS Bridge
3 changed files with 39 additions and 0 deletions
+5
View File
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Feb 23 14:41:08 UTC 2026 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add time_t.patch to make it work past 2038
-------------------------------------------------------------------
Tue May 6 06:37:24 UTC 2025 - pgajdos@suse.com
+2
View File
@@ -28,6 +28,8 @@ Patch0: gcc4.diff
Patch1: asclock-C99.diff
# fix build with gcc15
Patch2: asclock-gcc15.patch
# https://github.com/apritzel/asclock/pull/1
Patch3: time_t.patch
BuildRequires: fdupes
BuildRequires: imake
BuildRequires: pkgconfig
+32
View File
@@ -0,0 +1,32 @@
From 7c6d7c8f6eb72ee332bc742a063d4fa138dcee78 Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
Date: Mon, 23 Feb 2026 13:40:34 +0100
Subject: [PATCH] Use time_t to handle timestamps
so that it keeps working after 2038-01-19
---
asclock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/asclock.c b/asclock.c
index 28cb014..7e2504a 100644
--- a/asclock.c
+++ ./asclock.c
@@ -60,7 +60,7 @@ void InsertTime();
void swatch_beats(int beats_cnt);
static Atom wm_delete_window;
-int mytime();
+time_t mytime();
int main(int argc,char *argv[])
{
@@ -524,7 +524,7 @@ void TwentyFour()
}
/****************************************************************************/
-int mytime()
+time_t mytime()
{
struct timeval tv;
struct timezone tz;