From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6515090200378474496 X-Received: by 10.28.160.18 with SMTP id j18mr1375975wme.15.1516952930941; Thu, 25 Jan 2018 23:48:50 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.26.132 with SMTP id a126ls3730299wma.1.canary-gmail; Thu, 25 Jan 2018 23:48:50 -0800 (PST) X-Google-Smtp-Source: AH8x226rB7qdz1ewCLFbQJ3nOdM/VtbLheemilgRFoZvDmRPSxvaEyI0ae9wsXxtnV24cDjQb8wT X-Received: by 10.28.3.11 with SMTP id 11mr1539461wmd.4.1516952930370; Thu, 25 Jan 2018 23:48:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516952930; cv=none; d=google.com; s=arc-20160816; b=Wv63BjiYWO2DkZUo5SlqfhhJcbG+3AjT91nixY8mv2WwbegfAE435G2bu4WUqt00b0 sUz51IqVmgnxNzGf/ydWfBv1RqfSGMWp4ZWsky7ohFs3bSOy5NkI1UYKsGIDIZBPzh66 mZjCq7DcVMAvn+P4Jqx8tOahJVRN8a6MHaF5ni9WTBwmJ9DC3gYjDR3xhDt6s8hxn+vA 1SxjBZvhyYkoMGOcZl0FTij9AEgxAvWhxnftopXKf3NYH0Qy7nLyA8iHkJ64EnZBeu0R fPwDpRWYVm5IqAwiGsCzyANdhch0rmEraLpsFKlmW6roLVOVVEx4cldXp7XFRofs8yE9 J2IQ== 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=wIiE6ph3S7ubcKs52T09YgZJELa4T/HVgkOboajDNW0=; b=gh91QZRcRYuRt30cj2zViGs50PjBlsPR6O8S/23IeDmOJK5KVlLHd0ctZuACpgfrjF eNNrDkYeFYNpWYPm3azoYIdazLWQ/ds4kOU8QedBz9qxy/P/PJb8Y3ISYdBwbhOqg2Ev IvjjJbPtA3ir7LVlBChp5F1m9wDgB0J2P1pM6MIbvvJSiHxx58y5sRMWzkWAvskJp2/5 GX43ej1MNF9xnyz/QuOLtPHDbJhBEcbm6Xuw5pF5AqmBsEC/Q4eQ76GHK9Q3007X0qcP vVC9vxgQJFbBw3py0veYyyufJDjNmybH21o6Ud8DHQVFokbl0EsSyylZwe2AV05xcGMf /aIQ== 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 k21si778738wrd.1.2018.01.25.23.48.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jan 2018 23:48:50 -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 w0Q7mnKL031431 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Jan 2018 08:48:50 +0100 Received: from md1f2u6c.ww002.siemens.net ([167.87.35.168]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id w0Q7mn2p009195; Fri, 26 Jan 2018 08:48:49 +0100 Subject: Re: [PATCH 1/1] build.sh: eliminate user prompts from mk-build-deps To: "Hombourger, Cedric" , "isar-users@googlegroups.com" References: <20180125203655.6894-1-Cedric_Hombourger@mentor.com> <20180125203655.6894-2-Cedric_Hombourger@mentor.com> <7fa7a907-e3bb-8b77-1a1e-f6a82a648b5a@siemens.com> <861d9e48f45a420da79d40b67e95782a@svr-ies-mbx-02.mgc.mentorg.com> From: Jan Kiszka Message-ID: <0a9e0a97-67e5-8423-166c-6165ac78eaae@siemens.com> Date: Fri, 26 Jan 2018 08:48:49 +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: <861d9e48f45a420da79d40b67e95782a@svr-ies-mbx-02.mgc.mentorg.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: OwjaWGoRewBy On 2018-01-26 08:47, Hombourger, Cedric wrote: > Hi Jan, > > If I am not mistaken these args were already passed before according to mk-build-deps (1); more specifically: > > -t, --tool > When installing the generated package use the specified tool. (default: apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends) > > I have carried them over to make sure we only add -y. Ah, sorry, then it's fine. Jan > > Cedric > > > -----Original Message----- > From: Jan Kiszka [mailto:jan.kiszka@siemens.com] > Sent: Friday, January 26, 2018 8:42 AM > To: Hombourger, Cedric ; isar-users@googlegroups.com > Subject: Re: [PATCH 1/1] build.sh: eliminate user prompts from mk-build-deps > > 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 > -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux