[packages/AfterStep] - fix for sizeof(time_t) different than sizeof(long), release 4
qboosh
qboosh at pld-linux.org
Tue Sep 30 17:45:31 CEST 2025
commit d3ecd122c41566f5d267a26cfcb230867b6b23e2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Sep 30 17:48:33 2025 +0200
- fix for sizeof(time_t) different than sizeof(long), release 4
AfterStep-types.patch | 23 +++++++++++++++++++++++
AfterStep.spec | 6 +++---
2 files changed, 26 insertions(+), 3 deletions(-)
---
diff --git a/AfterStep.spec b/AfterStep.spec
index 807f627..f885b3a 100644
--- a/AfterStep.spec
+++ b/AfterStep.spec
@@ -16,7 +16,7 @@ Summary(ja.UTF-8): AfterStep ウィンドウマネージャ (NeXT風)
Summary(pl.UTF-8): AfterStep - zarządca okien
Name: AfterStep
Version: %{afterstep_ver}
-Release: 4
+Release: 5
License: GPL v2+
Group: X11/Window Managers
Source0: ftp://ftp.afterstep.org/stable/%{name}-%{version}.tar.bz2
@@ -31,6 +31,7 @@ Patch4: %{name}-ac.patch
Patch5: %{name}-inline.patch
Patch6: %{name}-ar.patch
Patch7: %{name}-includes.patch
+Patch8: %{name}-types.patch
URL: http://www.afterstep.org/
%{?with_opengl:BuildRequires: OpenGL-devel}
BuildRequires: alsa-lib-devel >= 0.9
@@ -237,8 +238,7 @@ Statyczna biblioteka AfterImage.
%patch -P5 -p1
%patch -P6 -p1
%patch -P7 -p1
-
-#cp -f autoconf/configure*.in .
+%patch -P8 -p1
%build
cd autoconf
diff --git a/AfterStep-types.patch b/AfterStep-types.patch
new file mode 100644
index 0000000..fde87dd
--- /dev/null
+++ b/AfterStep-types.patch
@@ -0,0 +1,23 @@
+--- afterstep-devel-2.2.12/libAfterBase/timer.c.orig 2013-05-01 15:34:11.000000000 +0200
++++ afterstep-devel-2.2.12/libAfterBase/timer.c 2025-09-30 17:39:28.748427833 +0200
+@@ -124,7 +124,7 @@ timer_subtract_times (time_t * sec1, tim
+ Bool timer_delay_till_next_alarm (time_t * sec, time_t * usec)
+ {
+ Timer *timer;
+- long tsec, tusec = 0;
++ time_t tsec, tusec = 0;
+
+ if (timer_first == NULL)
+ return False;
+@@ -139,9 +139,9 @@ Bool timer_delay_till_next_alarm (time_t
+ }
+
+ timer_get_time (sec, usec);
+- LOCAL_DEBUG_OUT( "next : sec = %ld, usec = %ld( curr %ld, %ld)", tsec, tusec, *sec, *usec );
++ LOCAL_DEBUG_OUT( "next : sec = %lld, usec = %lld( curr %lld, %lld)", (long long)tsec, (long long)tusec, (long long)*sec, (long long)*usec );
+ timer_subtract_times (&tsec, &tusec, *sec, *usec);
+- LOCAL_DEBUG_OUT( "waiting for sec = %ld, usec = %ld( curr %ld, %ld)", tsec, tusec, *sec, *usec );
++ LOCAL_DEBUG_OUT( "waiting for sec = %lld, usec = %lld( curr %lld, %lld)", (long long)tsec, (long long)tusec, (long long)*sec, (long long)*usec );
+
+ *sec = tsec;
+ *usec = tusec;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/AfterStep.git/commitdiff/d3ecd122c41566f5d267a26cfcb230867b6b23e2
More information about the pld-cvs-commit
mailing list