[packages/gpsd] - fix for 64-bit time values on 32-bit ABIs
qboosh
qboosh at pld-linux.org
Fri May 23 17:47:23 CEST 2025
commit 63cdae2bd79f07a7b781ebb48dd00d89a4a5a7d5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri May 23 17:20:10 2025 +0200
- fix for 64-bit time values on 32-bit ABIs
gpsd-types.patch | 11 +++++++++++
gpsd.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/gpsd.spec b/gpsd.spec
index 76a6021..8e05bd5 100644
--- a/gpsd.spec
+++ b/gpsd.spec
@@ -18,6 +18,7 @@ Source0: http://download.savannah.gnu.org/releases/gpsd/%{name}-%{version}.tar.x
Patch0: %{name}-desktop.patch
Patch1: %{name}-destdir.patch
Patch2: %{name}-link.patch
+Patch3: %{name}-types.patch
URL: http://www.catb.org/gpsd/
%{?with_bluez:BuildRequires: bluez-libs-devel}
%{?with_dbus:BuildRequires: dbus-devel}
@@ -241,6 +242,7 @@ projektu gpsd.
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
+%patch -P3 -p1
%build
%scons_env \
diff --git a/gpsd-types.patch b/gpsd-types.patch
new file mode 100644
index 0000000..ab76e60
--- /dev/null
+++ b/gpsd-types.patch
@@ -0,0 +1,11 @@
+--- gpsd-3.26.1/drivers/driver_nmea0183.c.orig 2025-05-07 03:00:37.000000000 +0200
++++ gpsd-3.26.1/drivers/driver_nmea0183.c 2025-05-22 21:56:18.606283079 +0200
+@@ -363,7 +363,7 @@ static int merge_ddmmyy(const char *ddmm
+ *
+ * return: 0 == OK, otherwise failure
+ */
+-static int decode_hhmmss(struct tm *date, long *nsec, const char *hhmmss,
++static int decode_hhmmss(struct tm *date, typeof ((timespec_t){0}.tv_nsec) *nsec, const char *hhmmss,
+ struct gps_device_t *session)
+ {
+ int old_hour = date->tm_hour;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gpsd.git/commitdiff/63cdae2bd79f07a7b781ebb48dd00d89a4a5a7d5
More information about the pld-cvs-commit
mailing list