From: Jan Kiszka <jan.kiszka@siemens.com>
To: cedric_hombourger@mentor.com, isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH] dpkg: acquire a read (shared) locks while building packages
Date: Fri, 8 Mar 2019 16:13:13 +0100 [thread overview]
Message-ID: <a90bcb21-d11c-368e-173a-4004375e8860@siemens.com> (raw)
In-Reply-To: <35924a2e-5207-453e-afa3-609478c5b4e1@googlegroups.com>
On 08.03.19 14:33, cedric_hombourger@mentor.com wrote:
>
> On Friday, March 8, 2019 at 11:04:12 AM UTC+1, Jan Kiszka wrote:
>
> > diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass
> > index 24b9fe3..f4e3d7a 100644
> > --- a/meta/classes/dpkg.bbclass
> > +++ b/meta/classes/dpkg.bbclass
> > @@ -19,5 +19,6 @@ do_install_builddeps[stamp-extra-info] =
> "${DISTRO}-${DISTRO_ARCH}"
> > # Build package from sources using build script
> > dpkg_runbuild() {
> > E="${@ bb.utils.export_proxies(d)}"
> > + flock -s "${REPO_ISAR_DIR}/isar.lock" \
> > sudo -E chroot --userspec=$( id -u ):$( id -g ) ${BUILDCHROOT_DIR}
> /isar/build.sh ${PP}/${PPS} ${DISTRO_ARCH}
> > }
> >
>
> Couldn't we have the same issue with dpkg-base derived classes? The kernel? Or
> downstream classes? IOW, shouldn't this go to the caller of dpkg_runbuild?
>
>
> I do understand the intent but I don't think we can do something like:
> flock -s <lock-file> dpkg_runbuild
>
> is there another flock construct we could use to get around this?
Likely true. We would need a construct that bitbake can parse while unrolling
this function - not aware of any.
>
> I can update the patch to correct the typo in the commit log
>
Then let's also patch meta/recipes-kernel/linux/linux-custom.inc analogously and
leave external dpkg_runbuild to downstream.
Thanks,
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2019-03-08 15:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-08 9:57 Cedric Hombourger
2019-03-08 10:04 ` Jan Kiszka
2019-03-08 13:33 ` cedric_hombourger
2019-03-08 15:13 ` Jan Kiszka [this message]
2019-03-08 15:24 ` cedric_hombourger
2019-03-08 15:27 ` Jan Kiszka
2019-03-08 15:49 ` [PATCH v2] " Cedric Hombourger
2019-03-08 16:38 ` Jan Kiszka
2019-03-14 6:21 ` cedric_hombourger
2019-03-15 4:47 ` Maxim Yu. Osipov
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=a90bcb21-d11c-368e-173a-4004375e8860@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=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