* Marc Haber <[email protected]> [2025-12-26 14:07]:
On Fri, Dec 26, 2025 at 12:14:04PM +0000, Holger Levsen wrote:
On Fri, Dec 26, 2025 at 11:55:37AM +0100, Marc Haber wrote:
But that cannot be put in configuration and then forgotten, it needs to be
remembered every time. Or a wrapper needs to be written and used.

yes. I want to be able use 'sbuild', not 'TMPDIR=$something sbuild'.

This.

MAYBE I would be fine with setting SBUILD_TMPDIR in my .bashrc (and then forget about it¹), and have sbuild transport that to TMPDIR for the subprocesses, but ideally I'd want to have that in sbuild configuration where the rest of sbuild config lives.

Use this in your sbuild config:

$ENV{'TMPDIR'} = "/var/tmp";
$unshare_tmpdir_template = '/var/tmp/tmp.sbuild.XXXXXXXXXX';

The default for $unshare_tmpdir_template is set before the config file is read so we need to override it.

Cheers Jochen

Attachment: signature.asc
Description: PGP signature

Reply via email to