From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6515090200378474496 X-Received: by 10.80.243.144 with SMTP id g16mr9637301edm.11.1517221491863; Mon, 29 Jan 2018 02:24:51 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.185.67 with SMTP id m61ls118272ede.4.gmail; Mon, 29 Jan 2018 02:24:51 -0800 (PST) X-Google-Smtp-Source: AH8x227C1IV1hlpxnr2NqXJYlOLjbwLeMQdnn1JZ6E5Gnv0EfCT/bwx8NzAmZF6U1HhAkSC8UZ/S X-Received: by 10.80.242.130 with SMTP id f2mr9634355edm.5.1517221491292; Mon, 29 Jan 2018 02:24:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517221491; cv=none; d=google.com; s=arc-20160816; b=bIBPXca+xU8ZmXhV3RaXlmERKRAHC7fsWPH33f25qATnyRMo5qW800zoqxHHjqSMho yhTw3GKdoq03rNY2xXEbcQlAwCcXxQFVrgdMiR3cK0CCh01jttYjdGhwRShregrI2QlZ 7ejlNR1lXWb8bPjCatAqHDwYhSTTEPJGtkGbT7/kM2HhDdYIZxRxObCH0gXuEx05MEKD TccV4niBSEl0gb/caj7jMgSOxI00MjHfrN/QFs90RjOzAgcy+VXEhLCJ2NQhfGGx0r3w UhUgMWOmHP0/CNBsBhDdwB9wpwMI8rTEEF948o2iVojF7Wt/AczXlasZOsxOdYncAy98 0IqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=8SSQ6LWbYtwpBtzi5GUYo7BduCTQBQOH/+3qSsC3sI4=; b=e01SveORvHE9cJwpU+Jc0DMWRm7hXrYRYWswB8eXaZR/2eOxtdqwFCeijTh6r5EPlk tl6W5ndwAkc9MUshKEIl4M4S7081Za+JrIEI/ICntO1nfwE2UZrrVHeChzmeaMpewKKu u9B4WjrBL+ps+0ljWkQ7J7Ma4K+1Lbx3LxpH/SO4LLGR1hv5tA0Ea7stasGJEtmAw+kv OHY+uBagotTaLnrpMF3mkQxIY1UnGiXtCpXus7gXmM7C0blGfGiO+scbClA8fHoVX8Mk YC2am6NF1eVzbICZD49HjGWvpvGgcOTuk9Or43Kr9a8TTXTRxGFdJYEQKJ6YXkYrS1y+ oyHA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id g45si941199eda.0.2018.01.29.02.24.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jan 2018 02:24:51 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id w0TAOoT5031022 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Jan 2018 11:24:50 +0100 Received: from mmd1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40] (may be forged)) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id w0TAOoRK022185; Mon, 29 Jan 2018 11:24:50 +0100 Date: Mon, 29 Jan 2018 11:25:08 +0100 From: Henning Schild To: Cc: Subject: Re: [PATCH 1/1] build.sh: eliminate user prompts from mk-build-deps Message-ID: <20180129112508.4f979c0e@mmd1pvb1c.ad001.siemens.net> In-Reply-To: <20180125203655.6894-2-Cedric_Hombourger@mentor.com> References: <20180125203655.6894-1-Cedric_Hombourger@mentor.com> <20180125203655.6894-2-Cedric_Hombourger@mentor.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: kx8+l/9Sq/H4 Am Thu, 25 Jan 2018 21:36:55 +0100 schrieb : > 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 Looks good to me. > +# 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" + The comment could indicate that everything before the "-y" is the default. i.e. # append "-y" to the default tool of mk-build-deps That is where Jan was wondering and without having read the manpage it is not clear. > # Install all build deps > -mk-build-deps -i -r debian/control > +mk-build-deps -t "${install_cmd}" -i -r debian/control Or we could drop the "-i" and explicitely call apt-get. But in the end we would still have to carry the default tool options. So i guess there is no point in doing that. Henning > # If autotools files have been created, update their timestamp to > # prevent them from being regenerated