Welcome to CRUX bug tracking.
FS#333 - pkgmk parallel fails
Attached to Project:
CRUX
Opened by Jose V Beneyto (sepen) - Monday, 14 July 2008, 15:56 GMT+2
Last edited by Fredrik Rinnestam (rehabdoll) - Sunday, 20 November 2011, 11:53 GMT+2
Opened by Jose V Beneyto (sepen) - Monday, 14 July 2008, 15:56 GMT+2
Last edited by Fredrik Rinnestam (rehabdoll) - Sunday, 20 November 2011, 11:53 GMT+2
|
Detailse.g: When I'm using PKGMK_WORK_DIR="/foo/work" (configured in pkgmk.conf), if I'm building more than one package with pkgmk, they can't be built in parallel due to they're sharing the same directory.
This issue is not happening for the PKGMK_WORK_DIR default value ($PWD/work). I think that could be avoided by using something like PKGMK_WORK_DIR="/foo/work/$name" (where $name is the package we're going to build). I made some test with that patch attached and seems that's doing the trick. |
This task depends upon
pkgmk.in.diff
Just configure pkgmk properly and use something like:
PKGMK_WORK_DIR=/dev/shm/pkgmk-work-$name
Other opinions?
well, also would be good if this feature be included and documented in pkgmk.conf.5
Other than that, this will always require that the Pkgfile is sourced before pkgmk.conf. I see no disadvantage in this right now, however since it used to be the other way around a long long time ago I thought I'd just write it down here :-).