From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6656673633724792832 X-Received: by 2002:a1c:dc82:: with SMTP id t124mr1537410wmg.0.1550499409271; Mon, 18 Feb 2019 06:16:49 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:8b85:: with SMTP id o5ls2714804wra.4.gmail; Mon, 18 Feb 2019 06:16:48 -0800 (PST) X-Google-Smtp-Source: AHgI3IYmVKyfo0NSpzfeAQdwpLv1YOyDecXl1BOCGXePYH1ynJrxt/FXmHwzGbEZcB/k/D4iyPFx X-Received: by 2002:a05:6000:1ce:: with SMTP id t14mr988533wrx.29.1550499408832; Mon, 18 Feb 2019 06:16:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550499408; cv=none; d=google.com; s=arc-20160816; b=JxTybx+RSatHo/W1xLYfLFb4Ml1YFB7pmz3ix9Xrm3gRiR8YNxU+6TbAw2KmqmnGvi UBZK+TgyCXmhDcuPuVprkWH7aGNEd7d+I14hUG7VvdNBuPNBP+aYSGX3GSZ1wwAix61H 0fq91a5e8enhwjtmm3HOkO8FBpqUAI3rz8TIevpYAyugio5kixTnGWPZWgGzMjyxlUWN Si3dV0IQp+W4wXDCa9YTrHrknPPveRfMstdD81z319WKQiX5ezvtzHhZTr6rL95kjn2i wDeX3YrXmk2hUAp3StNCkNAVa20AXv3Mok+KI4s1n6IZWTf1kcKXx8qPzLrhNTuHkY9L oyIg== 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=fWewem5MmUgcu8VLldK4Ns8nPz3IOBdhWI16VJRtJHc=; b=jRizhzcx0zEarZmijvR5kan9BDDZRcffmAc7QGvBdD9jOrs+5trthU1ygL4HQrzNTy P37qpC38+RA4oRjDOYbhYAxW5ij/I1hYyUYC92rSP+ie5edVplGSmhwjgHpSyGrBiGyX VN9uHKAEgs30Mwv1Yfghje8v9nwEXK2Cw3YrighrdE1XEedGlJ2s5xLlCvBsTH38RN/s Q1lkR5lkzJ1m39RPIGtz9FX1FhmBEB8t/eDQmuuqcTxkzz1XZd9eDVJ10QU5RN4hn9qp jlQB8Ucr65302oJdYssvwhLgHfwXvILwA3V8t4HVTEycFcsovds2KeBKzMNSGyTdoTbk m8NQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of mosipov@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id y6si540607wmd.1.2019.02.18.06.16.48 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Feb 2019 06:16:48 -0800 (PST) Received-SPF: pass (google.com: domain of mosipov@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of mosipov@ilbers.de designates 85.214.156.166 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 shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id x1IEGlSA014164 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Feb 2019 15:16:47 +0100 Subject: Re: [PATCH] dpkg-base: apt-get "update" before "source" To: chombourger@gmail.com, isar-users References: <20190211093324.1444-1-henning.schild@siemens.com> <20190211103526.3d92babf@md1za8fc.ad001.siemens.net> <0ff54328-5b30-e645-619e-0eaac9c184b5@siemens.com> From: "Maxim Yu. Osipov" Organization: ilbers GmbH Message-ID: Date: Mon, 18 Feb 2019 15:16:52 +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: 8bit 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: 7l2egG6LdLBv Hi Cedric, Any updates on this topic? Thanks, Maxim. On 2/11/19 2:33 PM, chombourger@gmail.com wrote: > Hi Jan, > > Will need to recheck things here but there should be no .list files > referencing public repos when building from the local apt cache (and > therefore when you are wanting a reproducible build) > My local patch essentially does a full apt-get update but I now need to > check if I did not alter the expected behavior :) > > Cedric > > On Monday, February 11, 2019 at 1:53:09 PM UTC+1, Jan Kiszka wrote: > > On 11.02.19 10:35, [ext] Henning Schild wrote: > > Here i see an often repeating pattern. That "apt-get update" is now > > present in many entry points to the buildchroot. > > I guess we should factor it out and put it into a central place. And > > the rule of thumb probably is ... whenever you use anything apt, > > apt-get update before you do ... > > If you are only talking about updating our locally maintained repo > (like below), > that is fine to factor out and reuse. However, we must not update > against public > repos after the initial pulling, in order to ensure we have a > consistent package > set along the whole build. > > Jan > > > > > Henning > > > > Am Mon, 11 Feb 2019 10:33:24 +0100 > > schrieb Henning Schild >: > > > >> From: Henning Schild > > >> > >> When rebuilding we can run into an inconsistent view where > buildchroot > >> assumes it could download the sources of a modified upstream > package. > >> After a "reprepro ... remove" we always need to "apt-get update" to > >> not operate on an old version of the metadata. > >> > >> Signed-off-by: Henning Schild > > >> --- > >>   meta/classes/dpkg-base.bbclass | 4 ++++ > >>   1 file changed, 4 insertions(+) > >> > >> diff --git a/meta/classes/dpkg-base.bbclass > >> b/meta/classes/dpkg-base.bbclass index 175dc80..5425df8 100644 > >> --- a/meta/classes/dpkg-base.bbclass > >> +++ b/meta/classes/dpkg-base.bbclass > >> @@ -31,6 +31,10 @@ do_apt_fetch() { > >>           fi > >>           dpkg_do_mounts > >>           E="${@ bb.utils.export_proxies(d)}" > >> +        sudo -E chroot ${BUILDCHROOT_DIR} /usr/bin/apt-get > update \ > >> +                -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}' > >>           dpkg_undo_mounts > > > > -- > Siemens AG, Corporate Technology, CT RDA IOT SES-DE > Corporate Competence Center Embedded Linux > > -- > You received this message because you are subscribed to the Google > Groups "isar-users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to isar-users+unsubscribe@googlegroups.com > . > To post to this group, send email to isar-users@googlegroups.com > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/isar-users/b9ca5913-f1be-441d-9e2c-3304bc6c5868%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. -- 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