From patchwork Wed Jul 31 17:42:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 170200 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4308501ile; Wed, 31 Jul 2019 10:43:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzr85s2MZbn37U62MyBlnAnFP6oEY8G7+OlOJWlzRB4ez7f9uwpgcATgRfVlWNSUi1DOvlA X-Received: by 2002:a17:902:e306:: with SMTP id cg6mr121721925plb.263.1564594986942; Wed, 31 Jul 2019 10:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564594986; cv=none; d=google.com; s=arc-20160816; b=zBmU7YeJXGV0t43uAdCx5qc8Jwd80DByFM7DF2+6eU/93JBxrTrYzk0EVkiMCb64kN qUSl5xKJ9sKBvsgeS1BRz5nNAqeGGkl0yFDFNCdA8LORkI2BAxkcSIJJxy/GhjawmEgI uA0HD02NPqPYWtePFoX4yX8p7IzhNrR+McI/NaQIVp5pUSNJ1EerNAeV6BQZijd2PxAw SegbZNpLKeS8AVYvJYhktRMO+Kh31bVjTjXMt+TlcMj6qG/lwFFPI3oUMq1bbhWxnu1c kW+GJ48PBu+Xy/hMZDD2PupWcq7+IAhAWQHD3sfgwv075G0Ywnd3ysYYpQ5AC4gf0iWr Q1iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=+gQ7FeX+rhacF5yyFNKfF4OWv6UWMgTTLoIVMN/geBM=; b=RcfsdUAgKjQRkH3opE3PPVvMdbdXoR4r/uRPSGTnc5CWOZCqiHEc6RBfsFaS/wUiWU BLsZDfqUesVD/BEbVeKScTgLTbYqF4VRRlxlbosPQd4kKkQ932WClpnHKh8BnePxepdr ONWuh1BcRkIbkRHwoAyY38S+zTDOLZTCcDF7TlGi48RzrEmiseJ+V6k3qqQWPJPZbjhD gWmbRSVBekND4Mel8BEfK05ll6YueiqLkxlPKC+xlLia+2svlN+7UXJGy6qKNd+9QLCW W1ovejTnFXg4OemFeBEgmdTuwu+jtKuUFT6aDESDFLVtS8FIwJkbXdJ7MmnZaf8VLhEW WrWQ== 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=PTMQR7TI; 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 f1si2038688pjw.100.2019.07.31.10.43.06; Wed, 31 Jul 2019 10:43:06 -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=PTMQR7TI; 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 DE2767F4EC; Wed, 31 Jul 2019 17:43:01 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by mail.openembedded.org (Postfix) with ESMTP id 62A827F4CE for ; Wed, 31 Jul 2019 17:42:59 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id z1so70594377wru.13 for ; Wed, 31 Jul 2019 10:43:00 -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:in-reply-to:references:mime-version :content-transfer-encoding; bh=r3NSolor5iemzaZRkVR01KGwwKyfROi3A+v/46OBOF0=; b=PTMQR7TIAukMBdWKIWA703GfBdEosmcth/ZclagbI+R2fnhDEqeKI7FzxyB447u/qQ onsr6uKxHKATSMNowKZErm6O5WgPNDdHGmZYbz44pjF3uDIR93PUPuKmNq6CEElD/na+ HHBKgqCxlHKh5UZZv9rlPptIoUUt9k3FmES45dRz88z80IJYFSKdufVaZA7XNzLTNpF3 3iT8bO9Qxt0x4oaMF5vTxsG4WVZicvJWSH7jsTaA5o87pjcTq5h912AQmgL89L22Gr6I xIUASZVuDfS3bO+QHKxxrx56TCZLaF0fCg9FCLhKVhBnF5p+Us0Ez/WGZkb3u+GpkBi6 eQBQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=r3NSolor5iemzaZRkVR01KGwwKyfROi3A+v/46OBOF0=; b=CIECAuaSdmeahsKc6OOibaL0Nuhtzdf1tAvvLqHVoF0RmEkTqkHIOU7IZbEBcIO0Va exQ7yowsdzTCOasDcZ4ysxByPbH1gin8EuOI+lEst8yYJkOjDl4IiK7Q79e8MHMbEqIC 2MKb3B4RK4HfsWxtUT/8eb5CrF7EmR4Dqq/y15Vc+fgxiqYHtUAk/xIQExPIzPmqo753 JUWehfakkP/ZBOqt97d3Z/3SkYYKLTHH2db3f6x9GdmtaGJ8sv4Ye3hf/7ZnzCjez3q9 OMsQpWVf87IOi0Cogs6qZ0fACqVVKZrxIg19/XBotPzYX5JRzFq27zO1dgZ2/aYhm87d QsqQ== X-Gm-Message-State: APjAAAV8avUgql5LjE3l0KPyiJTYbnqQ7HaDih3/8/ZKa6A0zHzFRnx7 X2jE7DDlBk7j7swNsxnHBWO8N0TIZ6g= X-Received: by 2002:adf:ab51:: with SMTP id r17mr109480675wrc.95.1564594979921; Wed, 31 Jul 2019 10:42:59 -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 t63sm62973454wmt.6.2019.07.31.10.42.59 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 10:42:59 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Wed, 31 Jul 2019 18:42:53 +0100 Message-Id: <20190731174254.11340-2-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190731174254.11340-1-ross.burton@intel.com> References: <20190731174254.11340-1-ross.burton@intel.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 2/3] python3: support recommends in manifest 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Add support for runtime recommends along with runtime depends to the manifest. Signed-off-by: Ross Burton --- meta/recipes-devtools/python/python3_3.7.4.bb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) -- 2.20.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/python3_3.7.4.bb b/meta/recipes-devtools/python/python3_3.7.4.bb index a63abfd6cb2..59d70249880 100644 --- a/meta/recipes-devtools/python/python3_3.7.4.bb +++ b/meta/recipes-devtools/python/python3_3.7.4.bb @@ -229,7 +229,7 @@ python(){ newpackages=[] for key in python_manifest: - pypackage= pn + '-' + key + pypackage = pn + '-' + key if pypackage not in packages: # We need to prepend, otherwise python-misc gets everything @@ -249,8 +249,14 @@ python(){ for value in python_manifest[key]['rdepends']: # Make it work with or without $PN if '${PN}' in value: - value=value.split('-')[1] + value=value.split('-', 1)[1] d.appendVar('RDEPENDS_' + pypackage, ' ' + pn + '-' + value) + + for value in python_manifest[key].get('rrecommends', ()): + if '${PN}' in value: + value=value.split('-', 1)[1] + d.appendVar('RRECOMMENDS_' + pypackage, ' ' + pn + '-' + value) + d.setVar('SUMMARY_' + pypackage, python_manifest[key]['summary']) # Prepending so to avoid python-misc getting everything