public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* Isar apt further steps
@ 2017-10-18 11:05 Alexander Smirnov
  2017-10-18 14:00 ` Henning Schild
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Smirnov @ 2017-10-18 11:05 UTC (permalink / raw)
  To: Henning Schild; +Cc: isar-users

Hi Henning,

I'd like to start separate discussion about further apt steps because 
previous series was applied before your last comment:

 > - create one task in dpkg-base.bbclass that does the following
 >  - config and init reprepro if no other recipe did that before

Hmm, in general repository generation should be performed only once, 
moreover in most cases it should be done for dedicated Isar image, 
otherwise no need to cache binaries to apt if it's not used. So that's 
why I've put repo creation to image class.

 >  - add package

If task[lockfile] works for multiconfig, then I definitely like this 
approach.

 >  - use bitkages task[lockfiles] to deal with races between recipes,
 >    put distro into lockfile-name so we have one lock per distro
 > - drop do_populate

That's already in todo, the blocking issue was locking mechanism for 
multiconfig.

 > - call the new task instead of, or in do_deploy_deb




So, to summarize my vision:

1. image.bbclass: do_cache_config(). Use [lockfiles] = ${DISTRO} to 
handle multiconfig and 'bitbake image-A image-B' parallel builds.

2. dpkg-base.bbclass: do_populate_apt(). Use [lockfiles] = ${DISTRO} to 
avoid races between recipes and for multiconfig.

3. Drop image.bbclass: do_populate()

4. Remove ${DEPLOY_DIR_DEB} from Isar.

What do you think?

Alex

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-18 14:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-18 11:05 Isar apt further steps Alexander Smirnov
2017-10-18 14:00 ` Henning Schild
2017-10-18 14:08   ` Henning Schild

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox