On Fri, Dec 26, 2025 at 03:09:51PM +0100, Jochen Sprickerhof wrote:
* 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.
If that works (I didn't try it yet), it needs to be in the docs.
Prominently.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421