From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6519007876157014016 X-Received: by 10.28.225.70 with SMTP id y67mr221702wmg.0.1517831560937; Mon, 05 Feb 2018 03:52:40 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.45.209 with SMTP id t200ls1508677wmt.11.gmail; Mon, 05 Feb 2018 03:52:40 -0800 (PST) X-Google-Smtp-Source: AH8x226tdopb18twtxOSUZa/P/N2Zxrc5b4xhZVDtqY6HIoCug6loEjIcaZ2dsMRS2hoUpW6tUyE X-Received: by 10.28.129.195 with SMTP id c186mr5358359wmd.10.1517831560361; Mon, 05 Feb 2018 03:52:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517831560; cv=none; d=google.com; s=arc-20160816; b=Qfm5k5CX7+S8ohBI+FFrcxbPn1YGywGaB7aTPSWgJA7hcxzUyW2UEU0eTVqhWg2c+M 71i0Lfy4VgPDlLdzeRSFFuoODpoJim8c1gvJKdKxuquSWvj8ofFm9Pxl8+czcJd5oRdq y5XQtcj5uutgRYhTjeT1xaqztL5j5i1t9R7mM/zjMHGq0Dd1wkybW7klpbx+hgXRSKsd yjSIp4maUttAhy2AdAySjdXcgB/m18KdRZGhqCi1+PZGCkfpIcqr8+M/G7pG9Da8Kmte NwGSZHsKhl2h2WUz96y10CYbiFq5PAoUTeDMEXDsZIzIZipYWZvUgHFcvTrV9gu2ukLU boPg== 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=U0dEZrsvY4XFrSyix+j15NrfChES0Jkv3nq1eHcu/sk=; b=om0BaHKdgCBRu65oM8egKBcdzKECuyT+lB6/aFyQfqoo9RlWTLgsyqFzRNi/V+I0WT kqd187E0oIB0ZMk2yITiBeLiB9bwsKAaqCso9ox+UhEz2rwaQZroJS29QoU28p2QWuhl InCED/dDZ9k6f1zw3XBVT907d40/MtS9aB1bjRe+RiYmxdOK0w9BXH9dRxja1Hc8/X3q 02kggcOdLV2Po7LRL6thIQFXKj6SARbLboSwayfcc7slFlVYfcvFLF4VwAoTwxuj3QUk sxSpI2MFJwv7qH2DOw8ej/akm6txCO3tt1H3mQ6gpe54OwPtZzw+zjiTDQieKwHbQ4Au ayYA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id f192si473357wmg.1.2018.02.05.03.52.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Feb 2018 03:52:40 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@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 jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id w15Bqd5m026529 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 5 Feb 2018 12:52:40 +0100 Received: from [167.87.56.101] ([167.87.56.101]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w15Bqce3029713; Mon, 5 Feb 2018 12:52:39 +0100 Subject: Re: [PATCH 5/5] build.sh: Force 'yes' for apt To: Alexander Smirnov , isar-users@googlegroups.com, Cedric Hombourger References: <20180205095931.23903-1-asmirnov@ilbers.de> <20180205095931.23903-6-asmirnov@ilbers.de> From: Jan Kiszka Message-ID: <8c8a4660-46b4-fb5a-ec0f-b3dd885a19ba@siemens.com> Date: Mon, 5 Feb 2018 12:52:38 +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: <20180205095931.23903-6-asmirnov@ilbers.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: UT3Cza8S20R2 On 2018-02-05 10:59, Alexander Smirnov wrote: > Sometimes the following error occurs with custom repo: > > After this operation, 84.0 kB of additional disk space will be used. > WARNING: The following packages cannot be authenticated! > libhello libhello-dev > E: There are problems and -y was used without --force-yes > > This patch adds '--force-yes' option to be sure that no dialog will occur. > > Signed-off-by: Alexander Smirnov > --- > meta/recipes-devtools/buildchroot/files/build.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/recipes-devtools/buildchroot/files/build.sh b/meta/recipes-devtools/buildchroot/files/build.sh > index b63a27e..06df1da 100644 > --- a/meta/recipes-devtools/buildchroot/files/build.sh > +++ b/meta/recipes-devtools/buildchroot/files/build.sh > @@ -21,7 +21,7 @@ cd $1 > # Notes: > # 1) everything before the -y switch is unchanged from the defaults > # 2) we add -y to go non-interactive > -install_cmd="apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" > +install_cmd="apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y --force-yes" > > # Install all build deps > mk-build-deps -t "${install_cmd}" -i -r debian/control > For this, I'm in favor of Cedric's patch because it has a more targeted solution for the problem and explains it clearly this way. However, we likely have to tune this further in the future: - avoid that installation from all repos can be unauthenticated - deal with key installation for 3rd-party repos, likely carrying the keys in a meta layer Eventually, we will also have to deal with reproducing builds from repos that have expired keys. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux