From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6750925682511970304 X-Received: by 2002:a7b:cbc5:: with SMTP id n5mr7036791wmi.65.1571822371945; Wed, 23 Oct 2019 02:19:31 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:f707:: with SMTP id v7ls931441wmh.4.gmail; Wed, 23 Oct 2019 02:19:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwY4kc48mT3AMZ7MqtxMFiSaA6pUZC7hh5aeV3dA+N6xn+PkaqBbWzhlceJYm0FwnV+guWd X-Received: by 2002:a05:600c:1107:: with SMTP id b7mr7342598wma.151.1571822371371; Wed, 23 Oct 2019 02:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571822371; cv=none; d=google.com; s=arc-20160816; b=KfPWk+579lpCuL82MnuHk9g036j2qQqyqu8qFLWmv8hzRfnhpsfJIK6IRdaDW+sB9D QP7PWnsDDvoG6+T5kCHPdrDjkjCMjGSTFIYKxOBZ5EEFqSoWymNXS6tdg7xQgYlvpsoo Ta5Ddh38hdqxRU6f2bjBSdyrDkAIUVTC5CWC+vjIcvJY9P0pBXUYOMdJWHQiWeTr9yvo B75oj78IizupDFxcR9VMRDkOjpZE8lhbINUm1fFgeabWgmI27AQ/cVlHFtihe2J7zSq6 DCFQvwg7yPWRwiVKBhb6TIERlz3wnpBzRrOsKMevFbYY7kjiV+bM8JTyyUevFpZuzBfw omzQ== 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=kdmX9dwLyMXU3NsgzXLZSKyxomzDX74872kDVfbt0JM=; b=WTFl/QAVFrXk3N2nRj/aBlB8Kuc+8uXN+A9wVrt+Ju0gSKRUWvNRBjXuzKUmpoJKLu OAmtFweZJ1/RmKEBCvjOotp01Q9x4dM+3ebbJoFyQbJMxsqLiFQ4lMqc4+oPmD+MRsgT YKLJg+YZ52WERTLnlAou+yDW1mhnVOHfUuA02UyIUNfAHjK0Rp6Dc31LDv0E44a8KbBH ylPGMW7GpIpd7C57DaUvkHzFWzyQ3ql7fzdpa8ShSanrRI5G7C6pa1gLV8QD+SlZZsFw awknSVUGEBZTQCGSwbjoFT95FZ0LZtDIg+XcaUxyuzKfwU480eGVu5dbeyuo5Kx3cJBe KtiA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 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 goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id y140si177765wmd.0.2019.10.23.02.19.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Oct 2019 02:19:31 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id x9N9JUrP017299 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 23 Oct 2019 11:19:31 +0200 Received: from md1za8fc.ad001.siemens.net ([139.25.0.8]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x9N9JU24004871; Wed, 23 Oct 2019 11:19:30 +0200 From: Henning Schild To: isar-users@googlegroups.com Cc: Jan Kiszka , Henning Schild Subject: [PATCHv2 2/3] dpkg-base: ignore binary packages for "apt-get source" Date: Wed, 23 Oct 2019 11:19:28 +0200 Message-Id: <20191023091929.21562-3-henning.schild@siemens.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191023091929.21562-1-henning.schild@siemens.com> References: <20191023091929.21562-1-henning.schild@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: v63KLP0HKWRk 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 have sources in isar-apt. Having sources there, the best idea would probably be to choose the exact upstream version to rebuild, to not find our own in an incremental build. 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 ff85146..1478a17 100644 --- a/meta/classes/dpkg-base.bbclass +++ b/meta/classes/dpkg-base.bbclass @@ -35,8 +35,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.23.0