summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2024-12-05 14:11:15 +0100
committerKhem Raj <raj.khem@gmail.com>2024-12-05 06:41:32 -0800
commit68ac4d21c264f5fa2312e7e6c275477839d10e7e (patch)
tree6fdb85c4bf755063bede2e267dbac366c60354d8
parent447753c0fab16f666b1e4d4f0ef7718fad2f3c30 (diff)
downloadmeta-openembedded-68ac4d21c264f5fa2312e7e6c275477839d10e7e.tar.gz
gthumb: update 3.12.4 -> 3.12.6
- add support for jxl, webp, gstreamer - add more PACKAGECONFIG options - disable webservices to avoid pulling in deprecated libsoup2 - remove yelp-native dependency - build colord dependent on polkit feature - drop polkit and gobject-introspection from REQUIRED_DISTRO_FEATURES - add backport patch to fix 32-bit Version 3.12.6 ~~~~~~~~~~~~~~ Released: 2024-03-10 Features: * WebAlbums: allow Exif image title to be used. (Linas Vepstas) Bugfixes: * Fixed 'could not perform operation' when editing a modified image. * Video thumbnailer: use the default thumbnail size if invalid. (Linas Vepstas) * Video thumbnailer: avoid a null pointer dereference and crash. (Linas Vepstas) Translations: * Slovenian (Martin Srebotnjak) Version 3.12.5 ~~~~~~~~~~~~~~ Released: 2024-02-18 Bugfixes: * Add to catalog: show the next image only when in viewer mode (!313) * jxl: added support for version 0.9.0 (Timo Gurr) (!306) * Commenting a picture deletes its Color Profile tag. This only happened when the 'Store metadata inside files if possible' option was active. (!293) Translations: * Chinese/Traditional (Cheng-Chia Tseng) * Turkish (Sabri Ünal) * čeština (Daniel Rusek) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-gnome/recipes-gnome/gthumb/gthumb/283c9483afd1215378c8b9871f51cd61770e53e7.patch49
-rw-r--r--meta-gnome/recipes-gnome/gthumb/gthumb_3.12.4.bb30
-rw-r--r--meta-gnome/recipes-gnome/gthumb/gthumb_3.12.6.bb34
3 files changed, 83 insertions, 30 deletions
diff --git a/meta-gnome/recipes-gnome/gthumb/gthumb/283c9483afd1215378c8b9871f51cd61770e53e7.patch b/meta-gnome/recipes-gnome/gthumb/gthumb/283c9483afd1215378c8b9871f51cd61770e53e7.patch
new file mode 100644
index 0000000000..c2dbce0c14
--- /dev/null
+++ b/meta-gnome/recipes-gnome/gthumb/gthumb/283c9483afd1215378c8b9871f51cd61770e53e7.patch
@@ -0,0 +1,49 @@
1From b48e34c436eb59877b0fe75ba3bf724c0de4dc36 Mon Sep 17 00:00:00 2001
2From: Pino Toscano <toscano.pino@tiscali.it>
3Date: Sat, 7 Sep 2024 09:40:49 +0200
4Subject: [PATCH] migrate-catalogs: properly use time_t for localtime()
5
6Commit ed219c771bc0c63e1a7847e44c81f43223454eac changed the type of the
7'date' variable from 'time_t' to 'long', to ensure the right type is
8handled by sscanf(). The problem is that, in case 'time_t' is not the
9same as 'long', the wrong pointer is passed to localtime(), and more
10strict build flags (such as the defaults of GCC 14) cause the build to
11fail on such setups.
12
13The ideal fix in this case would be to switch back the 'date' variable
14to 'time_t' and use the right format specifier for it in sscanf();
15however, since this is an helper to convert very old format, this
16additional code is not much worth it. Hence, use a simpler fix: in case
17a date timestamp was read from the file, set it to a new 'time_t'
18variable which is then used for localtime(). Since 'time_t' is big at
19least as much as 'long', there is no precision/value loss.
20
21There should be no behaviour change.
22
23Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/gthumb/-/commit/283c9483afd1215378c8b9871f51cd61770e53e7]
24---
25 gthumb/main-migrate-catalogs.c | 3 ++-
26 1 file changed, 2 insertions(+), 1 deletion(-)
27
28diff --git a/gthumb/main-migrate-catalogs.c b/gthumb/main-migrate-catalogs.c
29index 75f5cb11d..e194ed19f 100644
30--- a/gthumb/main-migrate-catalogs.c
31+++ b/gthumb/main-migrate-catalogs.c
32@@ -308,12 +308,13 @@ migration_for_each_file (GFile *file,
33 sscanf (line, "%d", &date_scope);
34
35 if ((date > 0) && (date_scope >= 1) && (date_scope <= 3)) {
36+ time_t date_as_time = date;
37 struct tm *tm;
38 GthDateTime *dt;
39 char *exif_date;
40 char *op;
41
42- tm = localtime (&date);
43+ tm = localtime (&date_as_time);
44 dt = gth_datetime_new ();
45 gth_datetime_from_struct_tm (dt, tm);
46 exif_date = gth_datetime_to_exif_date (dt);
47--
48GitLab
49
diff --git a/meta-gnome/recipes-gnome/gthumb/gthumb_3.12.4.bb b/meta-gnome/recipes-gnome/gthumb/gthumb_3.12.4.bb
deleted file mode 100644
index 79db8b7d75..0000000000
--- a/meta-gnome/recipes-gnome/gthumb/gthumb_3.12.4.bb
+++ /dev/null
@@ -1,30 +0,0 @@
1SUMMARY = "Image viewer and browser"
2LICENSE="GPL-2.0-only"
3LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
4
5
6REQUIRED_DISTRO_FEATURES = "polkit gobject-introspection-data"
7
8DEPENDS = " \
9 glib-2.0-native \
10 bison-native \
11 yelp-tools-native \
12 gtk+3 \
13 gsettings-desktop-schemas \
14 zlib \
15 jpeg \
16 exiv2 \
17 colord \
18 lcms \
19 libraw \
20 librsvg \
21 libsoup \
22 json-glib \
23 libsecret \
24"
25
26inherit features_check gnomebase gnome-help gsettings itstool mime-xdg
27
28SRC_URI[archive.sha256sum] = "add693ac0aeb9a30d829ba03a06208289d3f6868dc3b02573549e88190c794e8"
29
30FILES:${PN} += "${datadir}/metainfo"
diff --git a/meta-gnome/recipes-gnome/gthumb/gthumb_3.12.6.bb b/meta-gnome/recipes-gnome/gthumb/gthumb_3.12.6.bb
new file mode 100644
index 0000000000..8917178582
--- /dev/null
+++ b/meta-gnome/recipes-gnome/gthumb/gthumb_3.12.6.bb
@@ -0,0 +1,34 @@
1SUMMARY = "Image viewer and browser"
2LICENSE="GPL-2.0-only"
3LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
4
5DEPENDS = " \
6 glib-2.0 \
7 glib-2.0-native \
8 bison-native \
9 gtk+3 \
10 gsettings-desktop-schemas \
11 zlib \
12 jpeg \
13 json-glib \
14"
15
16PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'colord', '', d)} exiv2 gstreamer lcms libjxl libraw librsvg libwebp"
17PACKAGECONFIG[gstreamer] = "-Dgstreamer=true,-Dgstreamer=false,gstreamer1.0 gstreamer1.0-plugins-base"
18PACKAGECONFIG[libwebp] = "-Dlibwebp=true,-Dlibwebp=false,libwebp"
19PACKAGECONFIG[libjxl] = "-Dlibjxl=true,-Dlibjxl=false,libjxl"
20PACKAGECONFIG[lcms] = "-Dlcms2=true,-Dlcms2=false,lcms"
21PACKAGECONFIG[colord] = "-Dcolord=true,-Dcolord=false,colord"
22PACKAGECONFIG[exiv2] = "-Dexiv2=true,-Dexiv2=false,exiv2"
23PACKAGECONFIG[librsvg] = "-Dlibrsvg=true,-Dlibrsvg=false,librsvg"
24PACKAGECONFIG[libraw] = "-Dlibraw=true,-Dlibraw=false,libraw"
25
26# webservices would require libsecret and webkitgtk3 built with deprecated libsoup2
27EXTRA_OEMESON += "-Dwebservices=false -Dlibsecret=false"
28
29inherit gnomebase gnome-help gsettings itstool mime-xdg
30
31SRC_URI += "file://283c9483afd1215378c8b9871f51cd61770e53e7.patch"
32SRC_URI[archive.sha256sum] = "608770c6c8e73073a1d404b65bd1b761e1ac5dc25e70130ff072488fa92f5c33"
33
34FILES:${PN} += "${datadir}/metainfo"