public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Claudius Heine <claudius.heine.ext@siemens.com>
To: "[ext] Andreas Reichel" <andreas.reichel.ext@siemens.com>,
	Alexander Smirnov <asmirnov@ilbers.de>
Cc: Henning Schild <henning.schild@siemens.com>, isar-users@googlegroups.com
Subject: Re: [PATCH v2 2/4] meta-isar-bin: Generate cache repos
Date: Thu, 21 Sep 2017 11:21:45 +0200	[thread overview]
Message-ID: <7f0d134f-9008-cb4a-147c-3386aae3961d@siemens.com> (raw)
In-Reply-To: <20170921085535.GA27874@iiotirae>

Hi,

On 09/21/2017 10:55 AM, [ext] Andreas Reichel wrote:
> On Wed, Sep 20, 2017 at 11:26:20AM +0300, Alexander Smirnov wrote:
>>
>> After build, there will be the following in the cache (example for hello):
>>
>> $ ls -1 meta-isar-bin/apt/debian-jessie/pool/main/h/hello/
>> hello_0.1+g7f35942-1_amd64.deb
>> hello_0.1+g7f35942-1_armhf.deb
>> hello_0.1+g7f35942-1_i386.deb
>>
> 
> This looks like a misdesign, because meta-layers should not be populated
> by the build process and furthermore, should contain recipes and not a
> cache itself. It would be like the sstate-cache lying inside meta-oe...
> 
> Why not define a variable like 'DEB_CACHE_DIR' or something alike and
> use this directory. Then you also have more flexibility and can handle
> multiple different caches, i.e. the caches become selectable and
> independent of the layer itself...
> 
> Furthermore, you could set the DEB_CACHE_DIR variable in the local.conf
> snippents for multiconf and then you can have separate caches for
> different target architectures and don't mix everything up in one pool.
> 
> This way you can easily drop a pool by architecture without sorting
> files out.

This patch is sort of doing that. It defines:

     DEBDISTRONAME = "isar"
     DEBCACHEDIR ?= "${LAYERDIR}/apt"
     DEBFILESDIR ?= "${LAYERDIR}/files"

In the layer.conf of the 'meta-isar-bin'. So you could overwrite it in 
the local.conf. But I agree that this way of doing thing looks rather 
strange, because now we have a layer that does not contain meta data 
(recipes, patches, etc.) but instead it contains binary packages.

The idea of layers is to have multiple of them laying over each other 
creating some kind of union file system. You can't do that here AFAIK. 
So it goes against pretty much the basic concept of bitbake and the 
layering.

Also putting those build products in the meta source tree is very bold. 
I could imagine that those meta layers are mounted as read only into the 
virtual machine/container. This would pretty much break this.

So I would be in favor of handling this kind of binary cache similar to 
how bitbake handles the the 'DL_DIR' and 'SSTATE_DIR'.

Cheers,
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

  reply	other threads:[~2017-09-21  9:21 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-19 12:20 [PATCH v2 0/4] Basic binary cache implementation Alexander Smirnov
2017-09-19 12:20 ` [PATCH v2 1/4] meta-isar-bin: Add reprepro configs Alexander Smirnov
2017-09-20  7:58   ` Henning Schild
2017-09-20  8:12     ` Alexander Smirnov
2017-09-20  8:38       ` Henning Schild
2017-09-20  8:51         ` Alexander Smirnov
2017-09-19 12:20 ` [PATCH v2 2/4] meta-isar-bin: Generate cache repos Alexander Smirnov
2017-09-20  8:11   ` Henning Schild
2017-09-20  8:26     ` Alexander Smirnov
2017-09-21  8:55       ` Andreas Reichel
2017-09-21  9:21         ` Claudius Heine [this message]
2017-09-22 10:56         ` Baurzhan Ismagulov
2017-09-25 10:49           ` Claudius Heine
2017-09-25 11:57             ` Alexander Smirnov
2017-09-25 13:48               ` Claudius Heine
2017-09-19 12:20 ` [PATCH v2 3/4] meta-isar-bin: Populate cache Alexander Smirnov
2017-09-20  8:22   ` Henning Schild
2017-09-20  8:49     ` Alexander Smirnov
2017-09-19 12:20 ` [PATCH v2 4/4] meta-isar-bin: Install packages via multistrap Alexander Smirnov
2017-09-20  8:28   ` Henning Schild

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7f0d134f-9008-cb4a-147c-3386aae3961d@siemens.com \
    --to=claudius.heine.ext@siemens.com \
    --cc=andreas.reichel.ext@siemens.com \
    --cc=asmirnov@ilbers.de \
    --cc=henning.schild@siemens.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox