Subject: pkg/12617: textproc/ispell-british fails if TMPDIR not set in environment
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 04/11/2001 14:07:33
>Number:         12617
>Category:       pkg
>Synopsis:       textproc/ispell-british fails if TMPDIR not set in environment
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 11 11:08:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Greg A. Woods
>Release:        src-2001/03/24, pkgsrc-2001/04/10
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:

System: NetBSD proven 1.5T NetBSD 1.5T (PROVEN) #4: Thu Apr 5 21:49:20 EDT 2001 woods@proven:/work/woods/NetBSD-src/sys/arch/i386/compile/PROVEN i386
Architecture: i386
Machine: i386

>Description:

	For some reason textproc/ispell-british needs to have TMPDIR set
	in the environment or else it tries to use /usr/tmp of all things!

>How-To-Repeat:

	$ cd /usr/pkgsrc/ispell-british
	$ make
	[[ .... blah blah blah .... ]]
	+ sort -u -t/ +0f -1 +0 -T /usr/tmp -o english.xlg english.0 english.1 english.2 english.3 british.0 british.1 british.2
	sort: ftmp: mkstemp("/usr/tmp"): No such file or directory
	*** Error code 2
	
	Stop.

>Fix:

Index: Makefile
===================================================================
RCS file: /most/spare/cvs.NetBSD.ORG/pkgsrc/textproc/ispell-british/Makefile,v
retrieving revision 1.3
diff -c -c -r1.3 Makefile
*** Makefile	2001/03/15 15:27:40	1.3
--- Makefile	2001/04/11 18:00:47
***************
*** 18,23 ****
--- 18,28 ----
  
  DICT_LANG=	british
  
+ # XXX why is this necessary here but not in ispell-base????
+ #
+ TMPDIR?=	/tmp
+ MAKE_ENV+=	TMPDIR=${TMPDIR}
+ 
  do-configure:
  	cd ${WRKSRC};							\
  	${SED} -e 's|/usr/local|${PREFIX}|g' <local.h.samp >local.h;	\
	
>Release-Note:
>Audit-Trail:
>Unformatted: