From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6558372643829972992 X-Received: by 2002:a50:9959:: with SMTP id l25-v6mr472698edb.4.1526990123040; Tue, 22 May 2018 04:55:23 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a50:c9c2:: with SMTP id c2-v6ls9220927edi.4.gmail; Tue, 22 May 2018 04:55:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqSM9zlFecB7MHC81OvyDtKnDKym6+U9o7UeDe5+6EZeqeqVpUcsnA/RL81Ai4avxDFb/cL X-Received: by 2002:a50:e619:: with SMTP id y25-v6mr475965edm.0.1526990122664; Tue, 22 May 2018 04:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526990122; cv=none; d=google.com; s=arc-20160816; b=a4AfiagU/rZORiYf1ZNOj2e5oZxxxmVmDveXnQ1cP2/gu5gRRpWFoJpuGt77kfalzU OI5MVtrTEY9zj6CC/Aaf1w1X3tKdzK1YQoIzSDB9TSizdD4cf91id2DFQ76ZH/Sj5Jz9 fcPbfn/j8d6lHlaQbzRzbSnH+j1Ngtuo6rtyYxuIrf2UqmKP4UyVkfSC5ADM6/ClXNiC wLKyUbtD4i5JhHpGCe3IJjwfp3VxGvXgxyaKYxQ3pDPaceu2NHKDFr+InlwCs8s9xC9q DLHQXwY0C0myupxJF1giooEkHh5pwpupPHi1MFBq1fvKe0DvO53CguzSuXclIzdAbEPn jfSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version:user-agent :date:message-id:subject:from:to:arc-authentication-results; bh=1FncRXYX2CSEVDRHTr5V0P4aBgYZwPwKm/sqGeJlMek=; b=0IKXSu5QCG4aFBDA/eylXM51e4fno4ONKHwtA18PpGNgoq/mvCXlbJIAGlzDsvJ+lP A0vqkxHCV1iGt51umV38Y+D/3ZL9LvbNW/xLksljjDZeQ5vVUcRIv2KnLUSgzv5lPyYG utGZnqdSRwvhz3fyUt2o7C3S6XsC+lJKtyEmSPbkp43rQAVnB2S2Ddj93ZNBAsl03gtX ydvIwalG8YMZpeTsOkqQW2wGuvHZfoAwvyhBauT7wWZb9NDA9rsW+hvgXfm67vRp8vRm y/BPokiqndX0VQIxGGpnblCT3/h6ca4d1yjxuLNJmWcEb8CcQLa5+TOyFSEFO5IXIZ1N PaGA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id z2-v6si655928edq.2.2018.05.22.04.55.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 04:55:22 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id w4MBtM30014568 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 22 May 2018 13:55:22 +0200 Received: from [139.25.69.69] (linux-ses-ext02.ppmd.siemens.net [139.25.69.69]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id w4MBtLqA022971 for ; Tue, 22 May 2018 13:55:21 +0200 To: isar-users From: Claudius Heine Subject: Idea for implementing reproducible builds Message-ID: <3467a5ec-182e-8c9a-cd19-7ad898323be7@siemens.com> Date: Tue, 22 May 2018 13:55:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 0RxPG0Liy/LX Hi, I am still working on reproducible builds and here is my current idea to solve this. Simple put: Mount the /var/cache/apt/archives of the images and buildchroot to the isar-bootstrap root file system and then create a tarball of it. This way we have a tarball of the build just after debootstrap + upgrade with the one 'apt update' step done, but without any other changes to it and all used packages already in the apt package cache. When restoring just skip most of the isar-bootstrap steps and extract the tarball instead, since the packages are available in the package cache and the package index is not updated it will use the packages from the cache. This way we would side step the obstacle to make debootstrap reproducible by just using its product while the reset of the process can be redone by isar. Is this solution enough? Or are you seeing any problem with this approach? Claudius -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de