From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6558372643829972992 X-Received: by 2002:a0c:9893:: with SMTP id f19-v6mr1555087qvd.57.1527087020684; Wed, 23 May 2018 07:50:20 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac8:2ec5:: with SMTP id i5-v6ls10007243qta.1.gmail; Wed, 23 May 2018 07:50:20 -0700 (PDT) X-Received: by 2002:ac8:548:: with SMTP id c8-v6mr1671339qth.14.1527087020361; Wed, 23 May 2018 07:50:20 -0700 (PDT) Received: by 2002:a37:4d4f:0:0:0:0:0 with SMTP id a76-v6msqkb; Wed, 23 May 2018 07:30:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoYkiUs+5dglli6IRKFPuc5kuM6+y8xhxmKaBOCVDcJ1yPffl5shjUw+h5Iw2lTLdCR4hO2 X-Received: by 2002:adf:e544:: with SMTP id z4-v6mr316962wrm.6.1527085856945; Wed, 23 May 2018 07:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527085856; cv=none; d=google.com; s=arc-20160816; b=MY6tLIHa1t3Gq4qLwTSwMjIue3vgWtFalp+dp3sCbbxyheQhEtVnzM/CzMquHSm2bG Ll1qcWekN4+GLm6lXSfjP2Yfup2PG3aJZhwYUn0YiFJRzlQVUa66Qy1DxbT0N+fbiWCH folRJk90ZhyLp5gNcfg9g7utvUXe6yU/3IMXahrM3qArl24wqUSgJCcwagqLRQCOFUgx ccPyAIy9w2pfPKR4jSQT4PVF1ZZAN2m+k625EdBGJjZU8XK/BX1eYPvU2cTLrwkX3RX/ I0TKriMR21DOcJLWWU2shCklntHcKwFE/E8lkkOtzTaZF0GNPw3PS1ZV1uGxcEMRuZ48 GYgw== 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:cc:to :subject:arc-authentication-results; bh=pfutRRdxyFaG9Dbpfk4Ru8fYFe+AUp6NLKaT7SF+egs=; b=gwX1OdpSA2VqMI/2z8bkv4FSlos0HUHm4T7BlEsecoIBlOj9NU5qZEQLYHNInxQtyw nr2Yr5rImBjnm+e2bvyGMZYkGmSDUmidw/6mtxQrAgpSt2miNSX2p3AWKyP25qFnWd4y josO+p8R/bbeQGPgqIyb5H36OjEGDHuNvHt0aGoPAGkGUR13/oe5+4v4Qt03WvJist1K GK7ok1czWb1nyQV60TOQd4STI9lFmCpGreGG+XV95+412G3uhwyTwqCR5UJZLq33LbJY /gKzpUWRQykMDKcxQ0qXoL9Ng2jLHYv37KOmfgr70RoMBBDpH0aF3vDSABC1717qmzLy zHNQ== 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 v3-v6si60067wmh.0.2018.05.23.07.30.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 07:30:56 -0700 (PDT) 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 w4NEUrll007904 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 23 May 2018 16:30:54 +0200 Subject: Re: [RFC PATCH 0/3] Reproducible build To: claudius.heine.ext@siemens.com, isar-users@googlegroups.com Cc: Claudius Heine References: <3467a5ec-182e-8c9a-cd19-7ad898323be7@siemens.com> <20180523063206.29180-1-claudius.heine.ext@siemens.com> From: "Maxim Yu. Osipov" Organization: ilbers GmbH Message-ID: Date: Wed, 23 May 2018 16:30:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180523063206.29180-1-claudius.heine.ext@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: T1iGne+7AP4G Hi Claudius, I've looked through discussion thread. As far as I understood with the proposed approach we don't have the ability to reproduce this tarball - it contains some unversioned snapshot of isar-bootstrap rootfs, containing unversioned snapshot of debian's packages cache used to create rootfs. It's fine if you just want to reproduce locally the current build from the scratch in your sandbox by avoiding debootstrap stage (fetching again packages, etc). Do you have another use-case scenario in mind? F.e. to share this tarball with other developers (linked to particular version of isar tree) so they can fully reproduce the build? If yes, how do you plan to version/manage such growing list of tarballs? As it was mentioned in the discussion, upgrading one package from debian repo will result to other tarball. Kind regards, Maxim. On 05/23/2018 08:32 AM, claudius.heine.ext@siemens.com wrote: > From: Claudius Heine > > Hi, > > this patchset contains a implementation of my proposed solution for > reproducible builds. > > I am currenlty not quite sure if that is the right approach, but it is > the simplest I can think of currently. > > As already described in my proposal, this patchset does the following: > > 1. Takes care that the package cache in the isar-bootstrap root file > system contains all the packages used for this distro/architecture. > 2. A tarball is created after the package cache contains all the > packages needed by the image. > 3. This tarball can be used as the basis of subsequent builds by > setting a bitbake variable. > > This is just a first draft of this feature, maybe we can further improve > some steps and maybe there are better ideas to improve the usability. > > Cheers, > Claudius > > Claudius Heine (3): > meta/isar-bootstrap-helper+dpkg.bbclass: bind mount > /var/cache/apt/archives > meta/classes/image: added isar_bootstrap_tarball task > meta/isar-bootstrap: add 'do_restore_from_tarball' task > > meta/classes/dpkg.bbclass | 5 ++++ > meta/classes/image.bbclass | 10 +++++++ > meta/classes/isar-bootstrap-helper.bbclass | 9 ++++++- > .../isar-bootstrap/isar-bootstrap.bb | 27 ++++++++++++++++++- > 4 files changed, 49 insertions(+), 2 deletions(-) > -- 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