summaryrefslogtreecommitdiff
path: root/mk/internal/locking.mk
AgeCommit message (Collapse)AuthorFilesLines
2007-03-16Typo.rillig1-2/+2
2007-03-16For the package pkgtools/shlock, it is not possbile to provide locking.rillig1-2/+3
2007-02-22Finished the split of PKGSRC_LOCKTYPE into LOCALBASE_LOCKTYPE andrillig1-2/+5
WRKDIR_LOCKTYPE. Added more documentation.
2007-02-20Made the locking more flexible by letting the user choose differentrillig1-36/+66
locking types for WRKDIR and LOCALBASE. The default values are currently based on PKGSRC_LOCKTYPE, but the recommended values are different. For LOCALBASE, the recommended value is "sleep", since after one transaction has finished, the next can be done in the new LOCALBASE without problems. The situation is different though in WRKDIR. After one transaction has finished there, it is often the case that the directory is removed, including the lockfile. In that case, the package has usually been installed and packaged successfully, and it would be a bad idea to let the next transaction try to do the same again. Therefore, the recommended value here is "once".
2007-02-19Why is OBJHOSTNAME needed for locking?rillig1-1/+2
2007-01-02Added parentheses around the shell command that installs shlock, torillig1-2/+2
allow for copy-and-paste without changing the current directory.
2006-11-09In the status and error messages, say _which_ lock is being held byrillig1-3/+3
another process. It's a little more verbose now, but it helps understanding what goes on.
2006-08-04Fixed the locking, as suggested by Johnny on the tech-pkg mailing list.rillig1-40/+91
Added two targets acquire-localbase-lock and release-localbase-lock, which mark the complete LOCALBASE directory as locked, so that multiple packages cannot run the install, deinstall or bin-install targets at the same time. The install target aquires locks in both WRKSRC and LOCALBASE, the other two targets only need the LOCALBASE lock, since they may be run without WRKSRC being present on the system. locking.mk must be included before tools.mk and the PKG_FAIL_REASON check.
2006-08-04Moved the locking code from bsd.pkg.mk into its own file. Where here,rillig1-0/+82
added a more detailed header comment and fixed a bug concerning lockdir.