From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6515090200378474496 X-Received: by 10.25.145.93 with SMTP id y29mr3503173lfj.9.1517679467902; Sat, 03 Feb 2018 09:37:47 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.104.25 with SMTP id c25ls425758lja.7.gmail; Sat, 03 Feb 2018 09:37:47 -0800 (PST) X-Google-Smtp-Source: AH8x225ZLJtgOMsoR8PFzAA32LSRMxe4JPVuh/gJMwIvXVuHfrxwrQPhOLJFdgALLeRkY/hMugwp X-Received: by 10.46.41.130 with SMTP id p2mr1270031ljp.1.1517679467062; Sat, 03 Feb 2018 09:37:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517679467; cv=none; d=google.com; s=arc-20160816; b=W7z+fqJ46nKkm41/zo+L+WN9i/8BL8dcDVTjrXN4BEjEXKScTDPQjwmlr6kxS7tQJA xh82AG0kSgGLpNrW9+GRP/PtzgKv4p76a2jwYIAjQQT1BTW47DVydsCyUY/lOt7QXJCm YyYTgS5NjGJNDho0P3mPS9H842VYe03mw7jjZPQyOlpwpgiaJdmTyHTKC8T93PRfixVv IUYK9X1GJoYg87x8G//mvXu+FDpBvSbSYtjMX1NXFdsUqQs6UPEb3NPHWPeKlo8R3ajx 9eZwZkl4Kme5xXcHBl9HRGRDTas+kJRHsmHDyx7ZTmR7hHbxXnppntQ2vFXpA2ehqKPN wmew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:subject:user-agent :references:in-reply-to:message-id:date:to:from :arc-authentication-results; bh=i212/mc9Lc8ckYmzBdbvY6K9tDEZ3Gxi6mg2R6qzeHI=; b=o4hsVWIYRc0p6vWaJnFyqaPFMwbDocxjC3DKCi3GDaHMdudmjYYwWyDzgtBaz7QiO8 +zwRIBGqIO81NzT7bX9r5Fhm/JMFDakQ/TTcsRaXMsOOZmh8ho7d/AWYYm3BOb2ZMnHZ u7nG1lPQDPU+iXD3WJ2IZs3Y2uCbzoFTOdcef0P4qZem9cbI9sq6eIofffDO1jQ+tYkn MBikY9MkZVKgoJzZh2YfrUf2pNlXHvqXkkb3LKR9DXGUyd43ZSjvthXYaD09HxjXYUiI 3UPzq59T31fn68eCJ3SF7d3QK/uS40F344D5ilZVoJIvyoCQvSHE7PDiDimkEX8gr2iA +JLg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id n69si366709lje.4.2018.02.03.09.37.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Feb 2018 09:37:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [192.0.0.4] ([151.216.224.0]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w13HbhsB018807; Sat, 3 Feb 2018 18:37:44 +0100 From: Alexander Smirnov To: , "isar-users" Date: Sat, 03 Feb 2018 20:37:55 +0300 Message-ID: <1615cbef938.27ac.034a6b0541ed39b7fb4e17f4ac219eaa@ilbers.de> In-Reply-To: References: <20180125203655.6894-1-Cedric_Hombourger@mentor.com> <4e857783-a4ae-7649-523c-ae277fef6bab@ilbers.de> <20180129165954.404a1ab8@mmd1pvb1c.ad001.siemens.net> <4dd8dbf0-92b3-891f-4012-f1bb19560ed3@ilbers.de> User-Agent: AquaMail/1.10.0-403 (build: 101000001) Subject: Re: [PATCH 0/1] avoid user prompts when mk-build-deps is called MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8" Content-Transfer-Encoding: 8bit X-TUID: J4HqBGyaFNh5 Hi, chombourger@gmail.com 3 февраля 2018 г. 12:49:41 написал: > Hi Alex, > > A simple test case to demonstrate the issue consists in adding libpci-dev > as a build dependency to example-hello > I have forked and modified hello for this purpose and modifed the recipe as > follows: > > diff --git a/meta-isar/recipes-app/example-hello/example-hello.bb > b/meta-isar/recipes-app/example-hello/example-hello.bb > index 602a11e..af87428 100644 > --- a/meta-isar/recipes-app/example-hello/example-hello.bb > +++ b/meta-isar/recipes-app/example-hello/example-hello.bb > @@ -10,8 +10,8 @@ LIC_FILES_CHKSUM = > "file://${LAYERDIR_isar}/licenses/COPYING.GPLv2;md5=751419260 > > PV = "0.2+7bf716d2" > > -SRC_URI = "git://github.com/ilbers/hello.git;protocol=https" > -SRCREV = "7bf716d22dbdb5a83edf0fe6134c0500f1a8b1f0" > +SRC_URI = "git://github.com/chombourger/hello.git;protocol=https" > +SRCREV = "3f05efe8cd471ce0313b5de6ea992c4a46e0e647" > > SRC_DIR = "git" > > If I bitbake example-hello, do_build will fail. The log will show: > > The following NEW packages will be installed: > libpci-dev libpci3 zlib1g-dev > 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. > 1 not fully installed or removed. > Need to get 317 kB of archives. > After this operation, 703 kB of additional disk space will be used. > Do you want to continue? [Y/n] Abort. > > We get an "Abort" because we do not have a stdin when building from bitbake. > > Hope this helps Sure, thank you for the explanation! BTW: applied to next. > > Cedric > > On Monday, January 29, 2018 at 5:15:01 PM UTC+1, Alexander Smirnov wrote: >> >> On 01/29/2018 06:59 PM, Henning Schild wrote: >> > Am Mon, 29 Jan 2018 16:49:51 +0300 >> > schrieb Alexander Smirnov >: >> > >> >> Hello Cedric, >> >> >> >> On 01/25/2018 11:36 PM, Cedric_H...@mentor.com wrote: >> >>> From: Cedric Hombourger > >> >>> >> >>> commit 498b128 caused build dependencies to be installed via >> >>> mk-build-deps. >> >>>> The tool may ask the user to confirm their installation but >> >>>> would >> >> fail when >> >> >> >> Do you know in which circumstances this could happen? >> > >> > Basically whenever apt-get decides to become interactive and wants to >> >> I do understand what this patch does. My question is exactly when >> "whenever" really happens. I've noticed such behavior several times for >> different Debian tools, but it would be nice eventually to understand >> this kind of magic. >> >> BTW: for me it's not the point to block this patch. >> >> Alex >> >> > ask for confirmation. My patch removed an "apt-get ... -y" while the >> > "-y" should have stayed. >> > >> > Henning >> > >> >> Alex >> >> >> >>> called from bitbake (no stdin). Override the default install >> >>> command to add the -y switch (assume yes). >> >>> >> >>> Cedric Hombourger (1): >> >>> build.sh: eliminate potential prompts from mk-build-deps/apt-get >> >>> >> >>> meta/recipes-devtools/buildchroot/files/build.sh | 5 ++++- >> >>> 1 file changed, 4 insertions(+), 1 deletion(-) >> >>> >> >> >> > >> > > -- > You received this message because you are subscribed to the Google Groups > "isar-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to isar-users+unsubscribe@googlegroups.com. > To post to this group, send email to isar-users@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/isar-users/d7821b41-5b3e-4b7a-b5cb-08938945ac8a%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -