Subject: pkg/6482: ispell won't build in read-only pkgsrc
To: None <gnats-bugs@gnats.netbsd.org>
From: William O Ferry <woferry@wferry.meer.net>
List: netbsd-bugs
Date: 11/22/1998 12:37:43
>Number:         6482
>Category:       pkg
>Synopsis:       ispell won't build in read-only pkgsrc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 22 12:50:00 1998
>Last-Modified:
>Originator:     William O Ferry
>Organization:
>Release:        <NetBSD-current source date> 10/16/98
>Environment:
	
System: NetBSD wferry.meer.net 1.3H NetBSD 1.3H (kernel) #1: Sun Oct 18 15:32:03 PDT 1998 root@Ludicrous:/.u1/work/kernel i386


>Description:
	
The ispell package sets TMPDIR to ${.CURDIR}, which is used by at least yacc
during the build process.  When pkgsrc is read-only, this causes the build to
fail.
>How-To-Repeat:
	
Mount pkgsrc read-only, try to build ispell.
>Fix:
	
Using WRKDIR instead seems to work.  Maybe there's a better choice?

--- Makefile.orig       Sun Nov 22 11:53:01 1998
+++ Makefile    Sun Nov 22 11:54:35 1998
@@ -10,7 +10,7 @@
 MAINTAINER=    packages@netbsd.org
 HOMEPAGE=      http://www.gnu.org/software/ispell/ispell.html
 
-MAKE_FLAGS=    TMPDIR=${.CURDIR}
+MAKE_FLAGS=    TMPDIR=${WRKDIR}
 SCRIPTS_ENV=   "LANG=${LANG}"
 USE_GTEXINFO=  yes
 INFO_FILES=    ispell
>Audit-Trail:
>Unformatted: