On 15 May 2023, at 12:40, Martin Jansa via lists.openembedded.org 
<[email protected]> wrote:
>  do_configure:prepend:class-target () {
> -    # introspection.m4 pre-packaged with upstream tarballs does not yet
> -    # have our fixes
> -    mkdir -p ${S}/m4
> -    cp ${STAGING_DIR_TARGET}/${datadir}/aclocal/introspection.m4 ${S}/m4
> +    if [ "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '1', '0', d)}" = 
> "1" ] ; then
> +        # introspection.m4 pre-packaged with upstream tarballs does not yet
> +        # have our fixes
> +        mkdir -p ${S}/m4
> +        cp ${STAGING_DIR_TARGET}/${datadir}/aclocal/introspection.m4 ${S}/m4
> +    fi
> 
> Was this extra .m4 file causing issues in builds without 
> gobject-introspection-data in DISTRO_FEATURES?
> 
> I've noticed some maybe unexpected side-effects from this change, see:
> libblockdev: 
> https://lists.openembedded.org/g/openembedded-devel/message/102599
> glade: https://lists.openembedded.org/g/openembedded-devel/message/102601

That would be from:

-DEPENDS:append:class-target = " gobject-introspection 
gobject-introspection-native qemu-native"
+DEPENDS:append:class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 
'True', 'gobject-introspection gobject-introspection-native qemu-native', '', 
d)}”

As the comment below explains:

# Even though introspection is disabled on -native, gobject-introspection 
package is still
# needed for m4 macros.

g-i-native will *always* be needed as a build dependency, because packages 
built from git may not have any m4 macros in.

Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181259): 
https://lists.openembedded.org/g/openembedded-core/message/181259
Mute This Topic: https://lists.openembedded.org/mt/98032505/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to