From patchwork Mon Nov 25 17:22:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 180169 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp3450758ilf; Mon, 25 Nov 2019 09:22:54 -0800 (PST) X-Google-Smtp-Source: APXvYqy1Rc4q8TywCD66jNGwQhCIV0SStxXvPuxLx0z8fZ0rEuj5ZEXN6Qqe+iCaqnVBgigZH7rH X-Received: by 2002:a62:174d:: with SMTP id 74mr35257727pfx.145.1574702574863; Mon, 25 Nov 2019 09:22:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574702574; cv=none; d=google.com; s=arc-20160816; b=h7tUkk8LFIJ9i72jem+ieaqxvg9E/9Bf/lDWSVH8F95O/PNJOmt4a5DxrpSzSOnw+8 mtPbrm26dNa88BE+/YEMkf6wCyevaTo37IKNqq/nA8FrhXhwWKfW7psKt22IoJk2oeJl bFlvNDUhFWqtGZ0uWA3u7f7CPS0Pt9EMK/y0Bb2LVqA1DANnK6IrPnzUjgXYLSf6LBH/ 4XEteRkNQTXyJu7UPU/Hc3iidaklvSK+xr+sQjg6UQqJlViVrh08V+cyCmm5qb3tT4Fq TrUx0GGY684P2PC8E/7JNXZlMmy9+agt0PA+goPGeaW7rzSh0bmDhP6UiLBVuaGng4xM Bhsw== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=AABMB2cWxKP6eLRhZoGzSIwKoXF1ykZCAm9mCxDPENc=; b=lIWfx1hqLtUWrVaiLM0hks7iIgwMd7hJ/r3D4vOXHVNVvdbWKEup0Z3Xg8RI5foFRE n1GsZptc1HlJZE9amwVEI2NUzT1b7tViojFXnZg4bTY6M5DjuiYRfPcIMRyPytj5TLQd 70uMFlsXr1rNQT3psIrHdimdDaREPOsNjUOatjF7gWDX3wwCDfCfiht/bIBxYXaV9x9i dEEryxxMG+wv+AFgsDg0bq7zOfD6LM030peuGNhFGXyG1WZsq6ZqYJMbXRspOGVt/BTn yVIOajLUITobdRTlwtc/Es0bn32svsh11zGcjvcmOnjbf8RBQhd8RLV8vBsr+UrLbzTy U3Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Opu7U41v; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id 206si8197685pgb.416.2019.11.25.09.22.54; Mon, 25 Nov 2019 09:22:54 -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=@gmail.com header.s=20161025 header.b=Opu7U41v; 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=QUARANTINE dis=NONE) header.from=gmail.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 C19157FBB3; Mon, 25 Nov 2019 17:22:51 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by mail.openembedded.org (Postfix) with ESMTP id B66AE7FACA for ; Mon, 25 Nov 2019 17:22:29 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id t2so19133124wrr.1 for ; Mon, 25 Nov 2019 09:22:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+WBdAtMaTGMryk4osfL4HqBTCJ74uYiuLKpUXblHBbE=; b=Opu7U41vB0IqCBQS+AOqGXZn4lu2ykqifih1NpcKVqiD+IIEVlKfuDb38lgSeHR1G3 1/P9xhIMd4GToxj5pcfZ8WWmW38KGq9kusKQPmcx8Kjzx9xTi4U3b5wRPLwnv1BmT8vm qncVTTxW9fPjXwDg1JLyPFR57YpQS+tmZJwe9sluYgTEIQDax7mH/vXoA+Hdd7c8V9Wk HAkDsHNFl8DUsEals5sLuMpaHPxHDHErwIPVOqwAfnpAjmB90EyMMCBUnZ7pKWBlMKA2 RQ1SJ+ALvc73u2/XUPsXn+Z16U+Iy2f0uWpQaTMn9BEhAH4iiu1HY4bKy7bEkgxoVxxp EDiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+WBdAtMaTGMryk4osfL4HqBTCJ74uYiuLKpUXblHBbE=; b=lwfjQLio4G2K9kU2lw6stnyF+tqH93UQ93gzASRcwxdeJYZD6L5FcFD5Vu+zvtOLJY kfrnRnOWWcaUjdyaRkman83UFQYCfkeLyH84Nz2kjE8qNH5QcAufCDZ/JwD+Tid/yzXn hstrsrU8ThrDWFB4PcY8Fxk1WSo69QsvgJ6Cm7U5o85hlJsgDzqw+cm09Dl4fsp+R769 uT2/0BXy4Dj0OTvFvEzkJUt79pBEE0kImAPm/KrmxfwZc3j+GJUxhY/iXs3nGlSGaurj CTjsYRQYssFJ4NmhtUxz7cRNZ+I3YIPLP6PTxew2j1mqQn3tcannJRWIRC5A4+ssDOYw uFtg== X-Gm-Message-State: APjAAAWgZBv3NGkOH8+f7JYO2v4ufQwvyU5/RjL00Ij2E5zW5HJj1QO7 cz+NTPIjtt0VKOFoxxdSJT6yIqAt X-Received: by 2002:adf:d842:: with SMTP id k2mr32840625wrl.163.1574702550303; Mon, 25 Nov 2019 09:22:30 -0800 (PST) Received: from alexander-box.rd.corpintra.net ([141.113.66.202]) by smtp.gmail.com with ESMTPSA id f140sm9693357wme.21.2019.11.25.09.22.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Nov 2019 09:22:29 -0800 (PST) From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Date: Mon, 25 Nov 2019 18:22:21 +0100 Message-Id: <20191125172224.82269-2-alex.kanavin@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191125172224.82269-1-alex.kanavin@gmail.com> References: <20191125172224.82269-1-alex.kanavin@gmail.com> Subject: [OE-core] [PATCH 2/5] python-native: don't cause a full regeneration of the built sources 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 From: Ross Burton When cross-compiling Python 2 you need a native pgen binary, but the cross recipe can't do this on it's own so we build it in python-native and install it. The rule to build pgen was also causing a complete rebuild of all of the generated sources, which meant that building Python 2 needs a *host* Python 2. This can be fixed by simply building pgen, as this is all we need to install. [ YOCTO #13645 ] Signed-off-by: Ross Burton --- meta/recipes-devtools/python/python-native_2.7.17.bb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.17.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/python/python-native_2.7.17.bb b/meta/recipes-devtools/python/python-native_2.7.17.bb index 936810d9806..98805d998d5 100644 --- a/meta/recipes-devtools/python/python-native_2.7.17.bb +++ b/meta/recipes-devtools/python/python-native_2.7.17.bb @@ -35,10 +35,9 @@ do_configure_append() { autoreconf --verbose --install --force --exclude=autopoint ../Python-${PV}/Modules/_ctypes/libffi } -# Regenerate all of the generated files -# This ensures that pgen and friends get created during the compile phase -do_compile_prepend() { - oe_runmake regen-all +# Cross-compiling Python needs a native pgen, build it here for use later. +do_compile_append() { + oe_runmake Parser/pgen } do_install() {