From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6515090200378474496 X-Received: by 10.46.93.81 with SMTP id r78mr885847ljb.35.1516952544438; Thu, 25 Jan 2018 23:42:24 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.25.201.136 with SMTP id z130ls1615706lff.13.gmail; Thu, 25 Jan 2018 23:42:23 -0800 (PST) X-Google-Smtp-Source: AH8x224M2Y3W62tkGIOslD/gwmhHSR6qfNX3lDDQ5VGjaPQGLqdHkBseK67hG+2hhVUuSkKHmXPG X-Received: by 10.46.20.11 with SMTP id u11mr943854ljd.29.1516952543756; Thu, 25 Jan 2018 23:42:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516952543; cv=none; d=google.com; s=arc-20160816; b=vV6FTAD+6k6ZgP8e2zxAXa33p17frSkGZqugqRwT7lv3C4dzXnUJ9bqVo4Vzl6gLow 3qgwhcBtevXuaEutyiuE9yoAPbTEfONLS+RkKvjMNDL1nVjcMRFs7sONVOzvh+i9jIXL nWqMuPYCiM0YlrkPTy0H29ujtm2LFlK0Xg/o0x2J3MtN/GR1he6+QvfF503iLDvohkpR 1mvD94GTdx7Q22q5rsDewtwL8/xmmOcy/jm4H0/CowIV/d+ipcMeN1nmBAgLOuoccyI9 w/NBUSI1QnuF3jiA0WGywdLHRJYUVx6W9VNxo6/yMrZP/0PpSfNlCfLz5kSvO2R5/TQ2 +Bjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=4JN5qarxf1ZqtJHBc8rauU+d4Zl+kqq1oaUToiukB4s=; b=Fv8CeF4ac4hxeP9yZKYsvhbldgFoz0nSHiprQJ4g5kdqqrsVNKTCB+2bNGaLDJeK2A gyS7s4+VpZ18KtspyRHXYz32Zr2rC20r0Xl0zHh03yGYUFb3s5onH2/NaYFxgTA4MW9R MgkHaAoVebTrJi+wz/6teT9xeiJ8Kmln+B+rYSDEZ85KnHFm/qf1MVH/l4ca7gi/bpOA CykoMP05idxh/8qWrcE1ZMavC0ezK6BKpmaiEDyIQ+P13ArPtyJNyXLcZl2S94/Oj5xl XR3hP//2ePSF2ad2vnQmw9BVTS4g3AHmeLhC9VFSXshfnTkF4NZkEv7v1zDBrhXUnamP lEFQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id 80si498378ljr.3.2018.01.25.23.42.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jan 2018 23:42:23 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w0Q7gNVP010904 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Jan 2018 08:42:23 +0100 Received: from md1f2u6c.ww002.siemens.net ([167.87.35.168]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id w0Q7gMmg015881; Fri, 26 Jan 2018 08:42:22 +0100 Subject: Re: [PATCH 1/1] build.sh: eliminate user prompts from mk-build-deps To: Cedric_Hombourger@mentor.com, isar-users@googlegroups.com References: <20180125203655.6894-1-Cedric_Hombourger@mentor.com> <20180125203655.6894-2-Cedric_Hombourger@mentor.com> From: Jan Kiszka Message-ID: <7fa7a907-e3bb-8b77-1a1e-f6a82a648b5a@siemens.com> Date: Fri, 26 Jan 2018 08:42:22 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <20180125203655.6894-2-Cedric_Hombourger@mentor.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: M+/0IUwatWyK On 2018-01-25 21:36, Cedric_Hombourger@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 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" This sneaks in --no-install-recommends, which has a value, but it should be separated out or at least mentioned. Also, Debug::pkgProblemResolver=yes is worth mentioning, even when it doesn't change the outcome of the installation. Jan > + > # 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 > -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux