maintainer-scripts: Use /sourceware/snapshot-tmp/gcc as temp directory if possible
authorJakub Jelinek <jakub@redhat.com>
Wed, 16 Dec 2020 23:14:30 +0000 (00:14 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 16 Dec 2020 23:15:23 +0000 (00:15 +0100)
commitf4ae1f2c43d2274225f84f4370e556c4abd6010e
treea0c6a9a19c935c1c6692bd91937a82255884a376
parent2a4183234a45ba28db5ce16cf3ccdd70cdef3b7c
maintainer-scripts: Use /sourceware/snapshot-tmp/gcc as temp directory if possible

> https://gcc.gnu.org/pipermail/gccadmin/2020q4/017037.html
>
> OSError: [Errno 28] No space left on device:
> '/tmp/tmp.Zq3p6D4MxS/gcc/.git/objects/objn31xpefh' ->
> '/tmp/tmp.Zq3p6D4MxS/gcc/.git/objects/db/ffb02a4bcdd4ec04af3db75d86b8cc2e52bdff'
>
> Maybe change the script to use /sourceware/snapshot-tmp/gcc (which has
> rather more space) instead of /tmp?

This patch implements that.

2020-12-17  Jakub Jelinek  <jakub@redhat.com>

* update_version_git: Put BASEDIR into /sourceware/snapshot-tmp/gcc
if it exist.
maintainer-scripts/update_version_git