> Date: Thu, 26 Mar 2020 14:57:40 +0100 > From: Kamil Rytarowski <n...@gmx.com> > > Maybe we could specify TMPDIR somewhere in /etc and point to /tmp? > > The build of tools could be fixed independently.
It is wrong for gcc to abuse /var/tmp for files that aren't meaningfully persistent, just like it would be wrong to abuse /usr/bin for configuration files that the operator is expected to edit. If upstream inexplicably insisted on abusing /usr/bin for a configuration file because it was once on a larger partition than /etc, we would patch gcc to fix that bug too. If gcc doesn't respect TMPDIR, that's a separate bug that should be fixed as well. We don't need to set TMPDIR=/tmp anywhere because that's already what correct programs use by default (for example, via _PATH_TMP).