From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6558372643829972992 X-Received: by 2002:a2e:94c7:: with SMTP id r7-v6mr456892ljh.11.1527177637400; Thu, 24 May 2018 09:00:37 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:c502:: with SMTP id w2-v6ls1073806lfe.4.gmail; Thu, 24 May 2018 09:00:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrsoiJYMZX+teb3W0NQhsa1E2WMYA0h0D26wojYBnAGyHwY6fbVy6EpralvpX6ySr4Txi0B X-Received: by 2002:a19:7907:: with SMTP id u7-v6mr350838lfc.33.1527177634990; Thu, 24 May 2018 09:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527177634; cv=none; d=google.com; s=arc-20160816; b=i+evEwMPasA7mJjiCqQTy7nVEo/ZSBrW360Y3dPSoEynb+uzFKunqfy0UDBpR2Zxx+ gHoNoEsUz3kAyk9mgka2ppvKQgtVXHCUwqO1dm4LJ5m60g7tQtUVdq17AvS+VAkV02J5 SPe62KosFRbpfWmFNfXsC9xIXjLizJBNqqhmSb3Ea3Rkbp6soMWRTW5U1HLl1d34/6+y z5/4uVOE3sbhL57cxbCGiJ6lrztPmWq/BmvSjavoiB203/5MU21LOXod/GEoEN/0hVI6 SDfUJur5e2ixrnm++WDmdk0G6/pDUiwLVF8LYUacoIAs6bpP7Ru5O7tw9d2viFQilcJS ESOw== 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:subject:cc:to:from:date:arc-authentication-results; bh=UGhMvdA8OPhnmjjXhXtEPApe/KNJlYMRwNF1EcD6CzU=; b=TuO4jWJL5ml/dlueLzs0ccHlxp7ZTarSEslLdRUllzQ80sWx6X0A6okWPG6l8xqqjr 6luRtGUpz1VNC3GKD+bF18X1Ij2gF6dhEDBoYYwK8E1JqKAPmV9upawOqmSDEMFYD0Wx PY3TnWCP/xY2kOoCO7GGu+HuN7et8xdxvEjSM0tW6q9T3lhvL98DQxi41QPDeSZO3YRQ 8fleJr7wbmYU8R7D4ghLBd9x0MyrZGRkBoG0wLtooxi/MTZrqhHvDVP7pcEXX92+I+oP MOsoO+Uk1zUSvqjKHQ8yyIMLdevA6qJLldWYS2jE1/hsmR+/N9L4smJz93UFoaJgJqdQ N3AA== 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 Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id j8-v6si951463ljh.3.2018.05.24.09.00.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 09:00:34 -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 Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id w4OG0W4F016963 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 May 2018 18:00:33 +0200 Received: from md1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id w4OG0Sa9007622; Thu, 24 May 2018 18:00:28 +0200 Date: Thu, 24 May 2018 18:00:27 +0200 From: Henning Schild To: "[ext] claudius.heine.ext@siemens.com" Cc: , Claudius Heine Subject: Re: [RFC PATCH 0/3] Reproducible build Message-ID: <20180524180027.09b7b880@md1pvb1c.ad001.siemens.net> In-Reply-To: <20180523063206.29180-1-claudius.heine.ext@siemens.com> References: <3467a5ec-182e-8c9a-cd19-7ad898323be7@siemens.com> <20180523063206.29180-1-claudius.heine.ext@siemens.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: ZVo55XJri9fd Am Wed, 23 May 2018 08:32:03 +0200 schrieb "[ext] claudius.heine.ext@siemens.com" : > 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. I did not look at the patches yet. And because it sounds so simple my first reaction is that it can not be complete. One thing we will need for sure is the sources that lead to the packages we built ourselfs, otherwise we can not rebuild them later on. And that seems to be a tricky part, not covered by stealing the cache. Maybe stealing the DLDIR of bitbake as well? > 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. Are you sure that "apt-get clean" is the only reason for cache eviction? What will happen if i install a ton of packages, not that apt will want to safe space at some point. Henning > 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(-) >