summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2025-10-21 20:21:52 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:15:35 +0000
commita6f059fdb5681b1b4d63f2da48e709e8f8cff6ad (patch)
tree0da8fc263fca3b5d0ee2b57c592914a07bd9634c /meta
parentbbfa94828b3487523cd6dc8e3baea2e7f0fef99d (diff)
downloadpoky-a6f059fdb5681b1b4d63f2da48e709e8f8cff6ad.tar.gz
gtk4: update 4.18.6 -> 4.20.2
Changelog: [https://gitlab.gnome.org/GNOME/gtk/-/blob/4.20.2/NEWS] - add bash-completion to FILES to avoid an installed-vs-shipped issue - remove gtk4-printbackend-cups package - use $GNOME_MIRROR in download URL (From OE-Core rev: 9121d285aae01eed4428c0d3de1a862e9a50e889) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-gnome/gtk+/gtk4_4.20.2.bb (renamed from meta/recipes-gnome/gtk+/gtk4_4.18.6.bb)13
1 files changed, 4 insertions, 9 deletions
diff --git a/meta/recipes-gnome/gtk+/gtk4_4.18.6.bb b/meta/recipes-gnome/gtk+/gtk4_4.20.2.bb
index 2d24468dcc..9fcb55b52a 100644
--- a/meta/recipes-gnome/gtk+/gtk4_4.18.6.bb
+++ b/meta/recipes-gnome/gtk+/gtk4_4.20.2.bb
@@ -37,8 +37,8 @@ MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}"
37 37
38UPSTREAM_CHECK_REGEX = "gtk-(?P<pver>\d+\.(\d*[02468])+(\.\d+)+)\.tar.xz" 38UPSTREAM_CHECK_REGEX = "gtk-(?P<pver>\d+\.(\d*[02468])+(\.\d+)+)\.tar.xz"
39 39
40SRC_URI = "http://ftp.gnome.org/pub/gnome/sources/gtk/${MAJ_VER}/gtk-${PV}.tar.xz" 40SRC_URI = "${GNOME_MIRROR}/gtk/${MAJ_VER}/gtk-${PV}.tar.xz"
41SRC_URI[sha256sum] = "e1817c650ddc3261f9a8345b3b22a26a5d80af154630dedc03cc7becefffd0fa" 41SRC_URI[sha256sum] = "5e8240edecafaff2b8baf4663bdceaa668ef10a207bee4d7f90e010e10bddc5c"
42 42
43S = "${UNPACKDIR}/gtk-${PV}" 43S = "${UNPACKDIR}/gtk-${PV}"
44 44
@@ -69,7 +69,7 @@ PACKAGECONFIG:class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)
69PACKAGECONFIG[x11] = "-Dx11-backend=true,-Dx11-backend=false,at-spi2-atk fontconfig libx11 libxext libxcursor libxi libxdamage libxrandr libxrender libxcomposite libxfixes xinerama" 69PACKAGECONFIG[x11] = "-Dx11-backend=true,-Dx11-backend=false,at-spi2-atk fontconfig libx11 libxext libxcursor libxi libxdamage libxrandr libxrender libxcomposite libxfixes xinerama"
70PACKAGECONFIG[wayland] = "-Dwayland-backend=true,-Dwayland-backend=false,wayland wayland-protocols virtual/egl virtual/libgles2 wayland-native" 70PACKAGECONFIG[wayland] = "-Dwayland-backend=true,-Dwayland-backend=false,wayland wayland-protocols virtual/egl virtual/libgles2 wayland-native"
71PACKAGECONFIG[cloudproviders] = "-Dcloudproviders=enabled,-Dcloudproviders=disabled,libcloudproviders" 71PACKAGECONFIG[cloudproviders] = "-Dcloudproviders=enabled,-Dcloudproviders=disabled,libcloudproviders"
72PACKAGECONFIG[cups] = "-Dprint-cups=enabled,-Dprint-cups=disabled,cups,cups gtk4-printbackend-cups" 72PACKAGECONFIG[cups] = "-Dprint-cups=enabled,-Dprint-cups=disabled,cups,cups"
73PACKAGECONFIG[colord] = "-Dcolord=enabled,-Dcolord=disabled,colord" 73PACKAGECONFIG[colord] = "-Dcolord=enabled,-Dcolord=disabled,colord"
74PACKAGECONFIG[iso-codes] = ",,iso-codes,iso-codes" 74PACKAGECONFIG[iso-codes] = ",,iso-codes,iso-codes"
75# gtk4 wants gstreamer-player-1.0 -> gstreamer1.0-plugins-bad 75# gtk4 wants gstreamer-player-1.0 -> gstreamer1.0-plugins-bad
@@ -84,6 +84,7 @@ CFLAGS += "-Wno-error=int-conversion"
84LIBV = "4.0.0" 84LIBV = "4.0.0"
85 85
86FILES:${PN}:append = " \ 86FILES:${PN}:append = " \
87 ${datadir}/bash-completion \
87 ${datadir}/glib-2.0/schemas/ \ 88 ${datadir}/glib-2.0/schemas/ \
88 ${datadir}/gtk-4.0/emoji/ \ 89 ${datadir}/gtk-4.0/emoji/ \
89 ${datadir}/metainfo/ \ 90 ${datadir}/metainfo/ \
@@ -121,15 +122,9 @@ RRECOMMENDS:${PN} = "${GTKBASE_RRECOMMENDS}"
121RRECOMMENDS:${PN}:libc-glibc = "${GTKGLIBC_RRECOMMENDS}" 122RRECOMMENDS:${PN}:libc-glibc = "${GTKGLIBC_RRECOMMENDS}"
122RDEPENDS:${PN}-dev += "${@bb.utils.contains("PACKAGECONFIG", "wayland", "wayland-protocols", "", d)}" 123RDEPENDS:${PN}-dev += "${@bb.utils.contains("PACKAGECONFIG", "wayland", "wayland-protocols", "", d)}"
123 124
124PACKAGES_DYNAMIC += "^gtk4-printbackend-.*"
125python populate_packages:prepend () { 125python populate_packages:prepend () {
126 import os.path 126 import os.path
127 127
128 gtk_libdir = d.expand('${libdir}/gtk-4.0/${LIBV}')
129 printmodules_root = os.path.join(gtk_libdir, 'printbackends');
130
131 do_split_packages(d, printmodules_root, r'^libprintbackend-(.*)\.so$', 'gtk4-printbackend-%s', 'GTK printbackend module for %s')
132
133 if (d.getVar('DEBIAN_NAMES')): 128 if (d.getVar('DEBIAN_NAMES')):
134 d.setVar(d.expand('PKG:${PN}'), '${MLPREFIX}libgtk-4.0') 129 d.setVar(d.expand('PKG:${PN}'), '${MLPREFIX}libgtk-4.0')
135} 130}