From patchwork Wed Mar 13 00:37:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 160186 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp13722284jad; Tue, 12 Mar 2019 17:37:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwALH4uMoClS646oRIwcFZ8WSpsQAwH7+j1Qm84zLKdYKWVJVJYODVx5ub5ELTZfi3b23Cp X-Received: by 2002:a62:1c45:: with SMTP id c66mr41646813pfc.90.1552437433446; Tue, 12 Mar 2019 17:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552437433; cv=none; d=google.com; s=arc-20160816; b=cQEnKIyTr6PX16FMNd+gpw0Mcz8vrediFBQhw1m1AHrPq9/f2n9hS345nGsQpBJkfd InlKC+FVk+DYoug5wgvt5d+Wce4YyZK+Mp7c+PZCxV0+TJm9T1QgzDWjtMR1jKTw8Z9v LV94I2kIPRLiRL2PWYyts2cN3e+DyGJ1CddRBGFLXp+uqw+J89b8sytcKVnrDBfHUwrY alR0J8QhaEi8VQCRYBe0NiwPens0DLCbG58YsdJn+/eA1M2akp9vDaJlA3g6w/xX20JG dwFhCwIsRJfsiF5UCxBWBSBtoymqCjpo2MCHQCajptkmJevI6W+aMINTyZOKtx8V1pF3 U4Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to; bh=cQzozz10RwUtZzF76NE9T0oe9Ns8eYoHRdM2zzZlgfQ=; b=P/ObKX7EK0wcVqTc1ADYIi7CaTeAzo9eARQSNXdDwvXiz44gX2Yq0vZ2oRCB01snAf Y5NjKVP35a5Px98YriTiAKfoFcSWvhkDX8f1DuEhJR49aiWq3IPFvre1PQJ/LpeFKH3P 9PNuOYGxR0K/qv4XkuImgipOCs7kZy7qc1gLJ4CwGsAujKPYl2V5fyqhKogobQ5AGom+ Uw+yNwKk+ZpfD8Rz0WIYC5mDYmfXq3WeF+tdoZvUF+5bT9ink6HlqnpQ0pATNL5zdiGf UnAb1oDzPBk5MNOwpnPoqkfaTg763P/p6v71NGJbbSxWWUasDcVe2xLI6bsGk5E0/rW5 acyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="JxW2pF4/"; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id i39si9711273plb.210.2019.03.12.17.37.12; Tue, 12 Mar 2019 17:37:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="JxW2pF4/"; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 4085160125; Wed, 13 Mar 2019 00:37:08 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mail.openembedded.org (Postfix) with ESMTP id C43FC60125 for ; Wed, 13 Mar 2019 00:37:05 +0000 (UTC) Received: by mail-wr1-f48.google.com with SMTP id w2so63909wrt.11 for ; Tue, 12 Mar 2019 17:37:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=OMHZNOPSoFJlOOeZUo+qZ/nva0o207ySzgQ/0Ar0NGs=; b=JxW2pF4/IA09b+rhknmoSOWRugrLDfHYBxyfHwpFRczGiCfhrGxRZ6P4sxmlrNAb8U fJmwYjET1pd0KhYtpRQ47inePSqf6C3ig9HwodCrj3m+d7xNpg1Wb7ypwG6b8uLu6bhJ qOP4i59/rl9V27LXuRGWqCXphbWA0Hx+a2980uRH4Vh/d53H3ikMO2HGXVbB4sQNnxtU n29CqvIzjXuZTCXQX1mLeDkaEtYNgIeNcjyGSMKl/HZ9aCPuC1HgpWhfIIQZJ6CrThTh 9ZzBg+6jPaEyKSym8Nkq5/Zg8kx6wK4rxQfUnZU6mY2ZQpCGx+gyBLq2OpxMS7UI7W7z voZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=OMHZNOPSoFJlOOeZUo+qZ/nva0o207ySzgQ/0Ar0NGs=; b=inVEnLdEL7wsQfofAwr2Sz20AVEibALDNVo1MQDqHA90ywGrirZjg94i+jeUzJhN8D AQLrr+hSJ8Requd5OVDRjxgcm5C106rF6T6+0xgmTaefyNXWebyjHwOmn0AzLvPj2yLB lO1nMGVM382HImbPiFarxRXuBuomtupItZx3OUduCSHPJVGM6Tp80n5wVzwpJOjsXNaU gqWdsaToIX9RohnHJVcdt0g9FvuqZ6EUUZgv2tt5fPetPdwumrt+inV5yoyWJiixCEsw yYNV4raawIK0qyMgNcLnI03PTqHVpnSbANPa0v5r2XHqH8ut4RN8g5fkbHQR+pAVRYf0 VTrg== X-Gm-Message-State: APjAAAXyodjaVXrwxpo3LlyGkim9S7WRbSJZ+RVNqRcKeiR3WvyWTdro w1kINZiFgdbfP6cr3qrUSuy/OGezh9Q= X-Received: by 2002:a5d:468d:: with SMTP id u13mr3006845wrq.132.1552437426310; Tue, 12 Mar 2019 17:37:06 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id d15sm27038571wrw.36.2019.03.12.17.37.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Mar 2019 17:37:05 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Wed, 13 Mar 2019 00:37:02 +0000 Message-Id: <20190313003702.24328-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] glib-2.0: clean up EXTRA_OEMESON 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Instead of spreading the ptest enabling over the recipe, just add a PACKAGECONFIG to enable the installed tests. Whether this is enabled respects PTEST_ENABLED by default, so it always disabled in native and nativesdk builds. This means we can remove the conditional dependency on dbus, all the conditional enabling of installed tests, and clean up EXTRA_OEMESON. Signed-off-by: Ross Burton --- meta/recipes-core/glib-2.0/glib.inc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc index 3c2440db0e5..6f0ec1ad2e9 100644 --- a/meta/recipes-core/glib-2.0/glib.inc +++ b/meta/recipes-core/glib-2.0/glib.inc @@ -22,8 +22,7 @@ DEPENDS = "glib-2.0-native \ virtual/libintl \ virtual/libiconv \ libffi \ - zlib \ - ${@bb.utils.contains('PTEST_ENABLED', '1', 'dbus', '', d)}" + zlib" PACKAGES += "${PN}-codegen ${PN}-utils" @@ -43,19 +42,17 @@ unset _PYTHON_SYSCONFIGDATA_NAME S = "${WORKDIR}/glib-${PV}" -PACKAGECONFIG ??= "system-pcre libmount" +PACKAGECONFIG ??= "system-pcre libmount \ + ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" # To use the system pcre it must be configured with --enable-unicode-properties PACKAGECONFIG[system-pcre] = "-Dinternal_pcre=false,-Dinternal_pcre=true,libpcre" PACKAGECONFIG[libmount] = "-Dlibmount=true,-Dlibmount=false,util-linux" PACKAGECONFIG[manpages] = "-Dman=true, -Dman=false, libxslt-native xmlto-native" # libelf is auto-detected without a configuration option PACKAGECONFIG[libelf] = ",,elfutils" +PACKAGECONFIG[tests] = "-Dinstalled_tests=true,-Dinstalled_tests=false,dbus" -CORECONF = "-Ddtrace=false -Dfam=false -Dsystemtap=false -Dselinux=false" - -EXTRA_OEMESON = "${CORECONF} ${@bb.utils.contains('PTEST_ENABLED', '1', '-Dinstalled_tests=true', '-Dinstalled_tests=false', d)}" -EXTRA_OEMESON_class-native = "${CORECONF} -Dinstalled_tests=false" -EXTRA_OEMESON_class-nativesdk = "${CORECONF} -Dinstalled_tests=false" +EXTRA_OEMESON = "-Ddtrace=false -Dfam=false -Dsystemtap=false -Dselinux=false" do_configure_prepend() { sed -i -e '1s,#!.*,#!${USRBINPATH}/env python3,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in