From patchwork Wed Oct 17 10:02:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 149052 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp445289lji; Wed, 17 Oct 2018 03:02:31 -0700 (PDT) X-Google-Smtp-Source: ACcGV61/EmLppgwp3nN+2f+T7FkskQ0yv5ygfo00q7syYrdGXiZQAjVE+3xObPfbi6hJMaiY4ZaI X-Received: by 2002:a17:902:509:: with SMTP id 9-v6mr25342432plf.155.1539770551181; Wed, 17 Oct 2018 03:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539770551; cv=none; d=google.com; s=arc-20160816; b=PIOkftU5qGCRZ4dj+gcSiFAYX41lX+m5dWekXgJhyM3lcaQ+oGfBb6iY63zV/B1WKN YXYM4SAAm2DD+Pe4Nghe/+SQoi7ShZf6jyR4VV/86fIh2vxT4ckec2e1Qjdv1oajdjMo VbJ3pmVQP1BEj2NIOZeJFJln8tH38np/WgX2LoHbdUkP1tRrr7Qf6bVic3f3OcD+wLPR xNPGLFfGYpvJOtEgqRTX7WuWVu3nMLBFiOkEZOSAZQDNZNqP4NhlNIUeQNKb+ukAGAQD krCK/x1ht67dlZr6uRwljRXgRgvwmDtAJyXZp9QkQMuvWuq6LQnIBeGGshI691ysWUQW PftQ== 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=DGJEGR8V4yyyxj36oLEvS/oavlUA2orSP8dkOktItM4=; b=iN+/wzo6Mu+9yhGtU58sbDjm1mSAOQVyb3/CHAh08pZFtvyP7c/FGExtewRK6HCNxS nu7Lr4E124LMgWeoo9TfqXg7cg8H9GlgEKsDdG3vLuAiIccMukUM8HQvZPHqV60PE6sJ N3OLHKnLbYn7+qxqnA7FrK5RomPsgOXJ5KkFwveWT0j1wkqqeQyVAEplKOKkpnASax42 Pif6JQA2Aea5GGAt3Xl4+8C4xRblj94n90VaQiVX1kAwfsXSLSujAvi1w6TkXnBgYVKS sAWyK6EnkD8moPpFaRXxBJVNpc7/f+/h9sPci2Vtr7Ic7d67gfOMzZajtdkz8P05PmYS PNJg== 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=KMmK57ma; 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 m4-v6si17182229pgn.113.2018.10.17.03.02.30; Wed, 17 Oct 2018 03:02:31 -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=KMmK57ma; 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 0DAB478E88; Wed, 17 Oct 2018 10:02:27 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by mail.openembedded.org (Postfix) with ESMTP id 3F76674C97 for ; Wed, 17 Oct 2018 10:02:25 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id 193-v6so1485359wme.3 for ; Wed, 17 Oct 2018 03:02:26 -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=ChJgn/GNLzEf0d7P4SL5VnZinbnQGp5Jynu7/EO5VBE=; b=KMmK57maYXRxes0Pjtv878NW7wx79/N+isajeH83BnN4ecs6yopHSN58ZBfurevIoN k1veaE4UdAdGQz7OLp8WDBBDWRALUugE7UiwGgUoRMBMmeHpCU9gpKjGmTVY497sVDH2 ShsFxYq4JnWvrCDNmjWFNA0v70FCPOMspRlMc1aD2nd+3+Z4UiTmDU+E4eUrJ7TyIf/B XZ97v3wjB85yXTdaEq/C+5FY+0SxY6X/N5sFNFbzVnn2lgM211BadfebmNz7LcCHcUr/ 3IffEHUrjxEOoDceThnV2j3bCBLY0BkH44ukVg7hvRoVX5LCFvYadKzKlPykb5LCL+47 wryw== 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=ChJgn/GNLzEf0d7P4SL5VnZinbnQGp5Jynu7/EO5VBE=; b=rLDBUFK4+8jtVkelwSRKssQREyGIIgwBLfZIMSaxlu4c3T+3kGZxwAcisyIcrHXvVT 7UZcuJvtp29fVOY5w0OoaT0Mx0yAkErMHqNz6qGkxCyItsjqdgqH15beisXpsUBi3O2x Uzb/nthq+/zvPsv2hbSt4swVayu2AFs+sH5yyHiwjUIeF4oeQw/dh4FfarHAWQvFFR7p 8pHM5GeneKYlZi3G781WnCOQNaOi4KDSNKYmuWCT0wgF9bGCVG/eA4QdE9UmD/zEhNcu 7zT5nJF0PHxI5qvkjI5rZTTKMXkLNg7mqu1kEavFAmoIWJjbEtTtHRbdiqyAewAdzngy vzdw== X-Gm-Message-State: ABuFfojZ4TxV/XG8fMNQ2UDMvp/VYnvDpmnXhUTOr81UCjzRdCAGmcA2 WE68wDgH3kUQuVNKGT3m6A4Pj0MDO4w= X-Received: by 2002:a1c:4c16:: with SMTP id z22-v6mr1991435wmf.89.1539770545474; Wed, 17 Oct 2018 03:02:25 -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 b5-v6sm14236061wrr.94.2018.10.17.03.02.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 03:02:24 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Wed, 17 Oct 2018 11:02:23 +0100 Message-Id: <20181017100223.11468-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] package_manager: warn that PACKAGE_EXCLUDE doesn't work for opkg 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 The rpm and dpkg package managers both support package exclusion at install time, which we expose though the PACKAGE_EXCLUDE variable. However opkg doesn't support this, so show a warning if PACKAGE_EXCLUDE is used with file systems built using opkg. Signed-off-by: Ross Burton --- meta/lib/oe/package_manager.py | 3 +++ 1 file changed, 3 insertions(+) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 2c7cdb2e17d..4214abe9f88 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py @@ -1323,6 +1323,9 @@ class OpkgPM(OpkgDpkgPM): if not pkgs: return + if self.d.getVar("PACKAGE_EXCLUDE"): + bb.warn("PACKAGE_EXCLUDE is set but package_ipkg doesn't support this") + cmd = "%s %s install %s" % (self.opkg_cmd, self.opkg_args, ' '.join(pkgs)) os.environ['D'] = self.target_rootfs