From: "Petr Kubizňák" <kubiznak@2n.com>
To: <openembedded-core@lists.openembedded.org>
Cc: "Petr Kubizňák" <kubiznak@2n.com>
Subject: [OE-core][PATCH v4 01/10] gobject-introspection: reduce dependencies
Date: Fri, 31 Mar 2023 13:46:25 +0200 [thread overview]
Message-ID: <20230331114634.3578244-1-kubiznak@2n.com> (raw)
When GI_DATA_ENABLED is 'False' (e.g. because
'gobject-introspection-data' is not in DISTRO_FEATURES),
gobject-introspection, gobject-introspection-native and qemu-native
should not be added to DEPENDS. This is to reduce dependency chain
when g-i is disabled.
Signed-off-by: Petr Kubizňák <kubiznak@2n.com>
---
meta/classes-recipe/gobject-introspection.bbclass | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/meta/classes-recipe/gobject-introspection.bbclass b/meta/classes-recipe/gobject-introspection.bbclass
index 0c7b7d200a..98edb93761 100644
--- a/meta/classes-recipe/gobject-introspection.bbclass
+++ b/meta/classes-recipe/gobject-introspection.bbclass
@@ -35,7 +35,7 @@ EXTRA_OEMESON:prepend:class-nativesdk = "${@['', '${GIRMESONBUILD}'][d.getVar('G
# Generating introspection data depends on a combination of native and target
# introspection tools, and qemu to run the target tools.
-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)}"
# Even though introspection is disabled on -native, gobject-introspection package is still
# needed for m4 macros.
@@ -46,10 +46,12 @@ DEPENDS:append:class-nativesdk = " gobject-introspection-native"
export XDG_DATA_DIRS = "${STAGING_DATADIR}:${STAGING_LIBDIR}"
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
}
# .typelib files are needed at runtime and so they go to the main package (so
--
2.30.2
next reply other threads:[~2023-03-31 11:48 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-31 11:46 Petr Kubizňák [this message]
2023-03-31 11:46 ` [OE-core][PATCH v4 02/10] graphene: add gobject-types PACKAGECONFIG Petr Kubizňák
2023-03-31 11:46 ` [OE-core][PATCH v4 03/10] python3-pygobject: depend on gobject-introspection Petr Kubizňák
2023-03-31 11:46 ` [OE-core][PATCH v4 04/10] gconf: add missing dependencies Petr Kubizňák
2023-03-31 11:46 ` [OE-core][PATCH v4 05/10] avahi: " Petr Kubizňák
2023-03-31 11:46 ` [OE-core][PATCH v4 06/10] webkitgtk: " Petr Kubizňák
2023-03-31 12:06 ` Richard Purdie
2023-04-03 10:31 ` Petr Kubizňák - 2N
2023-04-03 10:43 ` Richard Purdie
2023-03-31 11:46 ` [OE-core][PATCH v4 07/10] harfbuzz: depend on glib-2.0-native Petr Kubizňák
2023-03-31 11:46 ` [OE-core][PATCH v4 08/10] json-glib: " Petr Kubizňák
2023-03-31 11:46 ` [OE-core][PATCH v4 09/10] libgudev: " Petr Kubizňák
2023-03-31 11:46 ` [OE-core][PATCH v4 10/10] at-spi2-core: " Petr Kubizňák
2023-04-03 20:14 ` [OE-core][PATCH v4 01/10] gobject-introspection: reduce dependencies Richard Purdie
2023-04-04 7:07 ` Petr Kubizňák - 2N
2023-04-05 7:05 ` Petr Kubizňák - 2N
2023-04-05 8:19 ` Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230331114634.3578244-1-kubiznak@2n.com \
--to=kubiznak@2n.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox