Compile in two stages. First, generate gtksourceview-gresources.h, then compile everything else. Adding the dependency is not trivial so we wait for upstream and add a benign workaround.
Signed-off-by: Joe Slater <[email protected]> --- .../gtksourceview/gtksourceview4_4.8.1.bb | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/meta-gnome/recipes-gnome/gtksourceview/gtksourceview4_4.8.1.bb b/meta-gnome/recipes-gnome/gtksourceview/gtksourceview4_4.8.1.bb index f7d040d73..0be12bcdb 100644 --- a/meta-gnome/recipes-gnome/gtksourceview/gtksourceview4_4.8.1.bb +++ b/meta-gnome/recipes-gnome/gtksourceview/gtksourceview4_4.8.1.bb @@ -16,10 +16,24 @@ inherit gnomebase lib_package gettext features_check gtk-doc gobject-introspecti REQUIRED_DISTRO_FEATURES = "x11" -SRC_URI = "https://download.gnome.org/sources/gtksourceview/4.8/${PNAME}-${PV}.tar.xz" +SRC_URI = "https://download.gnome.org/sources/gtksourceview/4.8/${PNAME}-${PV}.tar.xz \ + " + SRC_URI[sha256sum] = "d163d71b5fcafbc5b1eec6dd841edbdbcddd3a7511cd5fdcffd86b8bbfe69ac1" GIR_MESON_OPTION = 'gir' GTKDOC_MESON_OPTION = "gtk_doc" +# Override the definition in meson.bbclass. The dependencies in mason.build are incomplete +# and the recipe will not build with "-j 1". This fix is benign but should be reviewed when +# updating versions. +# +meson_do_compile() { + bbnote "========== generating gtksourceview-gresources.h ========" + bbnote "PARALLEL_MAKE is ${PARALLEL_MAKE}" + ninja ${PARALLEL_MAKE} gtksourceview/gtksourceview-gresources.h + bbnote "========== compiling target all ========" + ninja ${PARALLEL_MAKE} +} + FILES_${PN} += "${datadir}/gtksourceview-4" -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#92445): https://lists.openembedded.org/g/openembedded-devel/message/92445 Mute This Topic: https://lists.openembedded.org/mt/84628122/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
