From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6649357282775662592 X-Received: by 2002:a2e:9a59:: with SMTP id k25-v6mr421184ljj.0.1549387239717; Tue, 05 Feb 2019 09:20:39 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:8681:: with SMTP id l1-v6ls2612577lji.0.gmail; Tue, 05 Feb 2019 09:20:37 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ+Xr5FtFauvIHy8y7fjZrdFvypAuZdiDEagAYMUYueBmWzj9x5KZnKw1tiMBt5qMH4Mbmk X-Received: by 2002:a2e:574f:: with SMTP id r15-v6mr405408ljd.19.1549387237811; Tue, 05 Feb 2019 09:20:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549387237; cv=none; d=google.com; s=arc-20160816; b=Qf1zmDXtovFUJo4Qo3UYz923JjLPhsPcjLXmjnfIL5695bb92EJ7Fn3CE69nmycgmC QqAstTzD/pndr09/CJB2oBAKL56WnY2IQmWi4GKNj9daQ6F0iYXVZV0guSqhb+xF+3re IX/nWMQfuuWHt8Hv35ruwXS+x/zxk1QtMWO0cAsVd9/9FO/cP2X1tTo2sEdL34GyRGAy SQuGrePQoK9P/C6bHxzsL7suVoLZ9nmQ8qSqpzbu/Q3ItIT8JhmsSBGaRU8QPymGwvms eDdvls4Epw4HUh4ijoeRCJ5NDgCq/F3hshEJ35AOvsq3mmDXeYNlwFYyvqy9DGP20uiP l5MQ== 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:organization:from:references:to:subject; bh=gZcfQqHzghNbr9Ny2WhTkAWfNPB66rHonfHKdO9vQK8=; b=KDDW+LVUjA5Zu/bx7bWjPha9pGgeLSdiYsIaSSY9g6Iv4m9gcaYMTkEdDVGxoi40D+ CEKw3vn/nVAtUzaglPkVGHRs3bfrKukOxXTF2YpMx3aHX5Qob/rHY0NxoRin49oJh7mo c23MtNWe8Pct3z7RphlEOI/thVzVwJR7IjNZ3o+AV70pi0ghauTBMmDCMK4rPSj9FSDe Xjpdp14aRIVKctg3NQxf4b2Pls+u3/9x6KQyXPCVPlUx1pki2k7cb5kbyMmyFvGZN0fq dKGjh3kht6tUC8ppAs2RgdXFBdzDSAEpveTyjP7euz2neYJ+cPRXywqQFT261JSF0NRa rKnw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 85.214.156.166 is neither permitted nor denied by best guess record for domain of mosipov@ilbers.de) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from shymkent.ilbers.de (h2822328.stratoserver.net. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id e17-v6si1040413ljg.5.2019.02.05.09.20.37 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Feb 2019 09:20:37 -0800 (PST) Received-SPF: neutral (google.com: 85.214.156.166 is neither permitted nor denied by best guess record for domain of mosipov@ilbers.de) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 85.214.156.166 is neither permitted nor denied by best guess record for domain of mosipov@ilbers.de) smtp.mailfrom=mosipov@ilbers.de Received: from [192.168.50.163] (d51A48A80.access.telenet.be [81.164.138.128]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id x15HKa0V008218 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 5 Feb 2019 17:20:36 GMT Subject: Re: [PATCH] buildchroot: Perform upgrade after build dependency installation To: Jan Kiszka , isar-users References: From: "Maxim Yu. Osipov" Organization: ilbers GmbH Message-ID: <5062dfb2-9672-cb9c-cf65-f6c5587a67e4@ilbers.de> Date: Tue, 5 Feb 2019 18:20:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: Ns+LtHRJGQNI On 1/22/19 5:22 PM, Jan Kiszka wrote: > 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. Applied to the 'next'. Thanks, Maxim. > 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 > -- Maxim Osipov ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn Germany +49 (151) 6517 6917 mosipov@ilbers.de http://ilbers.de/ Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov