From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6649357282775662592 X-Received: by 2002:a2e:8514:: with SMTP id j20-v6mr167432lji.6.1548176912265; Tue, 22 Jan 2019 09:08:32 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac2:4424:: with SMTP id w4ls2277939lfl.13.gmail; Tue, 22 Jan 2019 09:08:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Xoz/PxPqZBX6IoWbx6v+ExhtIOl7eiCIPg7gYHDp92Pa5HrsC5pXYHf8K1whwQ9aOEEHR X-Received: by 2002:a19:c952:: with SMTP id z79mr163324lff.14.1548176911540; Tue, 22 Jan 2019 09:08:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548176911; cv=none; d=google.com; s=arc-20160816; b=sMVqQPrq4EdIYwU6Ekh5SJPBO5EORREWBA0KWVc16ixTSf6Bh+VXB4oF/wcVIJdFIf LVbrssvLOBw8UMh8ow7tpDXYiHNcVkreXHoRh89e4ViWF0L3xNL5y6wtlJBs9yfUTacC 2ciQ5m2WtXei2gMglMsB/bEQ8MjtDJONkgbJgJG4sDLiYTkBuQ9j/9VnFZ71M94tws2t J4BQ0GKENvqPc1IaTBxuBPketo/QpHmEJXZA4RD/anNc9c8tAaCY+hc3SghO4kkbN86Q ctEtrsQjml1rv1RbVU5OswnbirSLpq0fiazxok/PDit169gwffvGnW/+zV40pIjWDweR CZKQ== 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; bh=IXUcu+ikno0P2GBTfWMvd92GqWaLg7jNV4aOblNtU/g=; b=Z479G7T4IoJpRBfED+yjGTfrYomK9hdyLoshSWENtVpLA7iKW589h5AHF9Y86FmcjZ WTsjaekvBUdSLghHtYfwrWqzKwdkGouWQYLY4+NP5m3C9WUrf5FZbc7A3KapFm7DP/cA W5UXCWgOZ7u0hRlK9gyDcQwhPGxD1sfIkvUsEhJ+n+uXLUKMr6WR04rFUwZ1QjyboKck 0UyjtKmmatu/tOyG5zBiqTKe8icoSFBTuNCENuQFMPx6YQ+xzJZm+jd8rOgCDStYpWZ+ kRZUf6Fkh/FanUcWM9dO/g0GKbZilRSld/Nomc+FWm2ububb5puqJWO+Sp30sTL4Hlbe dOvg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id n189si21422lfa.4.2019.01.22.09.08.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Jan 2019 09:08:31 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@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 henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id x0MH8Uo9024169 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 22 Jan 2019 18:08:30 +0100 Received: from md1za8fc.ad001.siemens.net ([139.25.0.99]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x0MH8UmN016114; Tue, 22 Jan 2019 18:08:30 +0100 Date: Tue, 22 Jan 2019 18:08:30 +0100 From: Henning Schild To: Jan Kiszka Cc: isar-users Subject: Re: [PATCH] buildchroot: Perform upgrade after build dependency installation Message-ID: <20190122180830.3aa8bef1@md1za8fc.ad001.siemens.net> In-Reply-To: References: X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: UNiD+5aq6D4j Am Tue, 22 Jan 2019 17:22:14 +0100 schrieb Jan Kiszka : > From: Jan Kiszka > > When we partially rebuild after updating the version of a build > dependency of another package, we do not properly upgrade that > dependency in buildchroot. The reason is that "apt-get install" > performs upgrades only for the explicitly listed packages. But we > install build dependencies indirectly, we a meta package's dependency. > > Resolve that be running an explicit "apt-get upgrade" after the > build dependency installation. This will ensure pulling the latest > versions for isar-apt. I am not sure i fully understand the problem given your description, but i get the idea. The mk-build-deps calls an apt-get that will not do anything even if builddep-0.1 has to be updated to builddep-0.2? Maybe you can address the problem with the "-t" argument of mk-build-dep? Henning > Signed-off-by: Jan Kiszka > --- > meta/recipes-devtools/buildchroot/files/deps.sh | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/meta/recipes-devtools/buildchroot/files/deps.sh > b/meta/recipes-devtools/buildchroot/files/deps.sh index > 4bd604f..2501f05 100644 --- > a/meta/recipes-devtools/buildchroot/files/deps.sh +++ > b/meta/recipes-devtools/buildchroot/files/deps.sh @@ -25,3 +25,6 @@ > apt-get update \ > > # Install all build deps > mk-build-deps $set_arch -t "${install_cmd}" -i -r debian/control > + > +# Upgrade any already installed packages in case we are partially > rebuilding +apt-get upgrade -y > -- > 2.16.4 >