diff options
| author | Markus Volk <f_l_k@t-online.de> | 2023-12-01 10:33:49 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-04 12:45:27 +0000 |
| commit | 66d35dedcdd81c612421ae1268691120834566c2 (patch) | |
| tree | 013844c5236211da50f192ce148d1be7bb6b4a87 /meta/recipes-support/vte | |
| parent | edc72a4bd1cc8f97612fc4cae68c7d1d5a402c30 (diff) | |
| download | poky-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.patch | 35 | ||||
| -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] | |||
| 11 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | 11 | Signed-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 | 18 | diff --git a/src/widget.cc b/src/widget.cc |
| 21 | +++ b/src/missing.hh | 19 | index 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 | -- |
| 34 | 2.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 | |||
| 16 | GIR_MESON_OPTION = 'gir' | 16 | GIR_MESON_OPTION = 'gir' |
| 17 | GIDOCGEN_MESON_OPTION = "docs" | 17 | GIDOCGEN_MESON_OPTION = "docs" |
| 18 | 18 | ||
| 19 | inherit gnomebase gi-docgen features_check upstream-version-is-even gobject-introspection | 19 | inherit 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) | ||
| 22 | SRC_URI += "file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch" | 21 | SRC_URI += "file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch" |
| 23 | SRC_URI[archive.sha256sum] = "f7966fd185a6981f53964162b71cfef7e606495155d6f5827b72aa0dd6741c9e" | 22 | SRC_URI[archive.sha256sum] = "9ae08f777952ba793221152d360550451580f42d3b570e3341ebb6841984c76b" |
| 24 | 23 | ||
| 25 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" | 24 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" |
| 26 | 25 | ||
| 27 | # Help g-ir-scanner find the .so for linking | 26 | EXTRA_OEMESON += "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=true', '-Dvapi=false', d)}" |
| 28 | do_compile:prepend() { | 27 | EXTRA_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 | 29 | PACKAGECONFIG ??= " \ |
| 33 | FILES:${PN}-dev += "${datadir}/vala/vapi/*" | 30 | gnutls \ |
| 34 | 31 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ | |
| 35 | PACKAGECONFIG ??= "gnutls" | 32 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gtk4', '', d)} \ |
| 36 | PACKAGECONFIG[vala] = "-Dvapi=true,-Dvapi=false,vala-native vala" | 33 | " |
| 34 | PACKAGECONFIG[gtk4] = "-Dgtk4=true,-Dgtk4=false,gtk4" | ||
| 37 | PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls" | 35 | PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls" |
| 38 | PACKAGECONFIG[systemd] = "-D_systemd=true,-D_systemd=false,systemd" | 36 | PACKAGECONFIG[systemd] = "-D_systemd=true,-D_systemd=false,systemd" |
| 39 | # vala requires gir | ||
| 40 | PACKAGECONFIG:remove:class-native = "vala" | ||
| 41 | |||
| 42 | CFLAGS += "-D_GNU_SOURCE" | ||
| 43 | 37 | ||
| 44 | PACKAGES =+ "libvte ${PN}-prompt" | 38 | PACKAGES =+ "libvte ${PN}-prompt" |
| 39 | FILES:${PN} +="${systemd_user_unitdir}" | ||
| 45 | FILES:libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*" | 40 | FILES:libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*" |
| 46 | FILES:${PN}-prompt = " \ | 41 | FILES:${PN}-prompt = " \ |
| 47 | ${sysconfdir}/profile.d \ | 42 | ${sysconfdir}/profile.d \ |
| @@ -49,5 +44,3 @@ FILES:${PN}-prompt = " \ | |||
| 49 | " | 44 | " |
| 50 | 45 | ||
| 51 | FILES:${PN}-dev += "${datadir}/glade/" | 46 | FILES:${PN}-dev += "${datadir}/glade/" |
| 52 | |||
| 53 | BBCLASSEXTEND = "native nativesdk" | ||
