lang/gcc46 building stuff in $TMPDIR
Gerald Pfeifer
gerald at pfeifer.com
Mon Jul 30 19:28:42 UTC 2012
On Sun, 29 Jul 2012, Doug Barton wrote:
>>> My suggestion would be to create a directory in $WRKDIR and assign
>>> $TMP (or whatever the right envar is) to it.
>> That could be done, but has one significant drawback: those of us
>> who have /tmp on fastest storage, and $WRKDIR on slower storage,
>> could lose a lot of speed.
> Have you measured that?
1:15:27 for a full build of lang/gcc48 when /tmp was used, versus
1:34:25 on the same system when TMPDIR was set to a network drive.
This is just one scenario, and it may go both ways. It does show
that having temporary files on fast storage is significant.
[i386 host, build including Java, storage on spindles.]
>> Finally, you indicated that you also saw Java create a large
>> temporary file. If you want to avoid building Java, the GCC
>> ports have an option to disable Java.
> Reducing functionality to handle build infrastructure problems is
> not a desirable solution. But thanks for the response in any case. :)
Reducing functionality if that cuts the cost of building in half
and you do not actually use that functionality (only a single port
does, from what I know) actually looks quite desirable to me. ;-)
Gerald
More information about the freebsd-ports
mailing list