From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6518759238035046400 X-Received: by 10.107.32.85 with SMTP id g82mr33112984iog.48.1517766909512; Sun, 04 Feb 2018 09:55:09 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.107.9.146 with SMTP id 18ls1340357ioj.5.gmail; Sun, 04 Feb 2018 09:55:09 -0800 (PST) X-Google-Smtp-Source: AH8x225FeJpteZn1m+4JOaAx37s+jwepcPq7Plvpmn/YYlqHA7EmFbV+IdqP+G6ekYUbw1GlV230 X-Received: by 10.107.180.74 with SMTP id d71mr32950837iof.122.1517766909003; Sun, 04 Feb 2018 09:55:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517766908; cv=none; d=google.com; s=arc-20160816; b=wEmIvHqdsu/zyrfHUy/Ixp+QDqCMFE/si7F2HOmH7MkqN7N9OEu/+8xErAbVGP+GBB +A36TJ2VFJ4jmGaMTP90RT6jEmVoWEztWx0ysmzqSzYC06Dc0X7auXKvoofYjVrWBF6G gYCTk1TJ2i0LhY18APupIkwrQ9R1sv44dXCrFFbIQBOy/8YBvws/yvyjfZkZ/VLnPp9G gxCZas9oy3m8TE36WV7V74ynJRrs1Lw7pfEp1i3g96B6ayA11WFT9Oxx+rtIN2wxAohr 7GO2X4kObDmd7BMZnoh5xyQo055QfUIDtTQSwvYAi3lHFz34XIZRywS0L/YU9HMadyPh YBsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Sn7o/KGZDa8U7heYhM7KNGDOa6xDZhD5uh1klUHn7MY=; b=glK86jEi9gT8IqQDTGXH2AnZQEQQm21k0drNR5FoyyPIJQnShzpzBkdsdtB7rmZf0Y /EgNQ3pi0hr8naeNXRexD92yK86WqEpXFxqRKJxkOmnFOx9fLvmkCK9nHtf35iZXCyXo oBfOc6yT8gyDQmfLAjsrXeloUHyjeoq/Ti4M9Rb9H8Anw9tTGo5V9nOXFYwLua1IeaVk vSCCM0VtZGXSs9/IyRJi2rTfsApIfwcKKdKdA5koPECN5iR1YOZ72y1z3ZPcP2TzIwxv dOWNTdY0mV9tizm7mNRbxLMGiqKQpsbOjT4yYgUv9A2MOtoqBQeN0P3QWf2Q0fQ5doI8 Z12Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com. [192.94.38.131]) by gmr-mx.google.com with ESMTPS id e185si355002itb.1.2018.02.04.09.55.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Feb 2018 09:55:08 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) client-ip=192.94.38.131; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-02.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1eiOVP-0005ba-VC from Cedric_Hombourger@mentor.com for isar-users@googlegroups.com; Sun, 04 Feb 2018 09:55:07 -0800 Received: from 3a23c91bf2ab.anacadf.mentorg.com (137.202.0.87) by svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Sun, 4 Feb 2018 17:55:04 +0000 From: To: CC: Cedric Hombourger Subject: [PATCH 0/5] support creation of a full repo for offline/reproducible builds Date: Sun, 4 Feb 2018 17:54:49 +0000 Message-ID: <20180204175454.220-1-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [137.202.0.87] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: YVzMlmk4F5w3 From: Cedric Hombourger The package repository created by isar using reprepro only includes packages by isar. To support offline/reproducible builds, this changeset adds a do_populate task to augment the repo with packages used during the build. The task may be used against the buildchroot and images recipes. It should be noted that isar currently assumes that the base distribution will provide both an -updates and security feed. This is certainly true for Debian but may not be the case for other distributions or when when using our own feed. Some rework may be needed if the isar-apt changes get merged first. Conceptually the implementation may not change much (as far as I can tell!) Please review and let me know if any rework is required. Cedric Hombourger (5): base: add populate_repo task to include distro packages to the repo meta: move reprepro handling code to its own class buildchroot: use reprepro to populate the full repo reprepro: create the -updates distribution multistrap: make the security feed optional .../recipes-core/images/files/distributions.in | 4 + .../recipes-core/images/files/multistrap.conf.in | 14 ++-- meta-isar/recipes-core/images/isar-image-base.bb | 86 ++++++++++++++++++++++ meta/classes/image.bbclass | 47 +----------- meta/classes/reprepro.bbclass | 52 +++++++++++++ meta/recipes-devtools/buildchroot/buildchroot.bb | 20 +++++ .../buildchroot/files/distributions.in | 7 ++ .../buildchroot/files/multistrap.conf.in | 10 +-- 8 files changed, 182 insertions(+), 58 deletions(-) create mode 100644 meta/classes/reprepro.bbclass create mode 100644 meta/recipes-devtools/buildchroot/files/distributions.in -- 2.11.0