public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: Claudius Heine <ch@denx.de>
Cc: Alexander Smirnov <asmirnov@ilbers.de>,
	Claudius Heine <claudius.heine.ext@siemens.com>,
	<isar-users@googlegroups.com>
Subject: Re: [PATCH 1/6] meta/dpkg: Make 'do_unpack' more generic, prepare for pulling out
Date: Fri, 8 Sep 2017 11:03:28 +0200	[thread overview]
Message-ID: <20170908110328.776e15a8@md1em3qc> (raw)
In-Reply-To: <d7137c2d-f9ef-602c-252d-cc991e0fd3c2@denx.de>

Am Fri, 8 Sep 2017 10:44:29 +0200
schrieb Claudius Heine <ch@denx.de>:

> Hi,
> 
> On 08.09.2017 10:30, Henning Schild wrote:
> > Am Tue, 5 Sep 2017 10:37:48 +0300
> > schrieb Alexander Smirnov <asmirnov@ilbers.de>:
> >   
> >> Hi,
> >>  
> >>>> On 09/04/2017 05:11 PM, Alexander Smirnov wrote:    
> >>>>> On 08/30/2017 10:03 PM, Henning Schild wrote:    
> >>>>>> Issue:
> >>>>>> The unpacker in dpkg is not generic since it does not unpack to
> >>>>>> WORKDIR, so it can not be pulled into a more generic class to
> >>>>>> make it available for other users.
> >>>>>>    
> >>>>>
> >>>>> As I already wrote to mail-list, WORKDIR and BUILDROOT are
> >>>>> different folders, and there was the reason to do so.    
> >>>>
> >>>> Yes we (Henning and I) get that. That is the reason why the
> >>>> patch includes the line:
> >>>>
> >>>> +WORKDIR_task-unpack = "${BUILDROOT}"
> >>>>
> >>>> That means that only for the unpack task in the dpkg.bbclass the 
> >>>> variable WORKDIR is set to the BUILDROOT variable. This makes
> >>>> the unpack step more generic so that it can be moved to the base
> >>>> class. Essentially removing the dependency of the unpack task to
> >>>> the dpkg class.    
> >>>
> >>> Does this mean that "log.do_unpack" and "run.do_unpack" will be
> >>> stored in buildchroot? Let me check this.
> >>>     
> >>
> >> Yes it does:
> >>
> >> ls 
> >> isar/build/tmp/work/buildchroot/debian-wheezy-armhf/rootfs/home/builder/hello/temp/
> >>
> >> log.do_unpack
> >> log.do_unpack.19557
> >> log.task_order
> >> run.do_unpack
> >> run.do_unpack.19557
> >>
> >> While it's assumed that they should be stored in: 
> >> isar/build/tmp/work/hello-0.1+g7f35942-1-r0/temp/  
> > 
> > I think i am starting to understand the whole problem with the
> > WORKDIR and the BUILDROOT better. Instead of the unpacking to
> > BUILDROOT or messing with WORKDIR i think we should have a new task
> > after do_unpack
> > 
> > So instead of do_unpack -> BUILDROOT
> > 
> > do_unpack archive -> WORKDIR
> > do_copy_to_buildroot WORKDIR -> BUILDROOT
> > 
> > That should keep all the logs in an unmodified WORKDIR and the
> > unpacker would always extract to there. Classes that need the files
> > to live in BUILDROOT would have to include the task
> > do_copy_to_buildroot.  
> 
> I agree with that separating those into two tasks is the better
> solution, but I don't like the 'copy_to_buildroot' name, because it
> limits possible implementations of this task by that name. For
> instance you could, and maybe even should, use a bind mount instead
> of copying the files around.
> 
> Something like "populate" or "prepare" as a prefix sounds a bit
> better IMO.

Agreed, i will think of a better name.

Henning

> Cheers,
> Claudius
> 


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

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-30 19:03 [PATCH 0/6] v3 of getting the custom debian package in Henning Schild
2017-08-30 19:03 ` [PATCH 1/6] meta/dpkg: Make 'do_unpack' more generic, prepare for pulling out Henning Schild
2017-09-04 15:11   ` Alexander Smirnov
2017-09-04 16:47     ` Jan Kiszka
2017-09-05  7:05     ` Claudius Heine
2017-09-05  7:25       ` Alexander Smirnov
2017-09-05  7:37         ` Alexander Smirnov
2017-09-05  7:56           ` Claudius Heine
2017-09-08  8:30           ` Henning Schild
2017-09-08  8:44             ` Claudius Heine
2017-09-08  9:03               ` Henning Schild [this message]
2017-08-30 19:03 ` [PATCH 2/6] meta: Move 'do_fetch' and 'do_unpack' to base-class Henning Schild
2017-09-04 15:14   ` Alexander Smirnov
2017-09-04 16:03     ` Jan Kiszka
2017-09-04 16:10       ` Alexander Smirnov
2017-09-04 16:11         ` Jan Kiszka
2017-09-04 16:39           ` Alexander Smirnov
2017-09-04 16:45             ` Jan Kiszka
2017-08-30 19:03 ` [PATCH 3/6] meta/dpkg: rename to dpkg-debian and add comment Henning Schild
2017-08-31  8:23   ` Claudius Heine
2017-09-04 15:17   ` Alexander Smirnov
2017-09-04 16:05     ` Jan Kiszka
2017-08-30 19:03 ` [PATCH 4/6] meta/dpkg-debian: Make 'do_install' more generic, prepare for pulling out Henning Schild
2017-08-30 19:09   ` Henning Schild
2017-09-08  8:35     ` Henning Schild
2017-08-30 19:03 ` [PATCH 5/6] meta/dpkg: add dpkg-custom class Henning Schild
2017-08-31  8:38   ` Claudius Heine
2017-08-31  8:42     ` Jan Kiszka
2017-08-31  9:10       ` Claudius Heine
2017-08-31  9:32       ` Henning Schild
2017-08-31 12:14         ` Claudius Heine
2017-08-31 13:39           ` Henning Schild
2017-09-11  8:39       ` Alexander Smirnov
2017-08-31  8:53     ` Claudius Heine
2017-08-31 10:21       ` Henning Schild
2017-09-04 15:36   ` Alexander Smirnov
2017-09-04 16:08     ` Jan Kiszka
2017-09-04 16:30       ` Alexander Smirnov
2017-09-04 16:53         ` Jan Kiszka
2017-09-08  8:20         ` Henning Schild
2017-09-08  8:15     ` Henning Schild
2017-09-08  8:31       ` Alexander Smirnov
2017-09-08  8:42         ` Henning Schild
2017-09-08  8:50           ` Alexander Smirnov
2017-09-11  8:13     ` Claudius Heine
2017-09-11  8:19       ` Henning Schild
2017-09-11  9:12         ` Claudius Heine
2017-09-11  8:42       ` Claudius Heine
2017-08-30 19:03 ` [PATCH 6/6] recipes-app/example-custom: add example on how to use dpkg-custom Henning Schild
2017-09-04 15:40   ` Alexander Smirnov
2017-09-06  7:36     ` 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=20170908110328.776e15a8@md1em3qc \
    --to=henning.schild@siemens.com \
    --cc=asmirnov@ilbers.de \
    --cc=ch@denx.de \
    --cc=claudius.heine.ext@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