libgdata: fix compiling for 32-bit targets

When compiling for 32-bit targets, compilation fails with the following error:

| ../libgdata-0.18.1/demos/calendar/calendar-cli.c:47:22: error: passing argument 1 of 'gmtime' from incompatible pointer type [-Wincompatible-pointer-types]
|    47 |         tm = gmtime (&tv->tv_sec);

Upstream meanwhile has refactored the failing part in an untagged commit:
they have removed the usage of GTimeVal, since it has been deprecated.

Since it also solves the compilation issue, backport that patch.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Gyorgy Sarvari 2025-09-11 14:03:31 +02:00 committed by Khem Raj
parent 909985d1b9
commit e1625a159e
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 1136 additions and 0 deletions

View File

@ -13,6 +13,8 @@ GTKDOC_MESON_OPTION = "gtk_doc"
inherit gnomebase pkgconfig gettext gtk-doc vala gobject-introspection manpages features_check
SRC_URI += "file://0001-Drop-usage-of-deprecated-GTimeVal.patch"
ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'goa', 'opengl', '', d)}"