NetBSD Problem Report #5700
Received: (qmail 7048 invoked from network); 3 Jul 1998 22:24:53 -0000
Message-Id: <199807031705.CAA01377@mirage.ceres.dti.ne.jp>
Date: Sat, 4 Jul 1998 02:05:23 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@gnats.netbsd.org
Subject: egcs should use /tmp rather than /var/tmp
X-Send-Pr-Version: 3.95
>Number: 5700
>Category: bin
>Synopsis: egcs should use /tmp rather than /var/tmp
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Jul 03 15:35:00 +0000 1998
>Closed-Date: Mon Sep 14 17:12:08 +0000 1998
>Last-Modified: Mon Sep 14 17:12:43 +0000 1998
>Originator: Izumi Tsutsui
>Release: NetBSD-current supped on June 13 1998
>Organization:
DTI
>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! */
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: tv
State-Changed-When: Mon Sep 14 10:12:08 PDT 1998
State-Changed-Why:
Added to NetBSD-current by explicitly trying "/tmp" as P_tmpdir.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.