NetBSD Problem Report #47273

From campbell@mumble.net  Sun Dec  2 00:22:22 2012
Return-Path: <campbell@mumble.net>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id B8D4963DFC7
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  2 Dec 2012 00:22:21 +0000 (UTC)
Message-Id: <20121202002118.AC3F2604E1@jupiter.mumble.net>
Date: Sun,  2 Dec 2012 00:21:18 +0000 (UTC)
From: Taylor R Campbell <campbell+netbsd@mumble.net>
Reply-To: Taylor R Campbell <campbell+netbsd@mumble.net>
To: gnats-bugs@gnats.NetBSD.org
Subject: toolchain doesn't respect TMPDIR and uses stupid default
X-Send-Pr-Version: 3.95

>Number:         47273
>Category:       toolchain
>Synopsis:       toolchain doesn't respect TMPDIR and uses stupid default
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 02 00:25:00 +0000 2012
>Originator:     Taylor R Campbell <campbell+netbsd@mumble.net>
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:

	`env TMPDIR=/tmp/lose ./build.sh ...' doesn't make GCC (and
	maybe other tools too) use /tmp/lose for its temporary
	directories; instead it stupidly uses /var/tmp, which is for
	temporary storage that is supposed to persist across a reboot.

>How-To-Repeat:

	Mount a synchronous ffs on /var so that it is reliable but
	slow.  Mount tmpfs on /tmp so that it is transient but fast.
	Run build.sh and observe that the C compiler dumps the
	ccXYZ123PQR.s files in /var/tmp instead of /tmp by default.
	Run `env TMPDIR=/tmp/lose ./build.sh ...' and observe that the
	C compiler *still* dumps crap in /var/tmp.  Throw up your hands
	in frustration and break /var/tmp by mounting a tmpfs there so
	that builds will finish in reasonable amounts of time.

>Fix:

	Yes, please!

NetBSD Home
NetBSD PR Database Search

(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.