From patchwork Mon Aug 24 02:59:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 16 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a05:7000:4605:0:0:0:0 with SMTP id b5csp2195786mae; Mon, 24 Aug 2020 03:59:42 -0700 (PDT) X-Received: by 2002:a17:906:410d:: with SMTP id j13mr4854535ejk.139.1598266782720; Mon, 24 Aug 2020 03:59:42 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1598266782; cv=pass; d=google.com; s=arc-20160816; b=Al5GQ7aj1ZgjUTtdci3JP1vAl+aICzdEPj0AkcXzbP0YdsDpaUzubK2a14K9L+LOZw RVFOIfxpEkOiRZgcH+7aFKZkTSIQpG8w/hwlUqci3QXPzj129n+3t2m0FCBIAVRaT5/g j0oVk9NHvgTY0XaMbVYEriczrZS5PpShZ/7VVKnG6aylIn0tPA5/fM+31NBB3I/RxMnB ojCimm+7XW7Jx+WrI4yRypVoCUUIEjMQE7sdGJl0kALs3z/mFSPeEbeAPowtDr7Kb+nq g7TfIqEPi5fr9Q8YCMIm7JKYIPdToosRBAOYhNNsQXJ57g1BxSLdpAKDlzo2tmJ8KRj2 ZxTw== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=yOng8jG3ocxQszQqSOx/XPQYMTphWWvlkhE1caRWunU=; b=MjJN2YGPW/LuCBi6sQLmJeWCjvc2FFBVeeYsMmW3SgrGqS5Cq4pOtCO5LbH9SFay9c FF+U0DhfZqBhMcXy1an06rnp0eS9mTXIme8H8NhZXcGyolLzQUxEmeIRTL47nD0iX9+z wPlKpqWRg7KSgv7eV7oeNnCrvEZ2nLwZWVOqe88A2pC8a2B+VZ4pDRVzwTvLdEMbVyVs VRPNCpmbLRuVbz/QCwF/8yGcpnk9RbrPHuRsgghx+qEsDmtG12iPbTZU2JeadmQ0wbNf Gx5VDwrH380mv7SY0OodiPj6WT40DWDlKebCujsDCTDJmlMYNDo9jfFawfUQqZsRY4bL S6jw== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=SPRGSz0Q; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcw7ho6fuybrbhv3r35akgqezpy2ahi@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCW7HO6FUYBRBHV3R35AKGQEZPY2AHI@googlegroups.com Received: from mail-sor-f55.google.com (mail-sor-f55.google.com. [209.85.220.55]) by mx.google.com with SMTPS id p4sor8336773edu.8.2020.08.24.03.59.42 (Google Transport Security); Mon, 24 Aug 2020 03:59:42 -0700 (PDT) Received-SPF: pass (google.com: domain of isar-users+bncbcw7ho6fuybrbhv3r35akgqezpy2ahi@googlegroups.com designates 209.85.220.55 as permitted sender) client-ip=209.85.220.55; Authentication-Results: mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=SPRGSz0Q; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcw7ho6fuybrbhv3r35akgqezpy2ahi@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCW7HO6FUYBRBHV3R35AKGQEZPY2AHI@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1598266782; cv=pass; d=google.com; s=arc-20160816; b=TvSFDYpErUpPIUpGMnmjWCcX/7ClrneXBcWYAm/o2GgH+rkEZ2Ni0T+dvf4TCrWxUM wxlivRj79C3O/3PDUmYHTF9Zqm3OFq8gDM4HPMgJllylPtKgDaAdz5FTdAWbOQnWKv4g O/xfVK0PTNx/uCCZZrpaR6PivFr1HrIPvH4TqhV9BDXk5dpVpNsIyrwcMx8zegkxBaS0 Urq0gv27rnprHsou7LhabpXiKFd1P/ajnpRq0gIJNhY26u4PlvEdeKM22qUZLYUoc1Ge aZGc9s+6V09Qd89+uhDbYhEN//cCSzVqkHBSb7/k+nNhSpntCbvQCbzIatmiEu1C69n4 WD3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=yOng8jG3ocxQszQqSOx/XPQYMTphWWvlkhE1caRWunU=; b=TAIYzRIPdoEFuqf/nxMMPe9PX6O6r+4qaIKofq0SMy1sqLhjQSVAARyhs2K8WErpml 3yYhu40qkNPUAK/S/PMsaZvtga5wNYnDWCk0W1xyV3XHQF6NRELZvBXObi/8pNhC0G/c fgt42JBoPYdX5ERgFupUnJtHXW2h6QlpVTC9ncY8izz55Obyxaq5DY2rX+UMKI23ESu7 QFNy1y3DILcLhyGvBXx0cCDLWPj6wFzB4kGqlnvxGTiwMiOl6xv9adTYxJobSCalDPcL UVrJOtc9EMUlYxVT0pHuwaTXfyGLuGW6vj+LaBozVxmWze9YxcyJnuLXA3RJfrV8I8hN Rmnw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:ironport-sdr:ironport-sdr:from:to:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=yOng8jG3ocxQszQqSOx/XPQYMTphWWvlkhE1caRWunU=; b=SPRGSz0QNOME2vHgK/BABiiDe5kItNY4BWgWa6ihdvBGMMPVzU0GHgMLveaOdUByUI ANd6T2e7mK5kyrY8xuwwbHTnvQi5x/KV3M6XjLBwtUo+MV/C50mQr18b+BrGmpHeQ1D8 gOkb/nvKP6HWc141oRhL2Ay1Ba/Mg33RBNwXxVpYvDi1nzyD/+794QcmsCOxTFel7nN3 W+oJDmpZ1BP308vhQR8SYUvCFkxc65o4+WlIN0aOeuiz8sS916GKt+LX4qWTf01BcFcn y3BWeox6qCrr3/Gg0ADT35JZ6Tu+L6iVgjYY3KmSc+TMrSpdOagTYqGOiLIInPT2x2Fv 1b7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:ironport-sdr:ironport-sdr:from:to:subject :date:message-id:in-reply-to:references:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=yOng8jG3ocxQszQqSOx/XPQYMTphWWvlkhE1caRWunU=; b=p0KUlk6zMv3A6wYbYYWNvXg7esobahPPuku5ReUwCA+e/5k+u0FAQZ5ecXL7JjZOoh FPXicPLiHAEVLEx3Ph4p9RBdQuYJsAvEyfSpI+murIFTW0WwkoTPEJrZjNfTY1rsMuKH ErJnyb6OKf/2ABXSdF4/7OTfIOs7wrGod6Gg+MnL1lzgwRB51yVCE4So8nx8jOHAUWCK gqPKIRVi5OYN0/FtkGrifzdJDp8gmrYTxO0g5NC3lG4MIoz+drORpzMqRT4/ELHRrmnz IzHwYiuVEfZX9s58AjSoKFzAJ4ER1WFE2w0pts+W/iblfH6o8MiCrTH6U/vq2EHxR2hz +FWA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM531Wk2ZFgLFetk3gfgB9QI5zKHMxmwnqG3h7yT96mLmr3Nt5nkhm GzU2j4jDeAYybdeUB384+GU= X-Google-Smtp-Source: ABdhPJwHEyysWR1olAnOTgCgFblxTJV1+cI4jayMJMnN2IhxMD7pdBlmurkc1xCVxXBgLekv4IEGBw== X-Received: by 2002:aa7:d291:: with SMTP id w17mr4865031edq.257.1598266782378; Mon, 24 Aug 2020 03:59:42 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aa7:d342:: with SMTP id m2ls2829105edr.3.gmail; Mon, 24 Aug 2020 03:59:41 -0700 (PDT) X-Received: by 2002:adf:edca:: with SMTP id v10mr2118838wro.124.1598266781738; Mon, 24 Aug 2020 03:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598266781; cv=none; d=google.com; s=arc-20160816; b=dcFgdb0QdaMF9cyrP6CoZ4OFeyEJlr/Y2CmSgNT4ZR5IFUgZ+Qk+jepinh7Ay+dmWa S8LBU1jQNp4KjFmPMpacJqIEAzgIhAq3/KYIY43CUAbPw1CblVwoI/8G/Ek5KKtdiN07 dgxIuXwjmCUimaZXefatn9tvM3u0PnE/mH+s/4ZjHV9OkTuzjysJZ1mRT+pG8TU2e4RL xfPcTbOG7gReTp0lG4mRs6RfW2CEYtD3mCBk+rnPgn7hmnBOAbr0mVku6oN8gFX2he8m v+Vx7GRZi93xgt9IqQUlSuXUd8PIK0WnevlfRETte0C1htr6pYPj8tfv/WjTO0tna0c1 /HpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:to:from :ironport-sdr:ironport-sdr; bh=7n+598+xfiIxBmBYdWPFfatJx52dQBnPbzYk49kV0u4=; b=PqrUQ7trwK/jy5Lj/iWW1O3E1uTTk3amYmcrb9cG9YM7UmpbjI5n6k9D16sYfgUPiQ jokbE1SEDDEKAg8VWVmnXLWYNPFnr3+db+8RZEMLYoVV+BJEcAak0dkf+GnuWTI1Y7SA W6mLEf5M/wXiToSqxIKOJQkZEUvccirLj8OLgnbnmD4GzE+hWkzSW8Otb1mK6yBCxtrW J9G2Kk8RuAcWVSn8RkoJYKq6979IrHktSUunwBMMYGgFcEHBLzi+vQsjMFYlIGj4b2Bs TLQlugJpqNcLsRwFh0FpzeGDHK4+9jq9VAfLlcewNFP8F0nuk0Zk2ksr6OS0wy+XirOu Fq/g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id i11si331160wra.3.2020.08.24.03.59.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Aug 2020 03:59:41 -0700 (PDT) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; IronPort-SDR: ZRk0zoMwR7d6tPxA5jOKvRhx24xD8QnSr7uEpC9HYV5n51I9MIhge9LUcuq15xrVsc8XW2A6t5 jM+2VyLuc3bYSEN9pGePeyDb+YIC+1ucRDn2T0Q4S8MSC+mTV8lu1pt6XwHNzCcqOWyHuwXQSp XDtl4IBimmzy4OhA5wfkzBDF+0gMx/6BJWbSWDssa+/ULy0+oh6D0n6YAMk+o5PkInBBvzHOrq 2HhIYD9wp53+xpEJrPC9BL9HzIQmXsPlZSOysCQUgxSr46G70af+zxxmvP95IGr10q37MKFQLp Uxc= X-IronPort-AV: E=Sophos;i="5.76,348,1592899200"; d="scan'208";a="52309719" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 24 Aug 2020 02:59:40 -0800 IronPort-SDR: 1xUYS0qRHl0D+GCdGGtuEudF0bHMXPUOF1EpOf5N88LePWaPshMcvgO+QVqi1jcE41gts6Xrt8 Ys5LgXwLFKOX5a7v3B2H01wrAAiYrqBKDBuzlJZn+tKStTuaIS43vBJJpWEKUNpRCV25TOO+27 QSB6i2ScnJZdVTJ8sjBbNiflx2N08M1oc2CE3e46lLTJAj1VdWDsXgF5SAcCP5mMFqAuIfJYbO hjZPIHkf29qsFWCT00qsBLHVvyZYTNxegw4p61f0xVGirOYEAUWdC5sbKc0stNGAXPteJRZWxc fC4= From: Vijai Kumar K To: , Subject: [RFC PATCH 09/10] scripts/lib/wic: Add /bin to the list of searchpaths Date: Mon, 24 Aug 2020 16:29:04 +0530 Message-ID: <20200824105905.21110-5-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200824105905.21110-1-Vijaikumar_Kanagarajan@mentor.com> References: <20200824092750.19642-5-Vijaikumar_Kanagarajan@mentor.com> <20200824105905.21110-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-08.mgc.mentorg.com (147.34.90.208) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-Original-Sender: vijaikumar_kanagarajan@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1675904189552508471?= X-GMAIL-MSGID: =?utf-8?q?1675904189552508471?= exec_native_cmd doesnot search for the binaries in /bin. Commands like tar which are essential for certain wic operations are present in /bin in distros like debian. Signed-off-by: Vijai Kumar K --- scripts/lib/wic/misc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/lib/wic/misc.py b/scripts/lib/wic/misc.py index 91975ba..4b08d64 100644 --- a/scripts/lib/wic/misc.py +++ b/scripts/lib/wic/misc.py @@ -138,8 +138,9 @@ def exec_native_cmd(cmd_and_args, native_sysroot, pseudo=""): if pseudo: cmd_and_args = pseudo + cmd_and_args - native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin" % \ - (native_sysroot, native_sysroot, native_sysroot) + native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin:%s/bin" % \ + (native_sysroot, native_sysroot, + native_sysroot, native_sysroot) native_cmd_and_args = "export PATH=%s:$PATH;%s" % \ (native_paths, cmd_and_args)