From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6473366578589073408 X-Received: by 10.28.39.5 with SMTP id n5mr1090015wmn.23.1507204900801; Thu, 05 Oct 2017 05:01:40 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.223.195.204 with SMTP id d12ls5404795wrg.14.gmail; Thu, 05 Oct 2017 05:01:40 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCDpZRV8qhOR1ZHO2NxNbngNROikgzApmNqPEuolaAMSeVH8Vj7JZGY7vVR0omiIwxxkADF X-Received: by 10.28.142.2 with SMTP id q2mr660473wmd.32.1507204900401; Thu, 05 Oct 2017 05:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507204900; cv=none; d=google.com; s=arc-20160816; b=LGznzsUubQSRFgdZ9FkqXUOXungrnE5/lILhA2Hlgdir1HPnQQazqU/16Co4iJCikU zD0sskFgpM47WgxsE8MNQfMEITgDPFVTUw8OTPR1F3ZLrcUrK8pER2qSBH50mBHk3d7o s8Z6xGFILNFo4I+taKC7mGZaKnDuAd3HKWBUfU/geYAlxHmf5Nr2jyBSnGsPBGVSvlgn K0zJlGdF7CDPZKRNzqa79T8Y/WcGEZwylt48mlcvKJ1/GI6ZciCScPxsYiChcBTNhSAn vq3t/KBBpGC3b7Xibu85P9u6j9sOPlY4c9FFSiYSn0XMcPa2XS6qUXelU1U48+RCKaUv RJAA== 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=/3Fn22+IA4M7eAZmE9Y3tBuIU9pRcxTrECKPmkn8J/Q=; b=grpBNReUlfNrpeDiJO2E8VaxbcpepMb6hVkvMp9LngvoxuDy5pba/XYG8fJk7qIJl+ LFz6l6QiXEB1qTVPBW23IprBxrZG/N2YWP28qMhoC5o3ySMEBLnvLYLLAqGfTNdLiKd/ T1FH+1R3AxWyCghWnpOvsNxk7kPm1Em0Pv+COLWvQaBPtjYmGhpkp/9FLdYFV0loB6In MLqp0XA7j+QWb38t0FChHjaSAvfMosGuNymoniZ5/pKkYhdbQdWO3KWaJBgQ+fghZr5Z cm1JC/t54SQgiHBLkE+bHd4kcZ9aYahRNtjWMn2dWFB0WpVHQDk3MUwdDtFL6Moe9YUM 7AZg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 192.35.17.14 is neither permitted nor denied by best guess record for domain of claudius.heine.ext@siemens.com) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id f127si43184wmg.4.2017.10.05.05.01.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Oct 2017 05:01:40 -0700 (PDT) Received-SPF: neutral (google.com: 192.35.17.14 is neither permitted nor denied by best guess record for domain of claudius.heine.ext@siemens.com) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.35.17.14 is neither permitted nor denied by best guess record for domain of claudius.heine.ext@siemens.com) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id v95C1dG9006822 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 5 Oct 2017 14:01:40 +0200 Received: from [139.25.68.223] (linux-ses-ext02.ppmd.siemens.net [139.25.68.223]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id v95C1dB1021972; Thu, 5 Oct 2017 14:01:39 +0200 Subject: Re: [PATCH 1/4] apt: Generate configs for apt To: Alexander Smirnov , 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: Claudius Heine Message-ID: <058f3779-b50a-8da2-ccd4-6d28ef819594@siemens.com> Date: Thu, 5 Oct 2017 14:01:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: C+wnyIkwTVEE On 10/05/2017 01:43 PM, Alexander Smirnov wrote: > 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. I took a look at how OE creates repositories and its similar to the way its implemented here. I am not 100% sure that it makes sense to copy it from OE in this case, because we are using this repo differently (as a cache) than oe (just as a output of the package index) but I am willing to accept this solution, because people coming from OE might be more familiar this way. Claudius -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de