Subject: Re: pkgsrc on SMP machines
To: David Brownlee <>
From: Lubomir Sedlacik <>
List: tech-pkg
Date: 12/15/2005 12:51:49
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Dec 15, 2005 at 11:43:02AM +0000, David Brownlee wrote:
> Locking is definitely something we want. Once we have that
> 'all' we need is a list of dependencies (tsort) for a given
> build, and a mechanism for pulling the first one off the
> list which is not blocked by an active build. It may even
> be worth adding a new pkg_ tool to manage that part of it.
> So... until someone implements locking the across package
> parallel build is moot :)

what do you mean by "until someone implements locking"?
it's already there for _years_.

see pkgsrc/mk/defaults/mk.conf for details how to use it:

 # The type of locking which will be done if competing processes attempt to
 # do work on one package directory simultaneously.
 # + Locking requires that OBJHOSTNAME is set.
 # + Locking may require the pkgsrc/pkgtools/shlock package to be installed
 #   on certain OS types.
 # + Sleep locking means that the process will sleep for ${PKGSRC_SLEEPSECS}
 #   seconds, then try to acquire the lock, and sleeping again if it's not
 #   available.
 # + Once locking will try once to acquire the lock, and then fail.
 # Possible: none, sleep, once
 # Default: none


-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.4.2 (NetBSD)