From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6458972999552860160 X-Received: by 10.28.213.12 with SMTP id m12mr291431wmg.14.1503846840731; Sun, 27 Aug 2017 08:14:00 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.178.75 with SMTP id b72ls874005wmf.27.canary-gmail; Sun, 27 Aug 2017 08:14:00 -0700 (PDT) X-Received: by 10.28.229.80 with SMTP id c77mr304652wmh.1.1503846840373; Sun, 27 Aug 2017 08:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503846840; cv=none; d=google.com; s=arc-20160816; b=bwdCAmYucETydzSrLcujKRIFQ5GcnVJ3ck9qL5vYoOOKh9IJdWZ3CA+9Teo62TTFDl S8UmSmbj9dvWlLH9R9pct3gs+iNxYbRDm2n9sZLOKikiFYj9FHnHTxNAIejnxGEnvyqJ ancq4NTOcJKfNVEp9HBdUAUbZO3gIIXlzIzgFnwHs6FHdNSPekRANpnoavKpFAOmUkgM E8nt2zBib3IRGJhm0hy9qVOt/BkvNrYbPhn1j+PfnClwCc6Z3bZRV+akEQ7hlHNxJ51w GfidlqqPjWnqYMi65V3thYwrWl95yyv9vnewTJ2Yr3lcrauBVk9ATwNvC3Yf36gKS/as afzA== 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=FdXKy4tJ/U6+CR0h4lnTp02fwRm+YqPzt/AZw0K+dtE=; b=vKjblkWcbd9zC+t2yI+ygd0rF8xPdGlar60gdaUfTXzvY618T+5huL0Zc3fRsmY8fS +posbis3UzB2e9inR9H+moW5KAEIl2/fP3ZSS+0rO0aSv7HdBDHfWowWPu2P4p+cxHlU D+4al7/rNRV548A/pj++b6djy0pzrZ914QkNeQ61jjeh7DCOCY9yp6HoHdaiPYS7nDxV Dv0u6Zr3bqh+DCZLvXqWCQlWvIieukn1xeApv6EAZW31OfG6oePjt8r0wm1Aq7TFisSg HpqX0Brcigdu82wph093rCBB07yg7w09qxwpkiD1BhI9+D7GNkycFexGACps6YQi6r5w 0zZg== 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 r68si260752wmd.0.2017.08.27.08.14.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Aug 2017 08:14:00 -0700 (PDT) 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 v7RFDkee006455 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 27 Aug 2017 17:13:52 +0200 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [PATCH 0/6] Isar apt cache implementation Date: Sun, 27 Aug 2017 18:13:33 +0300 Message-Id: <20170827151339.12806-1-asmirnov@ilbers.de> X-Mailer: git-send-email 2.9.4 X-TUID: Wj/Ftz/DtTIi Hello all, this is the first series that introduces apt caching feature. The full implementation can be found in branch: lenormf/develop-l20170602-dpkg-cross A few words about apt caching... The key idea is to have possibility to create custom apt repositories that could be published and shared between projects. So the packages are built once, repo is created and the repo is used for further builds. Also this repo could be used in already running systems via apt-get. Another requirement for this feature is to follow Debian way, so reprepro tool is used to manage binary cache. The binary repo is introduced as a separate layer what simplifies exporting of just-built repo and importing of existing repo. The whole implementation is split into two steps to simplify the review: 1. Basic apt implementation that allows to create binary cache. The feature is introduced as optional (could be enabled by variable DEBCACHE_ENABLED). 2. Support for binary cache importing, the feature becomes official and dpkg installation way is deprecated. Alexander Smirnov (2): classes/dpkg: Split install for cache doc/technical_overview: Describe binary cache Baurzhan Ismagulov (1): classes/image: Provide /dev/null for Stretch apt Frank Lenormand (3): meta-isar-bin: Enable caching of deb packages meta-isar-bin: Enable apt repo generation for amd64 classes/dpkg: Properly update packages in the cache doc/technical_overview.md | 59 ++++++- meta-isar-bin/conf/layer.conf | 18 +++ meta-isar-bin/files/distributions.in | 3 + meta-isar/conf/bblayers.conf.sample | 1 + .../images/files/debian-configscript.sh | 8 + .../images/files/raspbian-configscript.sh | 8 + meta-isar/recipes-core/images/isar-image-base.bb | 8 +- meta/classes/dpkg.bbclass | 174 ++++++++++++++++++++- meta/classes/image.bbclass | 41 +++-- .../buildchroot/files/configscript.sh | 1 + 10 files changed, 297 insertions(+), 24 deletions(-) create mode 100644 meta-isar-bin/conf/layer.conf create mode 100644 meta-isar-bin/files/distributions.in -- 2.1.4