[packages/feedbackd] - added types patch, release 2

qboosh qboosh at pld-linux.org
Thu Oct 3 20:00:12 CEST 2024


commit 97c6f7aed87059e90783557f8a97eb13c983d2b7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Oct 3 19:46:03 2024 +0200

    - added types patch, release 2

 feedbackd-types.patch | 24 ++++++++++++++++++++++++
 feedbackd.spec        |  4 +++-
 2 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/feedbackd.spec b/feedbackd.spec
index 14c98d7..662a592 100644
--- a/feedbackd.spec
+++ b/feedbackd.spec
@@ -6,12 +6,13 @@ Summary:	Haptic/visual/audio feedback for GNOME
 Summary(pl.UTF-8):	Dotykowe/wizualne/dźwiękowe informacje zwrotne dla GNOME
 Name:		feedbackd
 Version:	0.5.0
-Release:	1
+Release:	2
 License:	GPL v3+ (daemon), LGPL v2.1+ (library)
 Group:		Daemons
 #Source0Download: https://source.puri.sm/Librem5/feedbackd/-/tags
 Source0:	https://source.puri.sm/Librem5/feedbackd/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
 # Source0-md5:	80be81e175fc73e6d9dfcce79b6cb6f7
+Patch0:		%{name}-types.patch
 URL:		https://source.puri.sm/Librem5/feedbackd
 %{?with_apidocs:BuildRequires:	gi-docgen >= 2021.1}
 BuildRequires:	glib2-devel >= 1:2.66
@@ -103,6 +104,7 @@ Dokumentacja API biblioteki Feedback.
 
 %prep
 %setup -q -n %{name}-v%{version}
+%patch0 -p1
 
 %build
 %meson build \
diff --git a/feedbackd-types.patch b/feedbackd-types.patch
new file mode 100644
index 0000000..7fe3a65
--- /dev/null
+++ b/feedbackd-types.patch
@@ -0,0 +1,24 @@
+Fix incorrect format strings with 64-bit time_t and 32-bit long
+--- feedbackd-v0.5.0/src/fbd-alert-slider.c.orig	2024-09-28 08:41:23.000000000 +0200
++++ feedbackd-v0.5.0/src/fbd-alert-slider.c	2024-10-03 19:32:09.116840609 +0200
+@@ -24,6 +24,7 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <grp.h>
++#include <inttypes.h>
+ #include <stdio.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
+@@ -196,9 +197,9 @@ on_input_ready (GIOChannel *source, GIOC
+       continue;
+     }
+ 
+-    g_debug ("Event: time %ld.%06ld, value: %d",
+-             ev[i].input_event_sec,
+-             ev[i].input_event_usec,
++    g_debug ("Event: time %" PRId64 ".%06" PRId64 ", value: %d",
++             (int64_t)ev[i].input_event_sec,
++             (int64_t)ev[i].input_event_usec,
+              ev[i].value);
+     set_level (ev[i].value, FALSE);
+   }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/feedbackd.git/commitdiff/97c6f7aed87059e90783557f8a97eb13c983d2b7



More information about the pld-cvs-commit mailing list