Commit fddcef0a authored by Emanuele Aina's avatar Emanuele Aina

Revert "Follow TMPDIR environment variable"

This reverts commit 7982241d.

The --tmpdir flag works fine with the `mktemp` shipped by coreutils in
`/bin/mktemp`, but with the `/usr/bin/mktemp` brought in by
coreutils-gplv2 the value of the TMPDIR variable is ignored and it tries
to create a /build-snapshot.NtQMUAiQNC directory in the filesystem root,
which fails.

Sadly on the Jenkins build host we have both the GPLv3 coreutils and
the mktemp packages installed, as the latter is tagged "essential",
and since the executable shipped by the latter masks the former, the
change broke the `build-snapshot` job.

Revert the change until the old mktemp package gets dropped from the
build host.
Signed-off-by: Emanuele Aina's avatarEmanuele Aina <>
parent 5e626332
......@@ -178,8 +178,8 @@ class SnapshotBuilder:
def main(self):
"""Main function: build the snapshot.
tmpdir = self.capture(['mktemp', '-d', '--tmpdir=',
tmpdir = self.capture(['mktemp', '-d',
self.srcdir = tmpdir + '/s'
if self.args.builder == 'localhost':
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment