commit 6fb2b3a6e5cd2eacfe951c15bce7eaa00358675c
Author: Jan Palus <[email protected]>
Date:   Thu Jun 24 17:25:37 2021 +0000

    fix build on x32

 seatd.spec |  2 ++
 x32.patch  | 14 ++++++++++++++
 2 files changed, 16 insertions(+)
---
diff --git a/seatd.spec b/seatd.spec
index 97ae6d7..f8acd02 100644
--- a/seatd.spec
+++ b/seatd.spec
@@ -6,6 +6,7 @@ License:        MIT
 Group:         Applications
 Source0:       https://git.sr.ht/~kennylevinsen/seatd/archive/%{version}.tar.gz
 # Source0-md5: 264a36907f4be34efa400fb6e1b26f5f
+Patch0:                x32.patch
 URL:           https://git.sr.ht/~kennylevinsen/seatd
 BuildRequires: meson >= 0.56.0
 BuildRequires: ninja
@@ -57,6 +58,7 @@ Static libseat library.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %meson build \
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..cd31583
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,14 @@
+--- seatd-0.5.0/common/log.c.orig      2021-06-24 17:22:50.385736148 +0000
++++ seatd-0.5.0/common/log.c   2021-06-24 17:24:59.695067141 +0000
+@@ -56,7 +56,11 @@
+               postfix = "\n";
+       }
+ 
++#if defined(__x86_64__) && defined(__ILP32__)
++      fprintf(stderr, "%02d:%02d:%02d.%03lld %s ", (int)(ts.tv_sec / 60 / 60),
++#else
+       fprintf(stderr, "%02d:%02d:%02d.%03ld %s ", (int)(ts.tv_sec / 60 / 60),
++#endif
+               (int)(ts.tv_sec / 60 % 60), (int)(ts.tv_sec % 60), ts.tv_nsec / 
1000000, prefix);
+ 
+       vfprintf(stderr, fmt, args);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/seatd.git/commitdiff/6fb2b3a6e5cd2eacfe951c15bce7eaa00358675c

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to