summaryrefslogtreecommitdiff
path: root/mk/internal
AgeCommit message (Collapse)AuthorFilesLines
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.
2006-07-15Split the variable BUILD_DEFS into those that are defined by packagesrillig1-0/+37
and those that are defined by the infrastructure (_BUILD_DEFS). This allows the build-defs-message target to be moved to the end of bsd.pkg.mk. Now it prints the correct result even in unprivileged builds, which had been wrong due to the order in which the files have been included. For example, ${UNPRIVILEGED_USER} was displayed as (not defined) although its value was defined, which could be checked with "bmake show-var". Tested with one package that _does_ define BUILD_DEFS and with one that doesn't. The behavior stays the same.