summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/vte
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2023-12-01 10:33:49 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-04 12:45:27 +0000
commit66d35dedcdd81c612421ae1268691120834566c2 (patch)
tree013844c5236211da50f192ce148d1be7bb6b4a87 /meta/recipes-support/vte
parentedc72a4bd1cc8f97612fc4cae68c7d1d5a402c30 (diff)
downloadpoky-66d35dedcdd81c612421ae1268691120834566c2.tar.gz
vte: upgrade 0.72.2 -> 0.74.0
Rework recipe - remove legacy of the autotools buildsystem - remove BBCLASSEXTEND - build vapi dependent on gi-data - docs require gir, add a EXTRA_OEMESON:append to avoid fail in a combination where docs=true and gir=false - gtk+3 and gtk4 are requested by default-> add gtk4 depending on DISTRO_FEATURE - install systemd support files depending on DISTRO_FEATURE - update 0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch (From OE-Core rev: 47861220ab9358f1577d549eb367c2758e9f231e) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/vte')
-rw-r--r--meta/recipes-support/vte/vte/0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch35
-rw-r--r--meta/recipes-support/vte/vte_0.74.0.bb (renamed from meta/recipes-support/vte/vte_0.72.2.bb)29
2 files changed, 25 insertions, 39 deletions
diff --git a/meta/recipes-support/vte/vte/0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch b/meta/recipes-support/vte/vte/0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch
index b4100fc381..8934d5f80a 100644
--- a/meta/recipes-support/vte/vte/0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch
+++ b/meta/recipes-support/vte/vte/0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch
@@ -11,32 +11,25 @@ Upstream-Status: Submitted [1]
11Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> 11Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
12 12
13[1] https://gitlab.gnome.org/GNOME/vte/issues/72 13[1] https://gitlab.gnome.org/GNOME/vte/issues/72
14
15--- 14---
16 src/missing.hh | 4 ++++ 15 src/widget.cc | 4 +++
17 src/widget.cc | 1 + 16 1 files changed, 4 insertions(+)
18 2 files changed, 5 insertions(+)
19 17
20--- a/src/missing.hh 18diff --git a/src/widget.cc b/src/widget.cc
21+++ b/src/missing.hh 19index 07f7cabf..31a77f68 100644
22@@ -24,6 +24,10 @@ 20--- a/src/widget.cc
23 #define NSIG (8 * sizeof(sigset_t)) 21+++ b/src/widget.cc
24 #endif 22@@ -16,6 +16,10 @@
23 * along with this library. If not, see <https://www.gnu.org/licenses/>.
24 */
25 25
26+#ifndef W_EXITCODE 26+#ifndef W_EXITCODE
27+#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) 27+#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
28+#endif 28+#endif
29+ 29+
30 #ifndef HAVE_FDWALK 30 #include "config.h"
31 int fdwalk(int (*cb)(void* data, int fd),
32 void* data);
33--- a/src/widget.cc
34+++ b/src/widget.cc
35@@ -21,6 +21,7 @@
36 #include "widget.hh"
37
38 #include <sys/wait.h> // for W_EXITCODE
39+#include "missing.hh" // for W_EXITCODE on non-glibc systems
40 31
41 #include <exception> 32 #include "widget.hh"
42 #include <new> 33--
342.42.0
35
diff --git a/meta/recipes-support/vte/vte_0.72.2.bb b/meta/recipes-support/vte/vte_0.74.0.bb
index 44e71491f6..21203adcf7 100644
--- a/meta/recipes-support/vte/vte_0.72.2.bb
+++ b/meta/recipes-support/vte/vte_0.74.0.bb
@@ -16,32 +16,27 @@ DEPENDS = "glib-2.0 glib-2.0-native gtk+3 libpcre2 libxml2-native gperf-native i
16GIR_MESON_OPTION = 'gir' 16GIR_MESON_OPTION = 'gir'
17GIDOCGEN_MESON_OPTION = "docs" 17GIDOCGEN_MESON_OPTION = "docs"
18 18
19inherit gnomebase gi-docgen features_check upstream-version-is-even gobject-introspection 19inherit gnomebase gi-docgen features_check upstream-version-is-even gobject-introspection vala
20 20
21# vapigen.m4 is required when vala is not present (but the one from vala should be used normally)
22SRC_URI += "file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch" 21SRC_URI += "file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch"
23SRC_URI[archive.sha256sum] = "f7966fd185a6981f53964162b71cfef7e606495155d6f5827b72aa0dd6741c9e" 22SRC_URI[archive.sha256sum] = "9ae08f777952ba793221152d360550451580f42d3b570e3341ebb6841984c76b"
24 23
25ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" 24ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
26 25
27# Help g-ir-scanner find the .so for linking 26EXTRA_OEMESON += "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=true', '-Dvapi=false', d)}"
28do_compile:prepend() { 27EXTRA_OEMESON:append = " ${@bb.utils.contains('GI_DATA_ENABLED', 'False', '-Ddocs=false', '', d)}"
29 export GIR_EXTRA_LIBS_PATH="${B}/src/.libs"
30}
31 28
32# Package additional files 29PACKAGECONFIG ??= " \
33FILES:${PN}-dev += "${datadir}/vala/vapi/*" 30 gnutls \
34 31 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
35PACKAGECONFIG ??= "gnutls" 32 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gtk4', '', d)} \
36PACKAGECONFIG[vala] = "-Dvapi=true,-Dvapi=false,vala-native vala" 33"
34PACKAGECONFIG[gtk4] = "-Dgtk4=true,-Dgtk4=false,gtk4"
37PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls" 35PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls"
38PACKAGECONFIG[systemd] = "-D_systemd=true,-D_systemd=false,systemd" 36PACKAGECONFIG[systemd] = "-D_systemd=true,-D_systemd=false,systemd"
39# vala requires gir
40PACKAGECONFIG:remove:class-native = "vala"
41
42CFLAGS += "-D_GNU_SOURCE"
43 37
44PACKAGES =+ "libvte ${PN}-prompt" 38PACKAGES =+ "libvte ${PN}-prompt"
39FILES:${PN} +="${systemd_user_unitdir}"
45FILES:libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*" 40FILES:libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*"
46FILES:${PN}-prompt = " \ 41FILES:${PN}-prompt = " \
47 ${sysconfdir}/profile.d \ 42 ${sysconfdir}/profile.d \
@@ -49,5 +44,3 @@ FILES:${PN}-prompt = " \
49" 44"
50 45
51FILES:${PN}-dev += "${datadir}/glade/" 46FILES:${PN}-dev += "${datadir}/glade/"
52
53BBCLASSEXTEND = "native nativesdk"