From: "Hombourger, Cedric" <Cedric_Hombourger@mentor.com>
To: "isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: RFC: need to support package builds ala pbuilder?
Date: Thu, 13 Sep 2018 13:05:19 +0000 [thread overview]
Message-ID: <5469172f38754fd6b432249a3bd1bd8d@svr-ies-mbx-02.mgc.mentorg.com> (raw)
Hello all,
I recently came across an interesting case that may require us providing a mechanism to support building packages in their own private buildchroot
Let me first describe the issue:
# Isar defines two tasks to build Debian packages: (1) do_prepare and (2) do_build
# The former installs build dependencies while the latter does the actual build
#
# The Isar lock is acquired for do_prepare_build to serialize access to the package
# database. While this looks ok, we may have builds fail in the following scenario
#
# core 1 core 2
# -------------------------------- ---------------------------
#
# recipe1:do_prepare_build
# | download dependencies
# | install libssl-dev
# | task completes
# recipe2:do_prepare_build
# recipe2:do_build | download dependencies
# | autoconf | remove libssl-dev
# | make | install libssl1.0-dev
#
# Running "autoconf" or "make" while libssl-dev gets removed to allow installation of
# libssl1.0-dev may cause either to fail since OpenSSL headers / libraries will be
# temporarily removed
To keep locking simple and avoid introducing a big fat lock for the entire package build
(do_prepare_build + do_build), adding an option for a recipe to instruct bitbake to create
a buildchroot for a specific package (e.g. tmp/work/my-distro-amd64/my-package/buildchroot)
may be necessary. This would result in something conceptually similar to pbuilder but
integrated into Isar. The downside for those packages is that we would likely end-up
downloading the same packages again (not a big deal for those of you using a local
caching proxy such as apt-cacher-ng)
I therefore wanted to seek your opinion in either the need for such a mechanism or alternate solutions you may have in mind?
Thanks
Cedric
next reply other threads:[~2018-09-13 13:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-13 13:05 Hombourger, Cedric [this message]
2018-09-13 13:15 ` Jan Kiszka
2018-09-13 13:54 ` Henning Schild
2018-09-13 14:55 ` Hombourger, Cedric
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=5469172f38754fd6b432249a3bd1bd8d@svr-ies-mbx-02.mgc.mentorg.com \
--to=cedric_hombourger@mentor.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