From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6649357282775662592 X-Received: by 2002:a17:906:6006:: with SMTP id o6-v6mr1264157ejj.4.1548848969964; Wed, 30 Jan 2019 03:49:29 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a50:b656:: with SMTP id c22ls552014ede.0.gmail; Wed, 30 Jan 2019 03:49:29 -0800 (PST) X-Google-Smtp-Source: AHgI3IY9tuks9me0p5O+Ms9kij/Cm2heRzJ/vQyIu6U1GWbKrtJlonsSgGklfUSlNXVbyf8ABPSg X-Received: by 2002:aa7:c393:: with SMTP id k19mr1330943edq.6.1548848969579; Wed, 30 Jan 2019 03:49:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548848969; cv=none; d=google.com; s=arc-20160816; b=eytwqChwbfDeDzZ25cyQvbM9GRVa5Fccu0jksiAqbvs04Jv+4NXvKbAN+5728Yfl4w cuVxtS0p9jwn6hIZUXAQBbw4B14Bj2SwhFOK4pZ2gR8Kz7CdvZ+hfNp51hfThVYsERNk 1DIyj1r/m/u5QkclhZ0SlOHkZRiU5XLiZuJHrFAPekZya7uFj0D1qAD20G5VjUUWHvee NKTLB5ABGtKkJZct5sq16hLYGbr2ZsR0lH4tOTsrJLe8gwLqxPZvWDxzoksI3M2k5CIh G9/PFyOguHndae0wcR5UUqAEtM0bj2yujr1bNspXyUvRHAwZS6mTBUKWKt0G+Gw3PuwH YMLg== 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=CPvWwhMLC9ZNG8dFA+3ewtDXqsfxr2hZD5Pw40RMI6c=; b=S76N2RyaJEk3XG05fyx31lvM1LaFSARIGSSbH+eK3sSJCJnBXhMUt/RlLt2WfEVQMK CuXXQlFNY5efS8HohxUeBsBV8b09dlxXSHSiUAYNVKjsrzh8zM5xycnkmiDCiVpMtY7S faKT4M6wIXeYr/jV1HQ/je+EaR/cl8eqJLEOw4vn9h40ABU8wGAP5iQ0Nt2EG6BaLHD+ NpRD07jL8rSSjkhe/wxRH0cao+dYxeP+vdN/UJD6SnHHbS8i6j+tZrJE2y+oFVgiIJwY VhTOrVG6ZR+pBOCsQ0WcrS23xcA8b5ao6u1g6aoGqCfv001lQUsmm+krIhWg1nanA3eX D1hg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id i17si74252edg.2.2019.01.30.03.49.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 03:49:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Received: from [192.168.50.163] (d51A48A80.access.telenet.be [81.164.138.128]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id x0UBnRK5017700 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 30 Jan 2019 12:49:28 +0100 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: Date: Wed, 30 Jan 2019 12:49:28 +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-TUID: bItOeI0cQ9O2 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. When ran ci_build.sh -q -f build failed on known problem: | The lock file '/workspace/build/isar_mosipov_develop/17/build/downloads/base-apt/db/debian/lockfile' already exists. There might be another instance with the | same database dir running. To avoid locking overhead, only one process | can access the database at the same time. Do not delete the lock file unless | you are sure no other version is still running! | There have been errors! See log: http://isar-build.org:8080/job/isar_mosipov_develop/17/console Investigating the problem. 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