From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6515090200378474496 X-Received: by 10.129.148.199 with SMTP id l190mr12426733ywg.212.1517243483980; Mon, 29 Jan 2018 08:31:23 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.13.212.209 with SMTP id w200ls76515ywd.0.gmail; Mon, 29 Jan 2018 08:31:23 -0800 (PST) X-Google-Smtp-Source: AH8x224ck9Y/iioKfx57ZtXv/0Rc94mDy4dhmi89VYBLDBMlwrbFadRpvEum9L581eMDEWadjcAw X-Received: by 10.37.230.138 with SMTP id d132mr11998811ybh.17.1517243483405; Mon, 29 Jan 2018 08:31:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517243483; cv=none; d=google.com; s=arc-20160816; b=sqZh5QoLB4ZOLDpjOYUBP9EWSweitzZjGYgrewuw7zq1jwzpa0UWe7J5ePGMFQJB9D 5u8qYQnuMwiBEOgDvF8PlPoiDKzNk1Qz3zyhEZARI/I1LDlRmDWTwMT0WyG1rELI/c2c nuqRJKMUJYqgIVSN5jTE9a5WM59TYLnHedG51E1cXEKJGRE19GXl5I7c6wX1Kr93xSk6 8HL96+XQ6vRU3JBIu42NlaUxXZvcnwHaNcch/TZz/mF8b7X4pPv7ilE+ptwshuIWQlDk 9KBVRS2i0RH/0zIcatbhhvDRU6tfuB1gnEBlRG3UMKR4CiRqpmdyoNDRJ3QdnzKPoxvR FtSA== 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:cc:to :from:arc-authentication-results; bh=5GbWBRYw+4eYPpO4KTeQZfOtAL/qiRIvGTx0cu0zcsM=; b=Dsi3OPC2bmRV6a2XFoiJpjjT9MHVAk+nY/qopI46A2cQx0ILhXoIJTp7VZuXPxGh5e +60pFKhuurvbpmPxe2s+bIwLEahccVIGH35DAi4lP+XE0Mwj7fNBbQDyn0xDJ3GR0ELg kyZAjDwjlH5aB1aJ0qLZh54QM6Q0zwTWSzSSqtb0UkCZfkhtYatcKaPZX8dKrIsrPoad n1sxEI48RvcYShIKPsTzuJzdGJ9P09/BM4sOC5zFknNEoiO0Y7+mO9F3g1tM3lhRGaHi bNakBS3Um6fHSSafsnWDOeb3lUxo4tn7wYSt6OXRZa7NrgyMXhvFeOJsb+DGJdJap54Q 2T4Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com. [192.94.38.131]) by gmr-mx.google.com with ESMTPS id 78si978790ybe.4.2018.01.29.08.31.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jan 2018 08:31:23 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) client-ip=192.94.38.131; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-02.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1egCL4-000350-I1 from Cedric_Hombourger@mentor.com for isar-users@googlegroups.com; Mon, 29 Jan 2018 08:31:22 -0800 Received: from debian-gnu-linux-vm.localdomain (137.202.0.87) by svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Mon, 29 Jan 2018 16:31:18 +0000 From: To: CC: Cedric Hombourger Subject: [PATCH v2] build.sh: eliminate potential prompts from mk-build-deps/apt-get Date: Mon, 29 Jan 2018 17:31:05 +0100 Message-ID: <20180129163105.14569-1-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180129112508.4f979c0e@mmd1pvb1c.ad001.siemens.net> References: <20180129112508.4f979c0e@mmd1pvb1c.ad001.siemens.net> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [137.202.0.87] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: MLPZiAOHs2cd From: Cedric Hombourger commit 498b128 caused build dependencies to be installed via mk-build-deps. The tool may ask the user to confirm installation of the dependencies but would fail when called from bitbake (no stdin). Override the default install command to add the -y switch to the apt-get command it uses. Signed-off-by: Cedric Hombourger --- meta/recipes-devtools/buildchroot/files/build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/buildchroot/files/build.sh b/meta/recipes-devtools/buildchroot/files/build.sh index 975252e..77e0fdd 100644 --- a/meta/recipes-devtools/buildchroot/files/build.sh +++ b/meta/recipes-devtools/buildchroot/files/build.sh @@ -6,8 +6,14 @@ # Go to build directory cd $1 +# Install command to be used by mk-build-deps +# Notes: +# 1) everything before the -y switch is unchanged from the defaults +# 2) we add -y to go non-interactive +install_cmd="apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" + # Install all build deps -mk-build-deps -i -r debian/control +mk-build-deps -t "${install_cmd}" -i -r debian/control # If autotools files have been created, update their timestamp to # prevent them from being regenerated -- 2.11.0