public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* RFC: need to support package builds ala pbuilder?
@ 2018-09-13 13:05 Hombourger, Cedric
  2018-09-13 13:15 ` Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: Hombourger, Cedric @ 2018-09-13 13:05 UTC (permalink / raw)
  To: isar-users

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

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

end of thread, other threads:[~2018-09-13 14:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-13 13:05 RFC: need to support package builds ala pbuilder? Hombourger, Cedric
2018-09-13 13:15 ` Jan Kiszka
2018-09-13 13:54   ` Henning Schild
2018-09-13 14:55     ` Hombourger, Cedric

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