From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6558372643829972992 X-Received: by 2002:a2e:8357:: with SMTP id l23-v6mr71880ljh.4.1527057163121; Tue, 22 May 2018 23:32:43 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:5511:: with SMTP id n17-v6ls28572lfe.6.gmail; Tue, 22 May 2018 23:32:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrcUAVbdySJZh/ZTQa5eSzE0RkA+vr1jOsJ+UuhZY4SEbKV5uObU7mwlmVJbeuOPcr6hmxX X-Received: by 2002:a19:d7d8:: with SMTP id q85-v6mr81310lfi.24.1527057162477; Tue, 22 May 2018 23:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527057162; cv=none; d=google.com; s=arc-20160816; b=ESgo1xz38EHzBAit6fBK7qswHXxfnIB0zkgkh14AKMc2jzD1Sw4a+UrCtOZXMKOtpe lLazq376/RSwOOfaJg/9Oy6cDhC100sj60/xlgNGoCbJ5fewtoOr6A1orxto++3h6n4D gjPDvm0PEB3NiPKyBFvwlEGE/mOcTsH+aeOaZXeenXWXNIW38flXRfknHbbB2StMHkQP NJz/sc1VU+bQH4xFqzgI67doXw0Ygd5paOIw+7dLjeejEW8Tk1lYiBfBYb0Z1em5hETh rCADgFO4S/bwRNSZ0UOeXFMYqgXFtn6BgCVLDhzuRXeTaPs8AV4Yvj+FVN/MBD7NbdyN kNEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:message-id:date:subject:cc:to:from :arc-authentication-results; bh=IA2D3tuMOTE5n5opOIMUXuafFbGmgMnQVhCCmB2VTWY=; b=P/vovgm3jgnwyQHkQn3Np7r5FXjga3OsGtlfF8ZcooTNzJ+g4Pn5Be02qHQgIqw+0Y hVxBkbKUoxvtF0HhzNeLONOo5MPetWd/WPR+iCXHJkd2ekXjLByEHE9ykmByMBBI0Pmk LxevntvTzuxBr47wY0TYH97o5dpYOGmX2aEJudu9ds4jhuN/wGQn1CvKsL8CJxDFOfgT ZIubOK/qkuPeMecvF9ytyFYdT4ik9xnDFSy34QeKFT3XvZGgoHcn4f89e5T8Ny7ILAJ+ Q/6U32yhZ8N5h9/Mx2VBjENv9J4VyEHZiiTuWlPQiFD8AYzDZeo79LdgXsvVbodYumW6 vm4g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id x13-v6si904351ljh.5.2018.05.22.23.32.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 23:32:42 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id w4N6Wf7R026214 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 May 2018 08:32:41 +0200 Received: from ring.ppmd.siemens.net (linux-ses-ext02.ppmd.siemens.net [139.25.69.69]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id w4N6Wfgt031123; Wed, 23 May 2018 08:32:41 +0200 From: claudius.heine.ext@siemens.com To: isar-users@googlegroups.com Cc: Claudius Heine Subject: [RFC PATCH 0/3] Reproducible build Date: Wed, 23 May 2018 08:32:03 +0200 Message-Id: <20180523063206.29180-1-claudius.heine.ext@siemens.com> X-Mailer: git-send-email 2.17.0 References: <3467a5ec-182e-8c9a-cd19-7ad898323be7@siemens.com> In-Reply-To: <3467a5ec-182e-8c9a-cd19-7ad898323be7@siemens.com> X-TUID: BVJy8jNMSpBX 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(-) -- 2.17.0