From patchwork Fri Oct 12 11:55:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 148758 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp638209lji; Fri, 12 Oct 2018 04:55:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV62l9tod1ZVyhu1LK7vPe1lw1AkZlWJlc4H2b7dXv4dRdg93TnJfnTjh4WhGnR4bAvHRu7lS X-Received: by 2002:a62:c186:: with SMTP id i128-v6mr5793111pfg.248.1539345313707; Fri, 12 Oct 2018 04:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539345313; cv=none; d=google.com; s=arc-20160816; b=oJFZBAKyTrlYkvThizWhRuGHbf6u4kZx4n8KQ9Jtq97ThXIk2K8m3kHbxf+IphXyqn 6JikG2ZRLEQRt4sFP5GY7n+bkeeioCRJN4osew3vlsycTB3EZRXMy4bJ1GKLfGQVX9+p XDR8VnzVlcat3MimrdniIGCJA84JGmnyg1Y+xGoZ3T0XFS1+z04MjPW2my5Qd50q3NeU OIILQ4CNy+MBbHlJe/ctovmch3FEXygRjtTruuYe5U9lbgJ35FYxAFZxPl95p+cdgzF5 TEPUfJm6mVA5bytWcHtcGP2H8AkMlgTEm3536jn/aoiNiUdma2MZ/T1Pf3L8c31TEZjK cqmQ== 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=qCPCWvehaPXC+alN33DjAYj4YaxbHC7LGeuNmuoGTgA=; b=VZ7CEc4VtWLC9f4SErevGygjXhCxc5pscY2LJ2uYYqKw+apZD8UcWilGkZdHUC5wST a4+642q63HHwI1O8uNeyyGOIesDOTriyK4zQRACGZSUGebOnnzF6Amq/jdTTOTdS4dFW NZi2DWWS0c78FHNoIt2XXA3gvGhDu6k8zz9vaJZczyhEZsRqR0g8LSzRcxk9uCPNElF1 mFK+sLMOYJXJuNishcb/YGXADYJ2JZ2NlCkNR/awmOSZtbcHMMxiOygtdzyJd89tClnr WPvYPQNUHWrLPI+pUWnJkofM8LPGHy/ZyoujSgR2rrsBkhBHqhG8yc0OD5BleuRGm+QM xpeg== 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="O3t/JT7w"; 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 y30-v6si1126861pge.142.2018.10.12.04.55.13; Fri, 12 Oct 2018 04:55: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="O3t/JT7w"; 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 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id E21D360234; Fri, 12 Oct 2018 11:55:07 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by mail.openembedded.org (Postfix) with ESMTP id 140A760234 for ; Fri, 12 Oct 2018 11:55:05 +0000 (UTC) Received: by mail-wr1-f51.google.com with SMTP id l6-v6so12714551wrt.1 for ; Fri, 12 Oct 2018 04:55: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=XgcAJS/+rClFYL7zQ+hKW4id096tPXOgwlmTHmQLhGU=; b=O3t/JT7wIFZ5JpbL6nIy6HtQ2Oz4twhsw6i8HLT1X8VSFp0ZLEk/ChdRMzPqX4cFY6 uVhVGTjip2lD4Mx3ONJex98Kqswp7o3A19RqI8GOxHQgArD47y/P2YGRV7tG111Oeuum 88aJijAdNWIKvdWVygSNFuqSvx+1QCetp4VLwgyiCR7CPWTRGmSl/Y+7fxYBpmRG1d22 1p/vn3+Prody6VnZqYe8+Go/IZPdM4t0nJVw2VEUhlitRUuN4a/r+4GjjK1H1A8KZqaK tObIOTcoXsjI6KfwMkfQD+hx1O3qsR5bT34ePQiSQji4MVZQ6cYSewxV8Fgkdx9Cl881 Utuw== 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=XgcAJS/+rClFYL7zQ+hKW4id096tPXOgwlmTHmQLhGU=; b=pfusnhA75PIgt7i7ZGCH/QlTsd3hthaq493m1r1hiVhgY9SJz6rw1a2M6DfZAaTnBD 8n+2g5HbtlSsIHU1hQorEKjmTZkfxEdoa8ic8qqsM+eivdDFEhNJOlwaDdUjKU0WDO8S Lbb71vck0XCxrjyK4HidrJQuO8EA5xypSlguiFKLkgSxPPTd8cHEpP2q1P9feIN2N+lm PfEK9eo0vJpp60R+IPJp+DkZMWjAyFIJpVhDDmFpuVlLaE4MdmiZj/2PCROGfHs324WO 2g9vvE2sS3d4qsS2N6/IqEhs5yxY3p4aFUnxlQRbM+PcYOiDftO6DzCztRy/Li4JI/hd cBYQ== X-Gm-Message-State: ABuFfogeve9Tpwj+b0pJUOnE/SldNfAi0qPPSaiYe/MNJ7kYJieLj6wJ t+xsCnqlIN6xYuzTxQ92N/657Wli6Ck= X-Received: by 2002:adf:ba87:: with SMTP id p7-v6mr4716853wrg.203.1539345306319; Fri, 12 Oct 2018 04:55: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 a205-v6sm1223160wmh.19.2018.10.12.04.55.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Oct 2018 04:55:05 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Fri, 12 Oct 2018 12:55:00 +0100 Message-Id: <20181012115502.14205-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH 1/3] python: don't wipe RDEPENDS when parsing 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org We want to allow the main recipe to extend RDEPENDS directly, so don't wipe RDEPENDS when reading the manifest. This fixes the missing python-misc dependency from python-modules. Signed-off-by: Ross Burton --- meta/recipes-devtools/python/python3_3.5.6.bb | 1 - meta/recipes-devtools/python/python_2.7.15.bb | 1 - 2 files changed, 2 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-devtools/python/python3_3.5.6.bb b/meta/recipes-devtools/python/python3_3.5.6.bb index e1796581342..489baa294fd 100644 --- a/meta/recipes-devtools/python/python3_3.5.6.bb +++ b/meta/recipes-devtools/python/python3_3.5.6.bb @@ -285,7 +285,6 @@ python(){ for value in python_manifest[key]['cached']: d.appendVar('FILES_' + pypackage, ' ' + value) - d.setVar('RDEPENDS_' + pypackage, '') for value in python_manifest[key]['rdepends']: # Make it work with or without $PN if '${PN}' in value: diff --git a/meta/recipes-devtools/python/python_2.7.15.bb b/meta/recipes-devtools/python/python_2.7.15.bb index 472c1da4bf7..f30d3f4d25c 100644 --- a/meta/recipes-devtools/python/python_2.7.15.bb +++ b/meta/recipes-devtools/python/python_2.7.15.bb @@ -240,7 +240,6 @@ python(){ if value.endswith('.py'): d.appendVar('FILES_' + pypackage, ' ' + value + 'c') - d.setVar('RDEPENDS_' + pypackage, '') for value in python_manifest[key]['rdepends']: # Make it work with or without $PN if '${PN}' in value: From patchwork Fri Oct 12 11:55:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 148759 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp638753lji; Fri, 12 Oct 2018 04:55:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV63MnXLcSi1Yhl8XY9acfkF59IVW1H8dHm6g9BmFv9TbvmVCzgNVf9IKK//zvD5uQIrVw1wK X-Received: by 2002:a63:a80c:: with SMTP id o12-v6mr5295572pgf.271.1539345352830; Fri, 12 Oct 2018 04:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539345352; cv=none; d=google.com; s=arc-20160816; b=faf9WYWHr3kjP4nTUuusEPqyQYmxVBi91dH8OamjLkTwOzKclsz3X12FueM5Y5k9A9 fuROwk/6VD/jhc+Z3KCqJgNnvmiuFzFxBQ1baZ10JbG4MayzBV5YvcTiJp3qtY9lucQ8 n+ZSm14KEGKQHhFZgSmieKHniYdOgxQpt9eu3AzHNHapfNMcCbqUxLg2JtDh6v0gqMlk Qy8sD179gAmU01pUOlM4gNKca6tLJMX1LHw350XTXek5UxYV6qULMSIlr4EV3szJWOZW PxZ6Uhg5glDOFV/dE+9e2I0R9vHDLC7E5xUIxUY6yhzGfz8mb1DfVQM11Pgf89MUoYSs +QCA== 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=VrIbbZ2TFTtOBt246q0ICfwt7hrs5Dq6BUct+VO1vDU=; b=YBDH3RE5Dr7KY96EUyRtPGtXdt48KaqJldx9hvGRp+rr5QsL/hCdne2L4FIq0JgtPd CLtmnwV3JKzpz4fovPV0dkmvz53BUszNZoOPwVCPGesVyTLBkoMM8B2zxSX++cEBZl3J oNlhD0nzCPcVL4yF+MU2gVlLt0XcE4t1fKz+c28PSI1kgQ/Ps0k9nkhvTL3KFbyRviyk Pu7MdxXaAz07MCkqFa8NQjutl5T5sBHL2unA6ieQiGXYbYvxnI9q9K9JZSSdw/BflrVO oV35uhMO6TG6rQxDozODpu9px4VOfHsL0P2Gqk1SNq5hdBGKcFi1e3hTXbRid3Qi/D/b 5Xhw== 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=j3WznbmW; 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 t21-v6si1110708pgn.56.2018.10.12.04.55.52; Fri, 12 Oct 2018 04:55:52 -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=j3WznbmW; 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 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id B7DD079B93; Fri, 12 Oct 2018 11:55:50 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mail.openembedded.org (Postfix) with ESMTP id 0494A79BA1 for ; Fri, 12 Oct 2018 11:55:07 +0000 (UTC) Received: by mail-wr1-f43.google.com with SMTP id 61-v6so13136462wrb.6 for ; Fri, 12 Oct 2018 04:55:09 -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; bh=/WjYoRHtVSpRthKEQTijoVpdPMv0DhmLJ5rb0vrLozA=; b=j3WznbmWFgFQi+9dDWHB5qQGFQAc8ho0pKyYOpAafhyZQIz2+QU/CjyQBEnK73sJpF pS2ouC/vGpAAyEyzYSh4FyHVrFfOxG+5cjV8dY2A9YmSGHOZBrJA0JuSO0K3dgOjpsJr QZ7V55BeLoQMUFsNw3O5W8sji2J13t4JoiBx4pUgr5jmJVdngLNGPglCZt0VJO3qorV6 EiTM6MXcstI0l7bfCxTsyJZNZVlQXpReGakLR3bPMN6pb4pqqXl1ccqgbZzZRgaE/8b4 uGfLKMaA7dBiRwYmB6xOgs1t2qYGQ6GSF8QgCV3tq/isZNwOmBFDGwSXrozIEX4wL7sg Ncnw== 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; bh=/WjYoRHtVSpRthKEQTijoVpdPMv0DhmLJ5rb0vrLozA=; b=kK0yY8pdNn0W40Q7ZPkSEtflnLzS811jw0NWaTRkb/Whs8h5lUfvTTMtyG3/15aWf9 fSXNUWS0bcSk7WAc7vPUBSfrgMAXquvB9/H5IP/EdAFK0RE5R1OkAkXKClSoHzk+im7i 6FUSkY0LH+wwXHheDidC4gNN42vYQaAVn1UV5JN9/4bNzq4uX12G8lU4pKLhmBU3/uqm eMkG+JyL0XrZ98VzYpWFxjPWGEjEV0gjijGOQWMrIOBFx8FgHJOaOv/abTk9KwqTmJ5r ZO0+yQTUN9phlTXeiQHvhJIIJW0ZXKuc9VwNaHXeYQySHZUEVwBunEwP91On49mR88TZ wusQ== X-Gm-Message-State: ABuFfojmP5VBo51GMQO2zSkOuJCD052T/Y5WAgZVJV/SybOmQhuDzRaZ WfWjVohJdh+WYCXE9O7Vi3altSz7mPI= X-Received: by 2002:a5d:6b92:: with SMTP id n18-v6mr4633249wrx.295.1539345307437; Fri, 12 Oct 2018 04:55:07 -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 a205-v6sm1223160wmh.19.2018.10.12.04.55.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Oct 2018 04:55:06 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Fri, 12 Oct 2018 12:55:01 +0100 Message-Id: <20181012115502.14205-2-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181012115502.14205-1-ross.burton@intel.com> References: <20181012115502.14205-1-ross.burton@intel.com> Subject: [OE-core] [PATCH 2/3] python: remove the PN package entirely 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 Nothing should be in this package, so remove it entirely to be sure nothing does end up in there. Signed-off-by: Ross Burton --- meta/recipes-devtools/python/python3_3.5.6.bb | 4 ++-- meta/recipes-devtools/python/python_2.7.15.bb | 3 +-- 2 files changed, 3 insertions(+), 4 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-devtools/python/python3_3.5.6.bb b/meta/recipes-devtools/python/python3_3.5.6.bb index 489baa294fd..95915447ab4 100644 --- a/meta/recipes-devtools/python/python3_3.5.6.bb +++ b/meta/recipes-devtools/python/python3_3.5.6.bb @@ -214,6 +214,8 @@ py_package_preprocess () { mv ${PKGD}/${bindir}/python${PYTHON_BINABI}-config ${PKGD}/${bindir}/python${PYTHON_BINABI}-config-${MULTILIB_SUFFIX} } +PACKAGES_remove = "${PN}" + # manual dependency additions RPROVIDES_${PN}-modules = "${PN}" RRECOMMENDS_${PN}-core_append_class-nativesdk = " nativesdk-python3-modules" @@ -244,8 +246,6 @@ FILES_${PN}-man = "${datadir}/man" BBCLASSEXTEND = "nativesdk" -RPROVIDES_${PN} += "${PN}-modules" - # We want bytecode precompiled .py files (.pyc's) by default # but the user may set it on their own conf INCLUDE_PYCS ?= "1" diff --git a/meta/recipes-devtools/python/python_2.7.15.bb b/meta/recipes-devtools/python/python_2.7.15.bb index f30d3f4d25c..9bf6959a0c5 100644 --- a/meta/recipes-devtools/python/python_2.7.15.bb +++ b/meta/recipes-devtools/python/python_2.7.15.bb @@ -152,6 +152,7 @@ py_package_preprocess () { (cd ${PKGD}; python -m py_compile ./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py) } +PACKAGES_remove = "${PN}" # manual dependency additions RPROVIDES_${PN}-core = "${PN}" @@ -199,8 +200,6 @@ RDEPENDS_${PN}-modules_remove = "${@bb.utils.contains('PACKAGECONFIG', 'bdb', '' BBCLASSEXTEND = "nativesdk" -RPROVIDES_${PN} += "${PN}-modules" - # We want bytecode precompiled .py files (.pyc's) by default # but the user may set it on their own conf From patchwork Fri Oct 12 11:55:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 148760 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp638812lji; Fri, 12 Oct 2018 04:55:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV628wfYGR68IYCHo0ojiIbIRcH0yXg/OYJFHlITjvTta8U0gDTq1xzEITlCr5SADVQrgVl+I X-Received: by 2002:a62:34c5:: with SMTP id b188-v6mr2620317pfa.65.1539345356794; Fri, 12 Oct 2018 04:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539345356; cv=none; d=google.com; s=arc-20160816; b=XcLmeHZKpQRGBCxdBYKgqOsMyiY1sP0N2E9hFGqPMjf2Vdkp3RM/PtlRQf9cPbT2pX aUrhtgqcdAN/ax8ksFjkF3VVgGfAmCyDKOtA74WDvYZa9UoO14EaDRuNKqhD47UeBIb5 e87b7iO0KJnnIKXucFe3Kw+o2ZbclEt8TUW0ZVup3+hV7NIjgVIgp/sey8sAgJNZ+R+3 w764Eswv7ZBUIPfs/6ANBpQ3L72wyebJQyylRsO6W27XVdy6Xlb3oetPih7Y7XHG8Bdy Ki1kZTYv94QveJlijrMWFPBa9vcC0D9qs0R0DsianXwnvhD0MhXg4bQJ1N+cUsRaiNl0 RDGw== 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=pg6sLAd2Dn8pAEeZVcP3tmLi3dTW87MUMVfBWe3yLbw=; b=vaY54KHqQVlrqW4eOKlxO6E4xLpExvich5QQ6AnfnzLqWB/+QBI03otXKkJDFQx/ol a8BV1rnm2iJLkVidNXWG2dRl3rFbU9InHAKu6e/ZtYKOJKeydVdItjTzdher7Ar4WJuq xx5+hn0Bk2nCrDP3XG4HzXG0fHeVsnZvG3fAAJEAAq5Rf7hbQKln1M5vXprvXUQRbqrw wUOYbFgzhRDVbk9m3jvlo/hLji6/zPtWzIDYEBTgPQ2COnc9neyKwG5NQIx3G4Y49HS6 S0R4irOMzj2u+fwSnbuQkPt/f6ELYiQM1aMGT4jEQ1Qi5W12nB3BqvBRv8kmXlccPO/x mUeA== 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=ODUNqipG; 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 q9-v6si1087396pfk.27.2018.10.12.04.55.56; Fri, 12 Oct 2018 04:55:56 -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=ODUNqipG; 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 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 116B379BB5; Fri, 12 Oct 2018 11:55:52 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by mail.openembedded.org (Postfix) with ESMTP id 5A73979BA1 for ; Fri, 12 Oct 2018 11:55:08 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id g15-v6so13128365wru.9 for ; Fri, 12 Oct 2018 04:55:09 -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; bh=rq9S/CDmy3FD+xhlMZOEhHAFLbNvW2kF8oBIq6Q2VGo=; b=ODUNqipGtunJAKlfXjOIQHTt7gpOhGbTiq1wIbLlAcS6vLUHChq1CgxCG4TumCl4Ao h1TnWYm1pxLAlNGg+v7ojlOwy0qy787XIFUfAg8g+1MvwmaAtQsKGnuGMfIN6MnDZaoe WPbtibrefMi4ErreOtCeEZ52K+bveK8aQNAFdJAA7E0/9L/DBoDlqCNmoRCRXxYMSNl7 foF0ZuNY/cnOoNyvELlJRSR+Eaf48JegJxe4Lw8eJ25fETepBcB649HmwVgWv1DWHj93 RrGdqb47H25seR6wzuUkKpIr7umFoGo1O58HpdJoYtBGjXWuyhM/gnYXXkv1Gz/LaLcF 7gvw== 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; bh=rq9S/CDmy3FD+xhlMZOEhHAFLbNvW2kF8oBIq6Q2VGo=; b=k6qFe/QOwzNGrB6wvl6cMFy8nil+GWZj2jbwh6t1KWdTxTB6x2zTPhN/tdwqVxloC5 t5mhvqJsudMWhmCM06gjUBO1cdSxihS6cDxLefaLjcxha6o7S9P53nuuStDWgcTMPYBD retDLCXp4uaBxpO0arqesj+fQvCRJXP2Y8nXrkv5SY5I/KVS7n7HfXWO2owq8AeGJjRm 0/AnQ2fzbjG/ru+evTKhpoxc1ULKFBeicXrlQo7w+Wby+TX+ceIAHuluprzGVtgQP5q/ lmvrq0IvSh4fmmsSRVQoVof/eQ0dkYVv/1TkoSCnaGtcacCRZqfHy/p6dBu1yanR2v1W 8Bwg== X-Gm-Message-State: ABuFfogtFwCfusgwfo5nbjFpT2D/goFoF69+xPwFblXa7dk9Qpk4Uxe5 jd6yXaRk98ISef+mHOWIGn+HbzKBxpQ= X-Received: by 2002:adf:8bc5:: with SMTP id w5-v6mr5284229wra.110.1539345308664; Fri, 12 Oct 2018 04:55:08 -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 a205-v6sm1223160wmh.19.2018.10.12.04.55.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Oct 2018 04:55:07 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Fri, 12 Oct 2018 12:55:02 +0100 Message-Id: <20181012115502.14205-3-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181012115502.14205-1-ross.burton@intel.com> References: <20181012115502.14205-1-ross.burton@intel.com> Subject: [OE-core] [PATCH 3/3] python: clean up ptest 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 As the manifest handling is done differently now, just inherit ptest with the other inherits. test_shutil needs unzip so add to RDEPENDS. Instead of using a patched Makefile, call test.regrtest directly. Signed-off-by: Ross Burton --- .../python/python/fix-makefile-for-ptest.patch | 34 ---------------------- meta/recipes-devtools/python/python/run-ptest | 4 +-- meta/recipes-devtools/python/python_2.7.15.bb | 25 ++-------------- 3 files changed, 3 insertions(+), 60 deletions(-) delete mode 100644 meta/recipes-devtools/python/python/fix-makefile-for-ptest.patch -- 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/python/fix-makefile-for-ptest.patch b/meta/recipes-devtools/python/python/fix-makefile-for-ptest.patch deleted file mode 100644 index 60d782cd26b..00000000000 --- a/meta/recipes-devtools/python/python/fix-makefile-for-ptest.patch +++ /dev/null @@ -1,34 +0,0 @@ -Add 'build-test' and 'runtest-TESTS' targets to Makefile, to build and run tests -cross-compiled. - -Signed-off-by: Tudor Florea -Upstream-Status: Pending ---- -Index: Python-2.7.14/Makefile.pre.in -=================================================================== ---- Python-2.7.14.orig/Makefile.pre.in -+++ Python-2.7.14/Makefile.pre.in -@@ -846,14 +846,19 @@ $(LIBRARY_OBJS) $(MODOBJS) Modules/pytho - - .PHONY: test testall testuniversal buildbottest pythoninfo - --TESTOPTS= -l $(EXTRATESTOPTS) -+TESTOPTS= -l -v $(EXTRATESTOPTS) - TESTPROG= $(srcdir)/Lib/test/regrtest.py --TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) -Wd -3 -E -tt $(TESTPYTHONOPTS) --test: @DEF_MAKE_RULE@ platform -- -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f -+TESTPYTHON= $(RUNSHARED) $(BUILDPYTHON) -Wd -3 -E -tt $(TESTPYTHONOPTS) -+test: build-test -+ $(MAKE) runtest-TESTS -+ -+runtest-TESTS: -+ -find $(srcdir) -name '*.py[co]' -print | xargs rm -f - -$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) - $(TESTPYTHON) $(TESTPROG) $(TESTOPTS) - -+build-test: @DEF_MAKE_RULE@ platform -+ - testall: @DEF_MAKE_RULE@ platform - -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f - $(TESTPYTHON) $(srcdir)/Lib/compileall.py diff --git a/meta/recipes-devtools/python/python/run-ptest b/meta/recipes-devtools/python/python/run-ptest index a2f9eed4441..832551a1244 100644 --- a/meta/recipes-devtools/python/python/run-ptest +++ b/meta/recipes-devtools/python/python/run-ptest @@ -1,5 +1,3 @@ #!/bin/sh -# -#This script is used to run python test suites -make -f LIBDIR/python/ptest/Makefile -k runtest-TESTS srcdir=LIBDIR/python2.7 TESTPROG=LIBDIR/python2.7/test/regrtest.py | sed -e '/\.\.\. ok/ s/^/PASS: /g' -e '/\.\.\. [ERROR|FAIL]/ s/^/FAIL: /g' -e '/\.\.\. skipped/ s/^/SKIP: /g' -e 's/ \.\.\. ok//g' -e 's/ \.\.\. ERROR//g' -e 's/ \.\.\. FAIL//g' -e 's/ \.\.\. skipped//g' +python -m test.regrtest -v | sed -e '/\.\.\. ok/ s/^/PASS: /g' -e '/\.\.\. [ERROR|FAIL]/ s/^/FAIL: /g' -e '/\.\.\. skipped/ s/^/SKIP: /g' -e 's/ \.\.\. ok//g' -e 's/ \.\.\. ERROR//g' -e 's/ \.\.\. FAIL//g' -e 's/ \.\.\. skipped//g' diff --git a/meta/recipes-devtools/python/python_2.7.15.bb b/meta/recipes-devtools/python/python_2.7.15.bb index 9bf6959a0c5..7662b165372 100644 --- a/meta/recipes-devtools/python/python_2.7.15.bb +++ b/meta/recipes-devtools/python/python_2.7.15.bb @@ -24,7 +24,6 @@ SRC_URI += "\ file://avoid_warning_about_tkinter.patch \ file://avoid_warning_for_sunos_specific_module.patch \ file://python-2.7.3-remove-bsdb-rpath.patch \ - file://fix-makefile-for-ptest.patch \ file://run-ptest \ file://parallel-makeinst-create-bindir.patch \ file://use_sysroot_ncurses_instead_of_host.patch \ @@ -35,7 +34,7 @@ SRC_URI += "\ S = "${WORKDIR}/Python-${PV}" -inherit autotools multilib_header python-dir pythonnative +inherit autotools multilib_header python-dir pythonnative ptest CONFIGUREOPTS += " --with-system-ffi " @@ -169,27 +168,7 @@ FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN}" RDEPENDS_${PN}-modules += "${PN}-misc" # ptest -RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests" -#inherit ptest after "require python-${PYTHON_MAJMIN}-manifest.inc" so PACKAGES doesn't get overwritten -inherit ptest - -# This must come after inherit ptest for the override to take effect -do_install_ptest() { - cp ${B}/Makefile ${D}${PTEST_PATH} - sed -e s:LIBDIR/python/ptest:${PTEST_PATH}:g \ - -e s:LIBDIR:${libdir}:g \ - -i ${D}${PTEST_PATH}/run-ptest - - #Remove build host references - sed -i \ - -e 's:--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \ - -e 's:--sysroot=${STAGING_DIR_TARGET}::g' \ - -e 's|${DEBUG_PREFIX_MAP}||g' \ - -e 's:${HOSTTOOLS_DIR}/::g' \ - -e 's:${RECIPE_SYSROOT}::g' \ - -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ - ${D}/${PTEST_PATH}/Makefile -} +RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests unzip" # catch manpage PACKAGES += "${PN}-man"