]> git.pld-linux.org Git - packages/seatd.git/commitdiff
fix build on x32 auto/th/seatd-0.5.0-1
authorJan Palus <atler@pld-linux.org>
Thu, 24 Jun 2021 17:25:37 +0000 (17:25 +0000)
committerJan Palus <atler@pld-linux.org>
Thu, 24 Jun 2021 17:25:37 +0000 (17:25 +0000)
seatd.spec
x32.patch [new file with mode: 0644]

index 97ae6d7307a0301a53027c00fe23d0aad5f942f1..f8acd02d6707ab4790efe310d2718159dc4c46e0 100644 (file)
@@ -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 (file)
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);
This page took 0.154764 seconds and 4 git commands to generate.