From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6473366578589073408 X-Received: by 10.28.47.197 with SMTP id v188mr2480121wmv.23.1507203847293; Thu, 05 Oct 2017 04:44:07 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.223.161.79 with SMTP id r15ls915292wrr.9.gmail; Thu, 05 Oct 2017 04:44:07 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDe7+3xpQpWq3ADplHDhyx5AQsCJjdpY3ptcJp4zt6aT+Z4rtxC3HcDQoBS9hmzRnPMQeB7 X-Received: by 10.223.169.144 with SMTP id b16mr2436566wrd.26.1507203847039; Thu, 05 Oct 2017 04:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507203847; cv=none; d=google.com; s=arc-20160816; b=PT+Zmk0aNa/kSa2+0iovCtQq/dlb1lb+YcBo+5bHu7HYhp+hmYtKLspErUx9n8Gs2s UfKCD1QujpvT7V2gkqxWJQU6r3Zmwn2gS0UbDRHumWv647ypfvYEqhzyXDtCgr9pPvPL u6zIlft5jwrvzuO5NBRWup5XUsVn/3eqEz9I77ABrUclnYoVnXK90UHGb0a30PfHAULU +AI+1sqO+M1TMXix81MogjFml/8MsNMbmQ3RF6RYvXKCh69hN8XlpdOFrqrVg5UEMxyp 9TFQJjzOGpTT44HRfAed7ZIDXimD1FQkz89J446dS2tCR+K1cmVBujllgeIjU7PftA2p YLdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=ANLrIBaa+5W6++zlAvx37tVIR87W0DME6HGzu2BIg5o=; b=hBQcyU1spPOXu/Js9ebN8b7/x7huktigorET3V0OPuYvgA0TTaB20LW9cDadIH2k0s 6UfXYtQPsRil0aWfaevezpvDd64FhQrzkMzEvmYJhuRwNDZa8ec6iEnR1xCC58tjBN7E Sb4VP7qb4o1rH1T+7rUO6/65gnph82wV5BUl8iviOITlAnbCOKGDzelXhxkB+iIEIbQh dfgrHmgXTa2M9VRk3aOjy/MzaiomldQY98hECyrV3j3KvjwPSgozjlxdHpuiFqsvVDxa YligwV233PbOVf5aQ4nksaIdlhu3ZHKSTVAurmF+98dlwYNVDr7oTNTBXNf1lMKwIbxS lXcw== 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 m74si1309282wma.0.2017.10.05.04.44.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Oct 2017 04:44:06 -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 [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id v95Bi3Jv004231 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 5 Oct 2017 13:44:05 +0200 Subject: Re: [PATCH 1/4] apt: Generate configs for apt To: Claudius Heine , isar-users@googlegroups.com References: <20171005100807.3369-1-asmirnov@ilbers.de> <20171005100807.3369-2-asmirnov@ilbers.de> <9e154cd2-72ee-fc8a-48c9-6ce295209ff0@siemens.com> From: Alexander Smirnov Message-ID: Date: Thu, 5 Oct 2017 14:43:58 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <9e154cd2-72ee-fc8a-48c9-6ce295209ff0@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 3jr+Hqj+cdP1 On 10/05/2017 02:14 PM, Claudius Heine wrote: > Hi, > > On 10/05/2017 12:08 PM, Alexander Smirnov wrote: >> Generate reprepro configuration files for apt deployment. >> >> Signed-off-by: Alexander Smirnov >> --- >> meta-isar/conf/layer.conf | 10 ++++++++-- >> meta-isar/recipes-core/images/files/distributions.in | 3 +++ >> meta/classes/image.bbclass | 17 >> ++++++++++++++++- >> 3 files changed, 27 insertions(+), 3 deletions(-) >> create mode 100644 meta-isar/recipes-core/images/files/distributions.in >> >> diff --git a/meta-isar/conf/layer.conf b/meta-isar/conf/layer.conf >> index 72a103c..0950a34 100644 >> --- a/meta-isar/conf/layer.conf >> +++ b/meta-isar/conf/layer.conf >> @@ -1,5 +1,5 @@ >> # This software is a part of ISAR. >> -# Copyright (C) 2015-2016 ilbers GmbH >> +# Copyright (C) 2015-2017 ilbers GmbH >> # We have a conf and classes directory, add to BBPATH >> BBPATH .= ":${LAYERDIR}" >> @@ -13,6 +13,12 @@ BBFILE_PRIORITY_isar = "5" >> # This should only be incremented on significant changes that will >> # cause compatibility issues with other layers >> -LAYERVERSION_isar = "2" >> +LAYERVERSION_isar = "3" >> LAYERDIR_isar = "${LAYERDIR}" >> + >> +# Codename of the repository created by the caching class >> +DEBDISTRONAME = "isar" >> + >> +# Path to the Isar apt repository >> +DEPLOY_DIR_APT ?= "${DEPLOY_DIR}/apt" > > Thanks! > > I would prefer that being handled the same way the DL_DIR and SSTATE_DIR > is handled. So the same variable naming scheme (maybe APT_CACHE_DIR) and > similar default paths (maybe "${TOPDIR}/aptcache"). The deploy dir is > not really the place to do work in. This should be in deploy directory, because "${DEPLOY_DIR}/apt" folder contains self-contained apt repository that could be exported/published by Isar user's demand, like images. > > If you want to have something deployed to the deploy dir then it should > be done via a recipe. I would suggest something like a > "do_deploy_repository_deb" task in image recipes. But thats a separate > patch. Please see the whole series. Apt repository population is performed in image recipe by do_populate task. Alex