From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6738433275490992128 X-Received: by 2002:a7b:ce08:: with SMTP id m8mr3688694wmc.106.1568913756262; Thu, 19 Sep 2019 10:22:36 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:c408:: with SMTP id v8ls1073771wrf.10.gmail; Thu, 19 Sep 2019 10:22:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzikkFWmPNzRAxuTaX0gGtuGmrPrZN0jgHIkfIpOfStN7g/tM65eij+8z1ABk0SeG3wzZIL X-Received: by 2002:a5d:4582:: with SMTP id p2mr8501705wrq.305.1568913755944; Thu, 19 Sep 2019 10:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568913755; cv=none; d=google.com; s=arc-20160816; b=x8LpWkTbDXXgjbGhD+8GkRb2V+XAcE1/sRuTxyHSlnCksmjkKNjW/juYrFs0HJK43q /cwwbtQVAR4PXoy0uinrE8pGYZ9GEsauauMmz4zzOKqSQBRbkkKr9u+DBkpgCZJJMkVs XBJediw60qlN8hZhmfxcAYt3ZRyDDBHOo0qaJETCe/2EK46gx/RU4Gp9+4AHVyRI/SGC fnhi/SlTVEVVB8hZGPQjy5eSQvRqnSKh9TM5TQTviWoLlhRPZyHmCOlUawHYzgOAq6fK x4mF6BJCpN2xCxXmzYl/pi4sF+sRvnn0mF5PES2wHYe+7nUhxrL4YcKFlDg3nwWGctTT g6pg== 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:date:subject:cc:to:from; bh=schpD/a+sMa1McKbFKEjcb2txpAe6KVUAIFfNI3Y5jk=; b=FWKo8W2Iv6bBqljy4WlAoTh15DsDnE64FWK6cj2A1ggshHMMVnFJryiDEgVJPEJXg7 lhYPGoG304xk0MEEKKRZB1GOTkYfiEOZJPr95kOQpsbARcDZupoNRZ0jVDYLmF/scwnU KTkHnWXWsyv6alf9BKf4hfDLkq2LW/JhHy9AHKUoveCLupDdGMTZhZIsG1d7O4UcGIGv PXk5OFhoRXieGx6/WauXllaxQ3qynrAX5QYt20bj77xJGcMii6ptBQT3lHMFiJ+UbB19 3Q1Fel6npec7HCvXyLFQKQ4XhY3vIk6SMw/p7xE8iwz7oOHpUIBGiCYjAimJ7+CpOpiG 0gig== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id u16si127006wmj.1.2019.09.19.10.22.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Sep 2019 10:22:35 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@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 henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id x8JHMZFW028805 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 19 Sep 2019 19:22:35 +0200 Received: from md1za8fc.ad001.siemens.net ([139.25.69.220]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x8JHMZ51014243; Thu, 19 Sep 2019 19:22:35 +0200 From: Henning Schild To: isar-users@googlegroups.com Cc: Henning Schild Subject: [PATCH 2/3] dpkg-base: ignore binary packages for "apt-get source" Date: Thu, 19 Sep 2019 19:22:33 +0200 Message-Id: <20190919172234.22447-3-henning.schild@siemens.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190919172234.22447-1-henning.schild@siemens.com> References: <20190919172234.22447-1-henning.schild@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: +csjbttZk4dW From: Henning Schild A buildchroot might already know the new/rebuild version of an upstream package as a binary coming from isar-apt. Now apt-get source will try to fetch that one instead of the upstream version that we rebuild to produce the new one. Not that ignoring binaries also means we loose the vague version matching, inform users about that. This problem can be seen in partial rebuild scenarios and the switch solves it, at least until we do not have sources in isar-apt. Signed-off-by: Henning Schild --- RECIPE-API-CHANGELOG.md | 7 +++++++ meta/classes/dpkg-base.bbclass | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md index bbef1a3..1f29eb2 100644 --- a/RECIPE-API-CHANGELOG.md +++ b/RECIPE-API-CHANGELOG.md @@ -149,6 +149,13 @@ default). Changes in v0.8 --------------- +### `apt://` SRC_URIs where added and briefly changed their version picking way + +Recipes that use SRC_URIs with `apt://` and choose a version with `=` had a +partial matching feature for a short time between 0.7 and 0.8. In 0.8 the +version has to be the exact upsteam match. +It is probably best to not specify a version if you can. + ### `isar-image.bbclass` class will be deprecated in future version of isar The content of `isar-image.bbclass` was moved to the `image.bbclass` file. diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-base.bbclass index 1deccd4..f77eb7b 100644 --- a/meta/classes/dpkg-base.bbclass +++ b/meta/classes/dpkg-base.bbclass @@ -34,8 +34,9 @@ do_apt_fetch() { -o Dir::Etc::SourceList="sources.list.d/isar-apt.list" \ -o Dir::Etc::SourceParts="-" \ -o APT::Get::List-Cleanup="0" + sudo -E chroot --userspec=$( id -u ):$( id -g ) ${BUILDCHROOT_DIR} \ - sh -c 'cd ${PP} && apt-get -y source ${SRC_APT}' + sh -c 'cd ${PP} && apt-get -y --only-source source ${SRC_APT}' dpkg_undo_mounts } -- 2.21.0