Skip to contentSkip to conversation

libblockdev: add introspection options to UNKNOWN_CONFIGURE_OPT_IGNORE

PATCH New Martin Jansa 1 participant 4 messages May 15, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 libblockdev: add introspection options to UNKNOWN_CONFIGURE_OPT_IGNORE

* fixes:
http://errors.yoctoproject.org/Errors/Details/704197/

ERROR: QA Issue: libblockdev: configure was passed unrecognised options: --disable-introspection [unknown-configure-option]

* since:
https://git.openembedded.org/openembedded-core/commit/meta/classes-recipe/gobject-introspection.bbclass?id=4e51c1815c92bb15977a3bdb14171d770da44004
introspection.m4 doesn't get copied to ${S}/m4 without gobject-introspection-data

---
 meta-oe/recipes-extended/libblockdev/libblockdev_2.28.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-extended/libblockdev/libblockdev_2.28.bb +2 -0
index 44b4e7daf9..f86baa21c8 100644
@@ -10,6 +10,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c07cb499d259452f324bb90c3067d85c"
 
 inherit autotools gobject-introspection pkgconfig
 
+UNKNOWN_CONFIGURE_OPT_IGNORE = "--disable-introspection --enable-introspection"
+
 SRC_URI = "git://github.com/storaged-project/libblockdev;branch=2.x-branch;protocol=https \
 "
 SRCREV = "1412dc51c8f76bf8d9a6008228737db4a9a26d69"
Signature · 1 line
2.40.1
#1 lore raw

PATCH 2/4 libpeas: add gobject-introspection-data to REQUIRED_DISTRO_FEATURES

* do_configure fails without it:
http://errors.yoctoproject.org/Errors/Details/704193/

* there is "introspection" meson option, but the search
for gobject-introspection-1.0 doesn't respect it (nor use "required: false")

introspection_dep = dependency('gobject-introspection-1.0', version: introspection_req)

---
 meta-oe/recipes-gnome/libpeas/libpeas_1.36.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-gnome/libpeas/libpeas_1.36.0.bb +1 -0
index 1282e93634..f5b088240f 100644
@@ -11,6 +11,7 @@ GTKDOC_MESON_OPTION = "gtk_doc"
 inherit gnomebase gobject-introspection gtk-doc gtk-icon-cache features_check
 
 ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
+REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
 
 SRC_URI[archive.sha256sum] = "297cb9c2cccd8e8617623d1a3e8415b4530b8e5a893e3527bbfd1edd13237b4c"
 
Signature · 1 line
2.40.1
#2 lore raw

PATCH 3/4 glade: add gobject-introspection-data to REQUIRED_DISTRO_FEATURES

In reply to Martin Jansa

* otherwise do_configure fails:
http://errors.yoctoproject.org/Errors/Details/704194/

gladeui/Makefile.am:267: error: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL

* AM_CONDITIONAL is in ${STAGING_DIR_TARGET}/${datadir}/aclocal/introspection.m4:
AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")

  but since:
  https://git.openembedded.org/openembedded-core/commit/meta/classes-recipe/gobject-introspection.bbclass?id=4e51c1815c92bb15977a3bdb14171d770da44004
  it doesn't get copied to ${S}/m4 without gobject-introspection-data
---
 meta-oe/recipes-devtools/glade/glade_3.22.2.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/glade/glade_3.22.2.bb +1 -0
index 6c1112038c..9ee087fdb7 100644
@@ -13,6 +13,7 @@ inherit features_check autotools pkgconfig gnomebase gobject-introspection mime-
 # xfce4 depends on libwnck3, gtk+3 and libepoxy need to be built with x11 PACKAGECONFIG.
 # cairo would at least needed to be built with xlib.
 ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
+REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
 
 SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/glade/3.22/glade-${PV}.tar.xz \
            file://remove-yelp-help-rules-var.patch \
Signature · 1 line
2.40.1
#3 lore raw

PATCH 4/4 paprefs: add x11 to REQUIRED_DISTRO_FEATURES

In reply to Martin Jansa

* This doesn't build with any gtk3 DISTRO_FEATURES, without x11 in DISTRO_FEATURES gtk3+ doesn't provide gdkx.h and paprefs build fails with:
http://errors.yoctoproject.org/Errors/Details/704195/

../paprefs-1.2/src/paprefs.cc:30:10: fatal error: gdk/gdkx.h: No such file or directory
30 | #include <gdk/gdkx.h>

      |          ^~~~~~~~~~~~
---
 meta-oe/recipes-multimedia/pulseaudio/paprefs_1.2.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-multimedia/pulseaudio/paprefs_1.2.bb +2 -1
index 6d0cf7ed7f..6e4321dd7d 100644
@@ -7,7 +7,8 @@ DEPENDS = "pulseaudio gtkmm3 gtk+3 libsigc++-3 glibmm"
 
 inherit meson pkgconfig features_check
 
-ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
+# paprefs.cc includes gdk/gdkx.h and gdkx.h isn't provided by gtk3 without x11 in DISTRO_FEATURES
+REQUIRED_DISTRO_FEATURES = "x11"
 
 SRC_URI = "http://freedesktop.org/software/pulseaudio/paprefs/${BP}.tar.xz"
 
Signature · 1 line
2.40.1