From: Alexander Smirnov <asmirnov@ilbers.de>
To: Henning Schild <henning.schild@siemens.com>
Cc: isar-users@googlegroups.com
Subject: Isar apt further steps
Date: Wed, 18 Oct 2017 14:05:01 +0300 [thread overview]
Message-ID: <34795e4c-b50c-7799-d59d-9205a0413354@ilbers.de> (raw)
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
next reply other threads:[~2017-10-18 11:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-18 11:05 Alexander Smirnov [this message]
2017-10-18 14:00 ` Henning Schild
2017-10-18 14:08 ` 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=34795e4c-b50c-7799-d59d-9205a0413354@ilbers.de \
--to=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