[packages/libgdata] - added fix for ILP32 ABI with 64-bit time_t (like x32); release 6

qboosh qboosh at pld-linux.org
Sun Jul 20 10:37:03 CEST 2025


commit 8373603cf053b8a8e46e8604a5af36045b587321
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jul 20 10:38:45 2025 +0200

    - added fix for ILP32 ABI with 64-bit time_t (like x32); release 6

 libgdata-types.patch | 13 +++++++++++++
 libgdata.spec        |  4 +++-
 2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/libgdata.spec b/libgdata.spec
index a9eb7f0..91a9ad2 100644
--- a/libgdata.spec
+++ b/libgdata.spec
@@ -8,11 +8,12 @@ Summary:	GData access library
 Summary(pl.UTF-8):	Biblioteka dostępu poprzez protokół GData
 Name:		libgdata
 Version:	0.18.1
-Release:	5
+Release:	6
 License:	LGPL v2.1+
 Group:		Libraries
 Source0:	https://download.gnome.org/sources/libgdata/0.18/%{name}-%{version}.tar.xz
 # Source0-md5:	92b058d1a0af5d1b96c86c21820f1eff
+Patch0:		%{name}-types.patch
 URL:		https://wiki.gnome.org/Projects/libgdata
 BuildRequires:	gcr-devel >= 3
 # for tests only
@@ -119,6 +120,7 @@ API libgdata dla języka Vala.
 
 %prep
 %setup -q
+%patch -P0 -p1
 
 %if %{with static_libs}
 %{__sed} -i -e '/^libgdata_lib =/ s/shared_library/library/' gdata/meson.build
diff --git a/libgdata-types.patch b/libgdata-types.patch
new file mode 100644
index 0000000..dba9d1f
--- /dev/null
+++ b/libgdata-types.patch
@@ -0,0 +1,13 @@
+--- libgdata-0.18.1/demos/calendar/calendar-cli.c.orig	2021-03-05 16:22:37.347057800 +0100
++++ libgdata-0.18.1/demos/calendar/calendar-cli.c	2025-07-20 10:26:05.125376212 +0200
+@@ -43,8 +43,9 @@ static gchar *
+ tv_to_iso8601_date (GTimeVal *tv)
+ {
+ 	struct tm *tm;
++	time_t tv_sec = tv->tv_sec;
+ 
+-	tm = gmtime (&tv->tv_sec);
++	tm = gmtime (&tv_sec);
+ 
+ 	return g_strdup_printf ("%04d-%02d-%02d",
+ 	                        tm->tm_year + 1900,
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libgdata.git/commitdiff/8373603cf053b8a8e46e8604a5af36045b587321



More information about the pld-cvs-commit mailing list