On Mon, Oct 28, 2024 at 12:26 PM Max Krummenacher via
lists.openembedded.org <[email protected]>
wrote:
>
> From: Max Krummenacher <[email protected]>
>
> In my setup a build fails with
>
> | checking for gobject-introspection... configure: error: 
> gobject-introspection-1.0 is not installed
> | NOTE: The following config.log files may provide further information.
> | NOTE: 
> /var/home/krm/build/oe-core_master/build/tmp/work/cortexa55-tdx-linux/libgpiod/2.2/build/config.log
> | ERROR: configure failed
>
> From config.log this seems to be related to glib-2.0 not found:
>
> | configure:22484: $PKG_CONFIG --exists --print-errors 
> "gobject-introspection-1.0"
> | Package glib-2.0 was not found in the pkg-config search path.
> | Perhaps you should add the directory containing `glib-2.0.pc'
> | to the PKG_CONFIG_PATH environment variable
> | Package 'glib-2.0', required by 'gobject-introspection-1.0', not found
> | configure:22487: $? = 1
> | configure:22491: error: gobject-introspection-1.0 is not installed
>
> Note that glib-2.0.pc is present in recipes-sysroot-native but not
> in recipes-sysroot.
>
> Adding glib-2.0 to depends allows successful build of libgpiod 2.
>
> Fixes: 117d09ce43c7 ("libgpiod: update to v2.2")
> Signed-off-by: Max Krummenacher <[email protected]>
> ---
>  meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> I'm unsure if that is the correct fix.
> I would have expected that if gobject-introspection-1.0.pc depends
> on glib-2.0 to be present, then the inherit of gobject-introspection
> would have done the needful.
> However I'm not really familiar with gobject-introspection in the
> first place.
>
> Max
>
> diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb 
> b/meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb
> index b55da72f7b7f..3d9758e27af7 100644
> --- a/meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb
> +++ b/meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb
> @@ -9,6 +9,8 @@ LIC_FILES_CHKSUM = " \
>      file://LICENSES/CC-BY-SA-4.0.txt;md5=fba3b94d88bfb9b81369b869a1e9a20f \
>  "
>
> +DEPENDS += "glib-2.0"
> +

Pulling in the entire GLib for everything in this recipe is definitely
a wrong answer. I'm travelling and have limited time right now but I
will take a look on Thursday or Friday. I did test disabling
introspection though so I'm surprised to see this.

Bart

>  FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-2.x:"
>
>  SRC_URI += "file://gpio-manager.init"
> --
> 2.42.0
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#113265): 
https://lists.openembedded.org/g/openembedded-devel/message/113265
Mute This Topic: https://lists.openembedded.org/mt/109255084/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to