From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6515090200378474496 X-Received: by 10.200.18.129 with SMTP id y1mr8485517qti.55.1516912653363; Thu, 25 Jan 2018 12:37:33 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.200.56.183 with SMTP id f52ls10016740qtc.5.gmail; Thu, 25 Jan 2018 12:37:32 -0800 (PST) X-Google-Smtp-Source: AH8x227mI9wynHDlXrp80cyZwJPZvj9ArhqGfMXEAMHAh5ihT6+BckxLIbkdU/dK+AzDYxYpsb1f X-Received: by 10.55.75.13 with SMTP id y13mr7071336qka.21.1516912652945; Thu, 25 Jan 2018 12:37:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516912652; cv=none; d=google.com; s=arc-20160816; b=ZJzjWLcTf86d866iK3mXjPwsZq5EQEy0gYaG5q0hlyBCeyZtBwaSlyanMFap/6FdjZ maKv7UAKocx/s5Fs1A4H3KxZuT9pGOeJTvU90gvn/I3nnm3iuNxpaoAToBZCb6xyh8n8 E3v440DISq2xSFPzgBxmTzAwBt4K1TpH/vs/by3N/wOuUjFZAIGXID+5ss81wmZ/LDZd oSa1GlIGcJ94itmm4DotB3y19lxku0I07Kph6WBSDQTOcDUk2PrX6kyczzDOLCyrrygQ TMEMCwWiLnSxb8R5+2cWiLzPWluxExkN+rqrsRYoaCWvTTtWNUloSvYxzEs5cPdVd28g bJow== 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=SuzC7ZifzfCnKjwjcKtR+fTg56Ak4JpB0Z0iuZmZjlk=; b=P4DpSP1QMlEARvOu0M61hQfNVQZ1HBmnvc1+M5qfiIcEGASQk1xEpSxIUI3yfnHnl9 SbIFSbMNNAA1Yd40VaP8FiOcKXDxhIunQVap3lBLqWBQYeoM1zo/xpnbZpRsc/UosTjj wNNsd9ZwKTWoW7u/N+CrPY2vgry1VUyjPbZGuVutU4c6J9bANKCpH2KoTc1Hmnnf8oFV vJQOOoP//yuMJ2oi0bQEm3MJM2/Bxf2QG6FOezXP0xfSBZUzTfJnJ0Nt3Y2eCp2pILmS A2QO32k6PunP86Vhp4cK/iWrgoOTOZTM3ozE1mg2NG4lilFCVG89TfoN2tYN6RyV1/jM L/QQ== 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 c12si139045qkb.3.2018.01.25.12.37.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jan 2018 12:37:32 -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 1eeoH5-00013D-RU from Cedric_Hombourger@mentor.com for isar-users@googlegroups.com; Thu, 25 Jan 2018 12:37:31 -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; Thu, 25 Jan 2018 20:37:28 +0000 From: To: CC: Cedric Hombourger Subject: [PATCH 1/1] build.sh: eliminate user prompts from mk-build-deps Date: Thu, 25 Jan 2018 21:36:55 +0100 Message-ID: <20180125203655.6894-2-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180125203655.6894-1-Cedric_Hombourger@mentor.com> References: <20180125203655.6894-1-Cedric_Hombourger@mentor.com> 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: MaMfiMkK4OIt 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/buildchroot/files/build.sh b/meta/recipes-devtools/buildchroot/files/build.sh index 975252e..760ebc8 100644 --- a/meta/recipes-devtools/buildchroot/files/build.sh +++ b/meta/recipes-devtools/buildchroot/files/build.sh @@ -6,8 +6,11 @@ # Go to build directory cd $1 +# Install command to be used by mk-build-deps (use -y for 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