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 <emanuele.aina@collabora.com>
parent 5e626332
......@@ -178,8 +178,8 @@ class SnapshotBuilder:
def main(self):
"""Main function: build the snapshot.
"""
tmpdir = self.capture(['mktemp', '-d', '--tmpdir=',
'build-snapshot.XXXXXXXXXX']).strip('\n')
tmpdir = self.capture(['mktemp', '-d',
'/tmp/build-snapshot.XXXXXXXXXX']).strip('\n')
self.srcdir = tmpdir + '/s'
if self.args.builder == 'localhost':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment