From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6509751388101148672 X-Received: by 10.25.26.82 with SMTP id a79mr1163114lfa.26.1515669605669; Thu, 11 Jan 2018 03:20:05 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.22.21 with SMTP id w21ls1153247ljd.12.gmail; Thu, 11 Jan 2018 03:20:05 -0800 (PST) X-Google-Smtp-Source: ACJfBovCrh8ZVWOZ4cbj9ItwKPtGsd7yRWtQTkp1FjhTKKZZSHHMAgwel7cw9bhFEvhnl0StFHZC X-Received: by 10.46.122.17 with SMTP id v17mr1618633ljc.18.1515669605359; Thu, 11 Jan 2018 03:20:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515669605; cv=none; d=google.com; s=arc-20160816; b=Zjgpr1guKHe2yD3sbC5nyDjyqFuBqemiIbAbyDYaB6edbOe72RQ6lRAiRlotRdQNn2 VADCTrJiPWyCmnr2Xctizg/YmEMMs0Z3mGTHcgT/BKnYZg67Q+tU/b7aRrqvlUiQa3Vv 2BnYgL6PP+Ar0lypJIYGi85GSdJKTEerpvZFzB4rZAkfQMcFo7ztjnj5pu+bLtIUXBCk wUUXZ/qkIJVa4lj01PmXloHk+ThwAUIWuKwtYlpdFxfEGhCoPMMyA7KjRJrRbgffWyVR NVZPxOithI1Finfnv+T8C3C2sUg5aLaRriQ+Q5NECJGdk94fSYeXJADMLLCKwkB2kXb3 pmtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=01wIIzwE+7nNDu5/zYnitzNcIwAn9cV9DxSXFAaX3I4=; b=oPkedEyi6D8AGRQPm5F/TfOf6cQ7Ex2SUPXSLj/8AbdZDE5Hutv8pZy/0artHJT3zZ 0qzmpl2zDHDpk66PqodzONkvMIuY8jbwOIVYRtamiaoOh4RWG/ESsBmzaUl/Y8p75Eg0 Lwcl7//M13xwqhfvirjGTcXYZjQMOxseqCsp96YF0GDdOaWIIx1bfDseMYmEpSFAQTGH sVy4b6FH6SqTds2VrgBXAzYW0H9KlvdC6W8Qr6r16UL/FRyiHxC1a16hlin3a+0OmEGG MPs6N4PhA+oZjpU+OvKpVtD69YU8xEoQCSpwQdshtpfXui9vbzc0/W76UiIbTIJrgg8i RH2w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id c72si2095181lfh.5.2018.01.11.03.20.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jan 2018 03:20:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@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 asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from localhost.localdomain ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w0BBJkja018555 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Jan 2018 12:19:53 +0100 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [RFC v2][PATCH 0/3] Introduce base-apt Date: Thu, 11 Jan 2018 14:19:36 +0300 Message-Id: <20180111111939.25667-1-asmirnov@ilbers.de> X-Mailer: git-send-email 2.9.5 X-TUID: +VAzpKKfLGTj Hello everybody, first of all, to avoid unnecessary effort I've diced to split build reproducibility feature into two parts: - base-apt creation - switch Isar to base-apt So this series introduces base-apt only. If set ISAR_BUILD_REP = "1", Isar creates base-apt repository that contains debs for all possible build targets within current tree. Special notes: - To derive dependencies, I've added DEBIAN_DEPENDS variable which duplicates 'debian/control' content. IMHO this is the best compromise for now. - I use multistrap to fetch debs, I haven't found for now any other tool that could fetch debs from multiple sources. The issue is that multistrap doesn't understand 'debian/control' format, so perl parsing is used. Alexander Smirnov (3): dpkg-base: Make DEBIAN_DEPENDS global build-rep: Add helper class base-apt: Introduce fetching upstream apt meta-isar/conf/local.conf.sample | 6 ++ meta-isar/recipes-app/hello/hello.bb | 2 + meta/classes/build-rep.bbclass | 32 ++++++++ meta/classes/dpkg-base.bbclass | 4 + meta/classes/dpkg-raw.bbclass | 1 - meta/classes/image.bbclass | 2 + meta/conf/isar-bitbake.conf | 2 + meta/recipes-devtools/base-apt/base-apt.bb | 95 ++++++++++++++++++++++ .../base-apt/files/distributions.in | 3 + .../base-apt/files/multistrap.conf.in | 28 +++++++ meta/recipes-devtools/buildchroot/buildchroot.bb | 10 +++ 11 files changed, 184 insertions(+), 1 deletion(-) create mode 100644 meta/classes/build-rep.bbclass create mode 100644 meta/recipes-devtools/base-apt/base-apt.bb create mode 100644 meta/recipes-devtools/base-apt/files/distributions.in create mode 100644 meta/recipes-devtools/base-apt/files/multistrap.conf.in -- 2.1.4