From patchwork Tue Jan 16 20:05:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 124765 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp1133123lje; Tue, 16 Jan 2018 12:06:01 -0800 (PST) X-Google-Smtp-Source: ACJfBov0GTYshXaOO7QgU0X9MMlq+mcurQMRq/F/Ao4qJzlJVH8YxMjr1HOBxFpN0KghVxicbERq X-Received: by 10.99.4.216 with SMTP id 207mr14449605pge.45.1516133161835; Tue, 16 Jan 2018 12:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516133161; cv=none; d=google.com; s=arc-20160816; b=YtxF4fOgYpo+0Uxca0+uobLDccD+2zebxC+e/O/8Vo30Jgy9kcEK2vdsl1jAsfEkdQ 2QDjOHilKk7BgsUVR1oV0VjY3iaEqZAZC3KIt5gkQhOhQAyXA+nzXI1CPNZV+WqN+AvD XZ4CiG7xso9Zk+QBbG5iPUnizRpRHpteqr7OrnQUPkItAPpntMrB17vBOl4USDDEw4n0 S/dAkR8RLmToRZ7qnYaF57FWSwtIKDai1D5tIdY4Hpg4qrC9KgV7oNsdxvVgp0cn2VAQ YoQT3YwRWG5/XhlEtalnGrmXYRngYqr9taUXH67S+uEB9bgWZjUbTm/ZJxhFldLg7r/3 BsLg== 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:arc-authentication-results; bh=bDrK7PReRzBL4xoRM7XriG42XS1ufUklWjKB7YtqVAI=; b=uovRonE3YYkPPjiZClJzfmCmGOeBQL3aEEybKYEAkU5VErFfTsjna4Qz5VyYD7Cppv N8k22FGVrv3JD2dySY77VUh/ZYJaMm10N6pA2h94lyMEfO1jlTAC9YLA3tIbMrNgTCj5 pzAIRd52fImTpPFjNusRe5XK/8DD/lCFZ45fgEzyfuWIhTAXyeZxIFmJbGpQpuFS5Q05 Y3gDH45lec8bed/zDwX0eOHY6YJs/H03rIymdQUj51qc3nUE6B6FaQyApMEi5C8Rbvid twVIiV1SRKe06ApIYOtP3j0NacHzbU6OYf4eA21/8VFaBz+Qtm4sPKm6JLL52eOefbxL hvwQ== 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=ZCWxU3kT; 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 Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id e82si2520384pfd.331.2018.01.16.12.06.01; Tue, 16 Jan 2018 12:06:01 -0800 (PST) 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=ZCWxU3kT; 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 Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3977D78560; Tue, 16 Jan 2018 20:05:55 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by mail.openembedded.org (Postfix) with ESMTP id CF97C71B1D for ; Tue, 16 Jan 2018 20:05:53 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id f11so6064365wre.4 for ; Tue, 16 Jan 2018 12:05:55 -0800 (PST) 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=PIiR4YzLM5PuyjK7DPdo6Ym3Tv11tbu0tEd76ckiRcg=; b=ZCWxU3kTbKEapMV3mZnA1zzNQJCXvLsQn0KnZLmqSRWg3qjrysocJQ1HJeRuZ+zKVq OXwFYljsg39VjzWuprz9KZW8JZwNUNVZYY0eFiD7RmUnolDhsHdg3xsDkCsEdKD02S40 UFIWqFP3cIJnKRhRlfYHfIVTQJawojn3nkzy0xViS9MeGcWjuXLj+M2FGplfkARzkL/I HSQDouDO0299uYJdDKYV32MrrZewpnBU2jUU6lxJT/2QL7Z2LposM3bQG6ogslXgXiHu DuDRdl+irSYOYdgkP3AWc7qj833OZH7XajQneiY8naMfqOB96b0SEK5/mjzSgfT/OTYa q3Ew== 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=PIiR4YzLM5PuyjK7DPdo6Ym3Tv11tbu0tEd76ckiRcg=; b=biqI9Z0CILY8Ijy4fdJ98zAwLP0cGsshhro2uJbGzBubbdARkJ55PiFlpksovIyQCg JyyV0nyRFlC916qC3lcF6gzwjzFS9qaVQE2J6+6zMn13gjPK0QwvOWp8n0UWwo7HC2TX l4kD5WbUu/9N8xeV5JQRG28SFsElx3LeHI0Ay7ewCCbPz/575MolzcJ+cWhNH1mqGRXe Fu6Cm44JJuOzoQYuF2jDEBEn20bZTF397H32Oj0KDKFV3IiluB5r2Bf6lPwafx3/Ygpz /6C3G0t7MNsg5QDdtXWa04Q5d0xsNi+d/66a+itfE79+sZYxbxsZM901ks42Ju5zUOP4 Kukw== X-Gm-Message-State: AKwxytcYjwuUjtIuheOkFA4ooGq4XTvdmPgPcr3TpnMgkL05TeGKU1kF LBrhy/G5CCgpKPsuazhMlqHOBgvW X-Received: by 10.223.160.23 with SMTP id k23mr365550wrk.116.1516133154324; Tue, 16 Jan 2018 12:05:54 -0800 (PST) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id k40sm2517686wre.71.2018.01.16.12.05.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 12:05:53 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Tue, 16 Jan 2018 20:05:50 +0000 Message-Id: <20180116200550.16731-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] python-pygobject: skip the package if gobject-introspection is disabled 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 This package simply produced obscure errors if gobject-introspection is disabled, so refuse to build in that situation. Signed-off-by: Ross Burton --- meta/recipes-devtools/python/python3-pygobject_3.26.1.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 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-devtools/python/python3-pygobject_3.26.1.bb b/meta/recipes-devtools/python/python3-pygobject_3.26.1.bb index 0405b44f177..b12d5174446 100644 --- a/meta/recipes-devtools/python/python3-pygobject_3.26.1.bb +++ b/meta/recipes-devtools/python/python3-pygobject_3.26.1.bb @@ -17,7 +17,6 @@ SRC_URI[sha256sum] = "f5577b9b9c70cabb9a60d81b855d488b767c66f867432e7fb64aa7269b S = "${WORKDIR}/${SRCNAME}-${PV}" - PACKAGECONFIG ??= "${@bb.utils.contains_any('DISTRO_FEATURES', [ 'directfb', 'wayland', 'x11' ], 'cairo', '', d)}" # python3-pycairo is checked on configuration -> DEPENDS @@ -28,3 +27,8 @@ RDEPENDS_${PN} += "python3-setuptools python3-importlib" BBCLASSEXTEND = "native" PACKAGECONFIG_class-native = "" + +python () { + if d.getVar("GI_DATA_ENABLED") != "True": + raise bb.parse.SkipPackage("gobject-introspection won't work, disabling recipe") +}