Subject: Re: Conflicts when building two packages at the same time
To: Jeremy C. Reed <reed@reedmedia.net>
From: Raymond Meyer <raymond.meyer@rambler.ru>
List: pkgsrc-users
Date: 03/23/2007 18:04:55
On Fri, 23 Mar 2007 12:45:35 -0500 (CDT)
"Jeremy C. Reed" <reed@reedmedia.net> wrote:
> > Earlier this week I installed macppc on my iBook and, to win some time,
> > I launched different pkgsrc compilations at the same time. When I got
> > back later this day I found that two of these tried to compile gtk+
> > at the same time, and of course it failed for both (seems they wrote
> > in the same file at the same time).
> >=20
> > Wouldn't it be possible to lock building of a package to prevent these
> > sort of things?
>=20
> Hi Lo=EFc,
>=20
> Yes. I have in a mk.conf:
>=20
> OBJHOSTNAME=3D yes # use work.`hostname` -- needed for PKGSRC_LOCK=
TYPE
> PKGSRC_LOCKTYPE=3D sleep
>=20
> I don't know where the docs are. Maybe see
>=20
> mk/internal/locking.mk
> mk/defaults/mk.conf
>=20
>=20
>=20
> Jeremy C. Reed
Last time I tried pkgsrc locking, it was broken, packages fail to build even
when PKGSRC_LOCKTYPE is set in mk.conf.