From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6738433275490992128 X-Received: by 2002:a17:906:eb86:: with SMTP id mh6mr14691986ejb.171.1568914662963; Thu, 19 Sep 2019 10:37:42 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a50:ac7b:: with SMTP id w56ls1091487edc.16.gmail; Thu, 19 Sep 2019 10:37:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1OtFHOU39SUzODlRlsoPriXAj3nANgbDCwB4e1m3Bp+WxCrfYTyGKnER2HSsFY1TOZDTN X-Received: by 2002:aa7:c749:: with SMTP id c9mr17508633eds.232.1568914662328; Thu, 19 Sep 2019 10:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568914662; cv=none; d=google.com; s=arc-20160816; b=xt81/R9eC7WR4MLH4pLVlaT9DX5ZqaIoFRTQheVFMR8yAdUEAQJl4j+l4Hp0KhtJ0t hRswePKs+7vwabozgq3HB3nxywga6eFP+haQWte/wt4bMSXF+Emkb5kBF9+Fz96OL4Pq nFq4xLBXzLIR9/FKrhVBqUlA1/U36aTgVW4R2eFruyexHpPVYnwgUbh6yPKFm1GWKuTE 6p8OFDE6mBzLivWpgmtEQY9KlfjuBfLSOvFACL3LyVFIqN6FET8OpSgKbqSFVHawTBGm gOmynFaKy6KwCBuH1kVp0K0kHYm8VCBBWp98bIgTsQVXCVIKkoKgMKbAcs8zKY9Q0Csh XNeA== 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:from:references:to:subject; bh=JNz0IyvH+JJsUblDsyBXdn5AZwI4FTZvjOZrzf1WLjw=; b=tkiotZLqRq10eZd36PRpfHReQdmZ33N2eHQZ/RDud8mWn8un6Qy7PSf0iJh/BZU5/q oRLLtwQc1EzW2wMmRpEYuJ4Lhs/m8r2CBVqZ5vTps2h/g2cXyT4kQMR3+iIeFN+C8ZCB ESVOkjpgMKKUBnSy/9q/ImHFcDIGNBoTHVbdBKpezJ/2ingKleyl03zEihejJ2LraD59 PERpmhDylgb1Ek0EIA15X0BppmwqykKnZ63gIanmGblDmgX07jT9rnAZF3JQjr/k6pIP KU0DZ+daoNzLzE7R0dw/a/jlB4RXyMWuUaNIWWbTrjhUVcEr/fhTGwvlYjy1OJ/1FMku CPSw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=jan.kiszka@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 r3si681127eds.2.2019.09.19.10.37.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Sep 2019 10:37:42 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@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 jan.kiszka@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=jan.kiszka@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 goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id x8JHbf6H024905 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 19 Sep 2019 19:37:41 +0200 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x8JHbfEr029946; Thu, 19 Sep 2019 19:37:41 +0200 Subject: Re: [PATCH 2/3] dpkg-base: ignore binary packages for "apt-get source" To: "[ext] Henning Schild" , isar-users@googlegroups.com References: <20190919172234.22447-1-henning.schild@siemens.com> <20190919172234.22447-3-henning.schild@siemens.com> From: Jan Kiszka Message-ID: <81482c49-ff4e-5610-b65f-f5039a5cefba@siemens.com> Date: Thu, 19 Sep 2019 19:37:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190919172234.22447-3-henning.schild@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: IqNY+PywDIqE On 19.09.19 19:22, [ext] Henning Schild wrote: > 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. "until we have" > > 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 > } > > Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux