Subject: bin/5700: egcs should use /tmp rather than /var/tmp
To: None <gnats-bugs@gnats.netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
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
>Last-Modified:
>Originator:     Izumi Tsutsui
>Organization:
DTI
>Release:        NetBSD-current supped on June 13 1998
>Environment:
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


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

>How-To-Repeat:
egcs uses /var/tmp(P_tmpdir) default.

>Fix:
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);
 #endif
 
   /* Try /usr/tmp, then /tmp.  */
   base = try (usrtmp, base);
+#endif
   base = try (tmp, base);
  
   /* If all else fails, use the current directory!  */

>Audit-Trail:
>Unformatted: