meson/gobject-introspection rework
cover meson/gobject-introspection rework
* Make meson builds aware of unrecognized config options.
* central auto-enable/disable gobject-introspection for meson builds + unrecognized options are triggered for meson & autotools now
Note that native recipes are build gobject-introspection disabled (as before when building with autotools)
Did test this series with my heavy-heavy-monster image but there might be fallout if 'unknown-configure-option' in ERROR_QA is set but:
* It is better to be aware of options set wrongly (some were discovered already by this series)
* Patches for meta-gnome for packages not accepting gi on/off option are in the queue already
* glib-networking upgrade was done because it reintroduces on/off config option for gobject-introspection
Andreas Müller (13):
insane.bbclass: Trigger unrecognzed configure option for meson
gobject-introspection: auto-enable/-disable gobject-introspection for
meson
libmodulemd: use gobject-introspection.bbclass on/off mechanism
gdk-pixbuf: use gobject-introspection.bbclass on/off mechanism
json-glib: use gobject-introspection.bbclass on/off mechanism
libdazzle: use gobject-introspection.bbclass on/off mechanism clutter-gtk-1.0: use gobject-introspection.bbclass on/off mechanism
pango: use gobject-introspection.bbclass on/off mechanism
at-spi2-core: use gobject-introspection.bbclass on/off mechanism
atk: use gobject-introspection.bbclass on/off mechanism libsoup-2.4: use gobject-introspection.bbclass on/off mechanism
glib-networking: upgrade 2.58.0 -> 2.60.1
gst-plugins: move 'inherit gobject-introspection' to recipes
supporting GI
meta/classes/gobject-introspection.bbclass | 14 ++++++++++++--
meta/classes/insane.bbclass | 12 ++++++++----
...working_2.58.0.bb => glib-networking_2.60.1.bb} | 10 +++++-----
.../libmodulemd/libmodulemd_git.bb | 11 +++--------
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.38.0.bb | 8 +-------
meta/recipes-gnome/json-glib/json-glib_1.4.4.bb | 5 -----
meta/recipes-gnome/libdazzle/libdazzle_3.30.2.bb | 6 +-----
meta/recipes-graphics/clutter/clutter-gtk-1.0.inc | 11 +----------
meta/recipes-graphics/pango/pango_1.42.4.bb | 10 +---------
.../gstreamer/gstreamer1.0-plugins-bad_1.14.4.bb | 2 +-
.../gstreamer/gstreamer1.0-plugins-base_1.14.4.bb | 2 +-
.../gstreamer/gstreamer1.0-plugins.inc | 2 +-
meta/recipes-support/atk/at-spi2-core_2.30.0.bb | 10 ++++------
meta/recipes-support/atk/atk_2.30.0.bb | 8 --------
meta/recipes-support/libsoup/libsoup-2.4_2.64.2.bb | 8 --------
15 files changed, 39 insertions(+), 80 deletions(-)
rename meta/recipes-core/glib-networking/{glib-networking_2.58.0.bb => glib-networking_2.60.1.bb} (71%)Signature · 1 line
2.20.1
PATCH 1/13 insane.bbclass: Trigger unrecognzed configure option for meson
Tested with 'unknown-configure-option' in ERROR_QA:
For meson (glib-2.0-native):
1. add 'EXTRA_OEMESON_append = "-Dschnitzel=true -Dwurst=true"'
| ERROR: glib-2.0-native-1_2.58.3-r0 do_configure: QA Issue: glib-2.0-native: configure was passed unrecognised options: schnitzel wurst [unknown-configure-option]
2. add 'UNKNOWN_CONFIGURE_WHITELIST_append=" schnitzel"'
| ERROR: glib-2.0-native-1_2.58.3-r0 do_configure: QA Issue: glib-2.0-native: configure was passed unrecognised options: wurst [unknown-configure-option]
3. change to 'UNKNOWN_CONFIGURE_WHITELIST_append=" schnitzel wurst"'
=> builds without issues
For autotools (readline-native):
1. add 'EXTRA_OECONF = "--with-schnitzel --with-wurst"'
| ERROR: readline-native-8.0-r0 do_configure: QA Issue: readline-native: configure was passed unrecognised options: --with-wurst --with-schnitzel [unknown-configure-option]
2. add 'UNKNOWN_CONFIGURE_WHITELIST_append=" --with-schnitzel"'
| ERROR: readline-native-8.0-r0 do_configure: QA Issue: readline-native: configure was passed unrecognised options: --with-wurst [unknown-configure-option]
3. add 'UNKNOWN_CONFIGURE_WHITELIST_append=" --with-schnitzel --with-wurst"'
=> builds without issues
---
This is a resend
meta/classes/insane.bbclass | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
meta/classes/insane.bbclass +8 -4
@@ -1093,12 +1093,16 @@ Rerun configure task after fixing this.""" ########################################################################### # Check unrecognised configure options (with a white list) ########################################################################### - if bb.data.inherits_class("autotools", d): + if bb.data.inherits_class("autotools", d) or bb.data.inherits_class("meson", d): bb.note("Checking configure output for unrecognised options") try: - flag = "WARNING: unrecognized options:" - log = os.path.join(d.getVar('B'), 'config.log') - output = subprocess.check_output(['grep', '-F', flag, log]).decode("utf-8").replace(', ', ' ') + if bb.data.inherits_class("autotools", d): + flag = "WARNING: unrecognized options:" + log = os.path.join(d.getVar('B'), 'config.log') + if bb.data.inherits_class("meson", d): + flag = "WARNING: Unknown options:" + log = os.path.join(d.getVar('T'), 'log.do_configure') + output = subprocess.check_output(['grep', '-F', flag, log]).decode("utf-8").replace(', ', ' ').replace('"', '') options = set() for line in output.splitlines(): options |= set(line.partition(flag)[2].split())
Signature · 1 line
2.20.1
Re: [PATCH 01/13] insane.bbclass: Trigger unrecognzed configure option for meson
Quoted 11 lines · Andreas Müller
Tested with 'unknown-configure-option' in
ERROR_QA:For meson (glib-2.0-native):
1. add 'EXTRA_OEMESON_append= "-Dschnitzel=true -Dwurst=true"'
| ERROR: glib-2.0-native-1_2.58.3-r0do_configure: QA Issue: glib-2.0-native: configure was passed unrecognised options: schnitzel wurst [unknown-configure-option]
2. add 'UNKNOWN_CONFIGURE_WHITELIST_append=" schnitzel"'
| ERROR: glib-2.0-native-1_2.58.3-r0do_configure: QA Issue: glib-2.0-native: configure was passed unrecognised options: wurst [unknown-configure-option]
3. change to 'UNKNOWN_CONFIGURE_WHITELIST_append=" schnitzel wurst"'
=> builds without issues
Quoted 8 lines
For autotools (readline-native):
1. add 'EXTRA_OECONF= "--with-schnitzel --with-wurst"'
| ERROR: readline-native-8.0-r0do_configure: QA Issue: readline-native: configure was passed unrecognised options: --with-wurst --with-schnitzel [unknown-configure-option]
2. add 'UNKNOWN_CONFIGURE_WHITELIST_append=" --with-schnitzel"'
| ERROR: readline-native-8.0-r0do_configure: QA Issue: readline-native: configure was passed unrecognised options: --with-wurst [unknown-configure-option]
3. add 'UNKNOWN_CONFIGURE_WHITELIST_append=" --with-schnitzel --with-wurst"'
=> builds without issues
thinking of Weisswurst with Bayerischer Süßer Senf this patchset looks good :)
Quoted 41 lines
Signed-off-by Andreas Müller <[email protected]>---
This is a resend
meta/classes/insane.bbclass | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)meta/classes/insane.bbclass +8
-5@@ -1093,12 +1093,16 @@ Rerun configure task after fixing this.""" ########################################################################### # Check unrecognised configure options (with a white list) ########################################################################### - if bb.data.inherits_class("autotools", d): + if bb.data.inherits_class("autotools", d) or bb.data.inherits_class("meson", d): bb.note("Checking configure output for unrecognised options") try: - flag = "WARNING: unrecognized options:" - log = os.path.join(d.getVar('B'), 'config.log') - output = subprocess.check_output(['grep', '-F', flag, log]).decode("utf-8").replace(', ', ' ') + if bb.data.inherits_class("autotools", d): + flag = "WARNING: unrecognized options:" + log = os.path.join(d.getVar('B'), 'config.log') + if bb.data.inherits_class("meson", d): + flag = "WARNING: Unknown options:" + log = os.path.join(d.getVar('T'), 'log.do_configure') + output = subprocess.check_output(['grep', '-F', flag, log]).decode("utf-8").replace(', ', ' ').replace('"', '') options = set() for line in output.splitlines(): options |= set(line.partition(flag)[2].split()) --2.20.1
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
PATCH 2/13 gobject-introspection: auto-enable/-disable gobject-introspection for meson
In reply to Andreas Müller* the class sets defaults used most common which can be overriden by recipes
* UNKNOWN_CONFIGURE_WHITELIST was removed for autotools (and not added for meson) as suggested by Alexander Kanavin [1]
[1] http://lists.openembedded.org/pipermail/openembedded-core/2019-April/280716.html
---
V1 -> V2: Introduce GIR_MESON_OPTION as suggested by Alexander Kanavin V2 -> V3: * Add GIR_MESON_ENABLE_FLAG / GIR_MESON_DISABLE_FLAG
* remove UNKNOWN_CONFIGURE_WHITELIST_append
meta/classes/gobject-introspection.bbclass | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
meta/classes/gobject-introspection.bbclass +12 -2
@@ -6,14 +6,24 @@ # This also sets up autoconf-based recipes to build introspection data (or not), # depending on distro and machine features (see gobject-introspection-data class). inherit python3native gobject-introspection-data + +# meson: default option name to enable/disable introspection. This matches most +# project's configuration. In doubts - check meson_options.txt in project's +# source path. +GIR_MESON_OPTION ?= 'introspection' +GIR_MESON_ENABLE_FLAG ?= 'true' +GIR_MESON_DISABLE_FLAG ?= 'false' + +# Auto enable/disable based on GI_DATA_ENABLED EXTRA_OECONF_prepend_class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} " +EXTRA_OEMESON_prepend_class-target = "-D${GIR_MESON_OPTION}=${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GIR_MESON_ENABLE_FLAG}', '${GIR_MESON_DISABLE_FLAG}', d)} " # When building native recipes, disable introspection, as it is not necessary, # pulls in additional dependencies, and makes build times longer EXTRA_OECONF_prepend_class-native = "--disable-introspection " EXTRA_OECONF_prepend_class-nativesdk = "--disable-introspection " - -UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection" +EXTRA_OEMESON_prepend_class-native = "-D${GIR_MESON_OPTION}=${GIR_MESON_DISABLE_FLAG} " +EXTRA_OEMESON_prepend_class-nativesdk = "-D${GIR_MESON_OPTION}=${GIR_MESON_DISABLE_FLAG} " # Generating introspection data depends on a combination of native and target # introspection tools, and qemu to run the target tools.
Signature · 1 line
2.20.1
PATCH 3/13 libmodulemd: use gobject-introspection.bbclass on/off mechanism
In reply to Andreas Müller--- meta/recipes-devtools/libmodulemd/libmodulemd_git.bb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
meta/recipes-devtools/libmodulemd/libmodulemd_git.bb +3 -8
@@ -20,11 +20,6 @@ DEPENDS += "glib-2.0 libyaml glib-2.0-native" BBCLASSEXTEND = "native nativesdk" -GI_ENABLE_FLAG = "-Dskip_introspection=false" -GI_DISABLE_FLAG = "-Dskip_introspection=true" - -EXTRA_OEMESON_append_class-nativesdk = " ${GI_DISABLE_FLAG}" -EXTRA_OEMESON_append_class-native = " ${GI_DISABLE_FLAG}" - -EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GI_ENABLE_FLAG}', \ - '${GI_DISABLE_FLAG}', d)} " +GIR_MESON_OPTION = 'skip_introspection' +GIR_MESON_ENABLE_FLAG = 'false' +GIR_MESON_DISABLE_FLAG = 'true'
Signature · 1 line
2.20.1
PATCH 4/13 gdk-pixbuf: use gobject-introspection.bbclass on/off mechanism
In reply to Andreas Müller--- meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.38.0.bb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.38.0.bb +1 -7
@@ -37,13 +37,7 @@ inherit meson pkgconfig gettext pixbufcache ptest-gnome upstream-version-is-even GTKDOC_ENABLE_FLAG = "-Ddocs=true" GTKDOC_DISABLE_FLAG = "-Ddocs=false" -GI_ENABLE_FLAG = "-Dgir=true" -GI_DISABLE_FLAG = "-Dgir=false" - -EXTRA_OEMESON_append_class-nativesdk = " ${GI_DISABLE_FLAG}" - -EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GI_ENABLE_FLAG}', \ - '${GI_DISABLE_FLAG}', d)} " +GIR_MESON_OPTION = 'gir' EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GTKDOC_ENABLED', 'True', '${GTKDOC_ENABLE_FLAG}', \ '${GTKDOC_DISABLE_FLAG}', d)} "
Signature · 1 line
2.20.1
PATCH 5/13 json-glib: use gobject-introspection.bbclass on/off mechanism
In reply to Andreas Müller--- meta/recipes-gnome/json-glib/json-glib_1.4.4.bb | 5 ----- 1 file changed, 5 deletions(-)
meta/recipes-gnome/json-glib/json-glib_1.4.4.bb +0 -5
@@ -23,13 +23,8 @@ PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false,libxslt-native xmlto-native" GTKDOC_ENABLE_FLAG = "-Ddocs=true" GTKDOC_DISABLE_FLAG = "-Ddocs=false" -GI_ENABLE_FLAG = "-Dintrospection=true" -GI_DISABLE_FLAG = "-Dintrospection=false" - EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GTKDOC_ENABLED', 'True', '${GTKDOC_ENABLE_FLAG}', \ '${GTKDOC_DISABLE_FLAG}', d)} " -EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GI_ENABLE_FLAG}', \ - '${GI_DISABLE_FLAG}', d)} " do_install_append() { if ! ${@bb.utils.contains('PTEST_ENABLED', '1', 'true', 'false', d)}; then
Signature · 1 line
2.20.1
PATCH 6/13 libdazzle: use gobject-introspection.bbclass on/off mechanism
In reply to Andreas Müller--- meta/recipes-gnome/libdazzle/libdazzle_3.30.2.bb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
meta/recipes-gnome/libdazzle/libdazzle_3.30.2.bb +1 -5
@@ -11,10 +11,6 @@ SRC_URI += " file://0001-Add-a-define-so-that-gir-compilation-succeeds.patch" SRC_URI[archive.md5sum] = "24e2e1b914a34f5b8868a9507d1f3c4c" SRC_URI[archive.sha256sum] = "78770eae9fa15ac5acb9c733d29459330b2540affbf72933119e36dbd90b36d5" -GI_ENABLE_FLAG = "-Dwith_introspection=true" -GI_DISABLE_FLAG = "-Dwith_introspection=false" +GIR_MESON_OPTION = 'with_introspection' ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" - -EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GI_ENABLE_FLAG}', \ - '${GI_DISABLE_FLAG}', d)} "
Signature · 1 line
2.20.1
PATCH 7/13 clutter-gtk-1.0: use gobject-introspection.bbclass on/off mechanism
In reply to Andreas Müller--- meta/recipes-graphics/clutter/clutter-gtk-1.0.inc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)
meta/recipes-graphics/clutter/clutter-gtk-1.0.inc +1 -10
@@ -16,16 +16,7 @@ PACKAGES =+ "${PN}-examples" GTKDOC_ENABLE_FLAG = "-Denable_docs=true" GTKDOC_DISABLE_FLAG = "-Denable_docs=false" -GI_ENABLE_FLAG = "-Denable_gi=true" -GI_DISABLE_FLAG = "-Denable_gi=false" - -EXTRA_OEMESON_append_class-nativesdk = " ${GI_DISABLE_FLAG}" - -EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GI_ENABLE_FLAG}', \ - '${GI_DISABLE_FLAG}', d)} " - EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GTKDOC_ENABLED', 'True', '${GTKDOC_ENABLE_FLAG}', \ '${GTKDOC_DISABLE_FLAG}', d)} " - - +GIR_MESON_OPTION = 'enable_gi'
Signature · 1 line
2.20.1
PATCH 8/13 pango: use gobject-introspection.bbclass on/off mechanism
In reply to Andreas Müller--- meta/recipes-graphics/pango/pango_1.42.4.bb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)
meta/recipes-graphics/pango/pango_1.42.4.bb +1 -9
@@ -28,17 +28,9 @@ PACKAGECONFIG[x11] = ",,virtual/libx11 libxft" GTKDOC_ENABLE_FLAG = "-Denable_docs=true" GTKDOC_DISABLE_FLAG = "-Denable_docs=false" - -GI_ENABLE_FLAG = "-Dgir=true" -GI_DISABLE_FLAG = "-Dgir=false" - -EXTRA_OEMESON_append_class-nativesdk = " ${GI_DISABLE_FLAG}" - -EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GI_ENABLE_FLAG}', \ - '${GI_DISABLE_FLAG}', d)} " - EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GTKDOC_ENABLED', 'True', '${GTKDOC_ENABLE_FLAG}', \ '${GTKDOC_DISABLE_FLAG}', d)} " +GIR_MESON_OPTION = 'gir' LEAD_SONAME = "libpango-1.0*" LIBV = "1.8.0"
Signature · 1 line
2.20.1
PATCH 9/13 at-spi2-core: use gobject-introspection.bbclass on/off mechanism
In reply to Andreas Müller--- meta/recipes-support/atk/at-spi2-core_2.30.0.bb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
meta/recipes-support/atk/at-spi2-core_2.30.0.bb +4 -6
@@ -24,15 +24,13 @@ EXTRA_OEMESON = " -Dsystemd_user_dir=${systemd_user_unitdir} \ GTKDOC_ENABLE_FLAG = "-Denable_docs=true" GTKDOC_DISABLE_FLAG = "-Denable_docs=false" -GI_ENABLE_FLAG = "-Denable-introspection=yes" -GI_DISABLE_FLAG = "-Denable-introspection=no" - -EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GI_ENABLE_FLAG}', \ - '${GI_DISABLE_FLAG}', d)} " - EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GTKDOC_ENABLED', 'True', '${GTKDOC_ENABLE_FLAG}', \ '${GTKDOC_DISABLE_FLAG}', d)} " +GIR_MESON_OPTION = 'enable-introspection' +GIR_MESON_ENABLE_FLAG = 'yes' +GIR_MESON_DISABLE_FLAG = 'no' + FILES_${PN} += "${datadir}/dbus-1/services/*.service \ ${datadir}/dbus-1/accessibility-services/*.service \ ${datadir}/defaults/at-spi2 \
Signature · 1 line
2.20.1
PATCH 10/13 atk: use gobject-introspection.bbclass on/off mechanism
In reply to Andreas Müller--- meta/recipes-support/atk/atk_2.30.0.bb | 8 -------- 1 file changed, 8 deletions(-)
meta/recipes-support/atk/atk_2.30.0.bb +0 -8
@@ -17,14 +17,6 @@ inherit gnomebase gtk-doc gettext upstream-version-is-even gobject-introspection GTKDOC_ENABLE_FLAG = "-Ddocs=true" GTKDOC_DISABLE_FLAG = "-Ddocs=false" -GI_ENABLE_FLAG = "-Dintrospection=true" -GI_DISABLE_FLAG = "-Dintrospection=false" - -EXTRA_OEMESON_append_class-nativesdk = " ${GI_DISABLE_FLAG}" - -EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GI_ENABLE_FLAG}', \ - '${GI_DISABLE_FLAG}', d)} " - EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GTKDOC_ENABLED', 'True', '${GTKDOC_ENABLE_FLAG}', \ '${GTKDOC_DISABLE_FLAG}', d)} "
Signature · 1 line
2.20.1
PATCH 11/13 libsoup-2.4: use gobject-introspection.bbclass on/off mechanism
In reply to Andreas Müller--- meta/recipes-support/libsoup/libsoup-2.4_2.64.2.bb | 8 -------- 1 file changed, 8 deletions(-)
meta/recipes-support/libsoup/libsoup-2.4_2.64.2.bb +0 -8
@@ -29,14 +29,6 @@ EXTRA_OEMESON_append = " -Dvapi=false" GTKDOC_ENABLE_FLAG = "-Ddoc=true" GTKDOC_DISABLE_FLAG = "-Ddoc=false" -GI_ENABLE_FLAG = "-Dintrospection=true" -GI_DISABLE_FLAG = "-Dintrospection=false" - -EXTRA_OEMESON_append_class-nativesdk = " ${GI_DISABLE_FLAG}" - -EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GI_ENABLE_FLAG}', \ - '${GI_DISABLE_FLAG}', d)} " - EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GTKDOC_ENABLED', 'True', '${GTKDOC_ENABLE_FLAG}', \ '${GTKDOC_DISABLE_FLAG}', d)} "
Signature · 1 line
2.20.1
PATCH 12/13 glib-networking: upgrade 2.58.0 -> 2.60.1
In reply to Andreas Müllerthis version support gnutls option again - it was mandatory for 2.58.0
---
...-networking_2.58.0.bb => glib-networking_2.60.1.bb} | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
rename meta/recipes-core/glib-networking/{glib-networking_2.58.0.bb => glib-networking_2.60.1.bb} (71%)meta/recipes-core/glib-networking/glib-networking_2.60.1.bb renamed from meta/recipes-core/glib-networking/glib-networking_2.58.0.bb +5 -5
@@ -9,15 +9,15 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" SECTION = "libs" DEPENDS = "glib-2.0" -SRC_URI[archive.md5sum] = "75b14b7e73a67753be9ce307751c661d" -SRC_URI[archive.sha256sum] = "bdfa0255e031b8ee003cc283002536b77ee76450105f1dc6ab066b9bf4330068" +SRC_URI[archive.md5sum] = "83321ffc3c336894b8a5bc18db3fe58d" +SRC_URI[archive.sha256sum] = "d71c6b2faa5ac29100314f08a1be020a2afd0291f025614c0af0d17b14435d92" PACKAGECONFIG ??= "gnutls" -PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls" -PACKAGECONFIG[libproxy] = "-Dlibproxy_support=true,-Dlibproxy_support=false,libproxy" +PACKAGECONFIG[gnutls] = "-Dgnutls=enabled,-Dgnutls=disabled,gnutls" +PACKAGECONFIG[libproxy] = "-Dlibproxy=enabled,-Dlibproxy=disabled,libproxy" -EXTRA_OEMESON = "-Dgnome_proxy_support=false" +EXTRA_OEMESON = "-Dgnome_proxy=disabled" GNOMEBASEBUILDCLASS = "meson" inherit gnomebase gettext upstream-version-is-even gio-module-cache
Signature · 1 line
2.20.1
PATCH 13/13 gst-plugins: move 'inherit gobject-introspection' to recipes supporting GI
In reply to Andreas MüllerNow that whitelisting for unknown configure options was removed in gobject-introspection.bbclass gstreamer1.0-plugins-ugly/-good start complaining
| ERROR: gstreamer1.0-plugins-ugly-1.14.4-r0 do_configure: QA Issue: gstreamer1.0-plugins-ugly: configure was passed unrecognised options: --enable-introspection [unknown-configure-option] | ERROR: gstreamer1.0-plugins-good-1.14.4-r0 do_configure: QA Issue: gstreamer1.0-plugins-good: configure was passed unrecognised options: --enable-introspection [unknown-configure-option]
So let only those gst-plugin recipes inherit gobject-introspection whose sources support GI.
--- .../gstreamer/gstreamer1.0-plugins-bad_1.14.4.bb | 2 +- .../gstreamer/gstreamer1.0-plugins-base_1.14.4.bb | 2 +- meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.14.4.bb +1 -1
@@ -20,7 +20,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=73a5855a8119deb017f5f13cf327095d \ DEPENDS += "gstreamer1.0-plugins-base" -inherit gettext bluetooth +inherit gettext bluetooth gobject-introspection PACKAGECONFIG ??= " \ ${GSTREAMER_ORC} \
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.14.4.bb +1 -1
@@ -28,7 +28,7 @@ S = "${WORKDIR}/gst-plugins-base-${PV}" DEPENDS += "iso-codes util-linux" -inherit gettext +inherit gettext gobject-introspection PACKAGES_DYNAMIC =+ "^libgst.*"
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc +1 -1
@@ -7,7 +7,7 @@ DEPENDS = "gstreamer1.0 glib-2.0-native" SRC_URI_append = " file://gtk-doc-tweaks.patch" -inherit autotools pkgconfig upstream-version-is-even gobject-introspection gtk-doc +inherit autotools pkgconfig upstream-version-is-even gtk-doc acpaths = "-I ${S}/common/m4 -I ${S}/m4"
Signature · 1 line
2.20.1
Re: [PATCH 13/13] gst-plugins: move 'inherit gobject-introspection' to recipes supporting GI
Thanks, looks good!
Alex
Quoted 60 lines · Andreas Müller
Now that whitelisting for unknown configure options was removed in gobject-introspection.bbclass gstreamer1.0-plugins-ugly/-good start complaining
| ERROR: gstreamer1.0-plugins-ugly-1.14.4-r0
do_configure: QA Issue: gstreamer1.0-plugins-ugly: configure was passed unrecognised options: --enable-introspection [unknown-configure-option] | ERROR: gstreamer1.0-plugins-good-1.14.4-r0do_configure: QA Issue: gstreamer1.0-plugins-good: configure was passed unrecognised options: --enable-introspection [unknown-configure-option]So let only those gst-plugin recipes inherit gobject-introspection whose sources support GI.
Signed-off-by Andreas Müller <[email protected]>---
.../gstreamer/gstreamer1.0-plugins-bad_1.14.4.bb | 2 +- .../gstreamer/gstreamer1.0-plugins-base_1.14.4.bb | 2 +- meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.14.4.bb +0
-0@@ -20,7 +20,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=73a5855a8119deb017f5f13cf327095d \DEPENDS += "gstreamer1.0-plugins-base"
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.14.4.bb +1
-1-inherit gettext bluetooth +inherit gettext bluetooth gobject-introspectionPACKAGECONFIG ??= " \ ${GSTREAMER_ORC} \meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.14.4.bb +0
-0@@ -28,7 +28,7 @@ S = "${WORKDIR}/gst-plugins-base-${PV}"DEPENDS += "iso-codes util-linux"
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.14.4.bb +1
-1-inherit gettext +inherit gettext gobject-introspection
PACKAGES_DYNAMIC=+ "^libgst.*"meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc +0
-0@@ -7,7 +7,7 @@ DEPENDS = "gstreamer1.0 glib-2.0-native"
SRC_URI_append= " file://gtk-doc-tweaks.patch"meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc +1
-1-inherit autotools pkgconfig upstream-version-is-even gobject-introspection gtk-doc +inherit autotools pkgconfig upstream-version-is-even gtk-docacpaths = "-I ${S}/common/m4 -I ${S}/m4"
Signature · 1 line
2.20.1
ERROR: gstreamer1.0-python-1.14.4-r0 do_configure: QA Issue:
gstreamer1.0-python: configure was passed unrecognised options:
--enable-introspection [unknown-configure-option]
Quoted 4 lines · Ross
ERROR: gstreamer1.0-python-1.14.4-r0
do_configure: QA Issue:
gstreamer1.0-python: configure was passed unrecognised options:
--enable-introspection [unknown-configure-option]
Seems my build did not include that. Need to test-build all inheriting gobject-introspection. Will send a follow up tonight.
Andreas