Skip to main content.

2006-Apr-08

Started using PKGSRC_LOCKTYPE=sleep in pkgsrc. This means that a lock file is created with shlock so you can do multiple package builds at same time and one will sleep (for five second intervals) if a work directory is in use.

This works good so one package is not built simultaneously causing one job to fail.

My problem is that when the tools or wrappers phase is being done it might include numerous dependencies that have to be built. So then I have to wait for the held lock. I may have a lot of wasted CPU time waiting ... "Lock is held by pid". I want it to be able to able to build other dependencies instead of waiting for lock.

There was some code posted recently for doing simultaneous multi package builds. I need to try it.