I run pbuilder builds in separate PID namespaces to get a bit of isolation from the rest of the system. Unfortantely when running multiple builds in parallel the paths clash because all pbuilder instances have the same pid and that pid is used to generate the build path. A bit of hackish solution I came up with is to use mktemp in simulate mode to generate a random dirname for BUILDPLACE.
Felix Geyer dixit: Erm: “Don’t Do That Then”? That’s a totally nōn-unixy thing, so it’s no wonder things break, as on Unix, PIDs being unique for as long as the program runs is a guarantee. bye, //mirabilos
control: retitle -1 pbuilder: allow using something different than the PID as build directory control: severity -1 wishlist erm, I agree with tg :) Indeed. Though your are not the only person that made me notice that and wants to run pbuilder under pid isolation. As such, I want to allow different solutions for the choice of the build directory, maybe defaulting on $$, but allowing something else too.