Hi Marc, * Marc Haber <[email protected]> [2025-08-17 11:35]:
iusing $unshare_tmpdir_template = '/var/tmp/tmp.sbuild.XXXXXXXXXX'; in the sbuild configuration, one can avoid a /tmp overflow if /tmp is a tmpfs. This is especially important since trixie where /tmp is tmpfs by default.This is not honored if the chroot needs to be built, mmdebstrap still happily fills up /tmp (and then terminates with a VERY misleading error message).
I think the better option is to use: $ TMPDIR=/var/tmp sbuild ...This will put all temporary files below /var/tmp, also for piuparts and autopkgtest since version 0.91.5.
* Holger Levsen <[email protected]> [2025-09-22 10:07]:
Jochen pointed me to this bug, saying I would also need to set $unshare_mmdebstrap_env_cmnd = [ "env", "TMPDIR=/home/user/tmp/"; in sbuild's config.pl. However, this wont work either, until https://salsa.debian.org/debian/sbuild/-/merge_requests/204 has been merged, so for now one also need to do alias sbuild="TMPDIR=/home/user/tmp/ sbuild" after which simply invocating sbuild should work for the user user with tmp in ~/tmp.
This has been added in version 0.91.3 with the small variation that it is now:
$unshare_mmdebstrap_env_cmd = [ "env", "TMPDIR=/home/user/tmp/"; (note the cmd instead of cmnd.)I still think setting $TMPDIR is the better option and would propose to close this bug unless you disagree.
Cheers Jochen
signature.asc
Description: PGP signature

