#707772 pbuilder: allow using something different than the PID as build directory

#707772#5
Date:
2013-05-11 07:41:20 UTC
From:
To:
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.

#707772#10
Date:
2013-05-11 12:50:33 UTC
From:
To:
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

#707772#15
Date:
2015-07-05 00:17:03 UTC
From:
To:
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.