Subject: bin/5700: egcs should use /tmp rather than /var/tmp
To: None <>
From: Izumi Tsutsui <>
List: netbsd-bugs
Date: 07/04/1998 02:05:23
>Number:         5700
>Category:       bin
>Synopsis:       egcs should use /tmp rather than /var/tmp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jul  3 15:35:00 1998
>Originator:     Izumi Tsutsui
>Release:        NetBSD-current supped on June 13 1998
System: NetBSD mirage 1.3F NetBSD 1.3F (MIRAGE) #11: Tue Jun 23 20:07:12 JST 1998 tsutsui@mirage:/usr/src/sys/arch/i386/compile/MIRAGE i386

egcs uses /var/tmp for temporary directory.
/usr/src/gnu/usr.bin/gcc is already changed to use /tmp
rather than /var/tmp.

egcs uses /var/tmp(P_tmpdir) default.

change choose-temp.c like gnu/usr.bin/gcc/cc/gcc.c.
--- /usr/src/gnu/dist/gcc/choose-temp.c.orig    Sun Mar 29 21:14:55 1998
+++ /usr/src/gnu/dist/gcc/choose-temp.c Tue Jun 23 20:53:51 1998
@@ -104,12 +104,14 @@
   base = try (getenv ("TMP"), base);
   base = try (getenv ("TEMP"), base);
+#ifndef __NetBSD__
 #ifdef P_tmpdir
   base = try (P_tmpdir, base);
   /* Try /usr/tmp, then /tmp.  */
   base = try (usrtmp, base);
   base = try (tmp, base);
   /* If all else fails, use the current directory!  */