Return-Path: X-Greylist: delayed 589 seconds by postgrey-1.34 at layers.openembedded.org; Sat, 21 Jan 2017 05:12:13 UTC Received: from mail.analogue-micro.com (mail.analogue-micro.com [217.144.149.242]) by mail.openembedded.org (Postfix) with ESMTP id BABDE60762 for ; Sat, 21 Jan 2017 05:12:13 +0000 (UTC) Received: by mail.analogue-micro.com (Postfix, from userid 999) id 4EC6868A01C; Sat, 21 Jan 2017 05:02:23 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on loki.analogue-micro-ltd.com X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED,BAYES_00, DNS_FROM_AHBL_RHSBL autolearn=no version=3.3.2 Received: from zeus.mlbassoc.com (unknown [10.8.0.2]) by mail.analogue-micro.com (Postfix) with ESMTP id DB23F68A019; Sat, 21 Jan 2017 05:02:22 +0000 (GMT) Received: by zeus.mlbassoc.com (Postfix, from userid 1000) id 5D5AA67403E8; Sat, 21 Jan 2017 06:02:21 +0100 (CET) From: Gary Thomas To: openembedded-core@lists.openembedded.org Date: Sat, 21 Jan 2017 06:02:18 +0100 Message-Id: <1484974938-6497-1-git-send-email-gary@mlbassoc.com> X-Mailer: git-send-email 2.7.4 Cc: Gary Thomas Subject: [PATCH] glib-2.0: native package should not depend on DISTRO_FEATURES X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jan 2017 05:12:14 -0000 xxx-native packages should not depend on ${DISTRO} settings. Doing so feels inherently wrong and limits the usefulness of sstate-cache. This patch changes how this package is installed, in particular removing the dependency on the ${DISTRO_FEATURES} variable in glib-2.0-native. This will further improve the ability to share native packages between builds with differences in ${DISTRO_FEATURES} Signed-off-by: Gary Thomas --- meta/recipes-core/glib-2.0/glib.inc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc index cb6aca7..a5db455 100644 --- a/meta/recipes-core/glib-2.0/glib.inc +++ b/meta/recipes-core/glib-2.0/glib.inc @@ -92,16 +92,20 @@ do_install_append () { sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/glib-mkenums fi + # Make sure gio-querymodules is unique among multilibs + if test "x${MLPREFIX}" != "x"; then + mv ${D}${libexecdir}/gio-querymodules ${D}${libexecdir}/${MLPREFIX}gio-querymodules + fi +} + +do_install_append_class-target () { + # Tests are only installed on targets, not native builds. Separating this out + # keeps glib-2.0-native from depending on ${DISTRO_FEATURES} if [ -f ${D}${datadir}/installed-tests/glib/gdbus-serialization.test ]; then if ${@bb.utils.contains("DISTRO_FEATURES", "x11", "false", "true", d)}; then rm ${D}${datadir}/installed-tests/glib/gdbus-serialization.test fi fi - - # Make sure gio-querymodules is unique among multilibs - if test "x${MLPREFIX}" != "x"; then - mv ${D}${libexecdir}/gio-querymodules ${D}${libexecdir}/${MLPREFIX}gio-querymodules - fi } do_install_append_libc-musl () { -- 2.7.4