Bug 79653

Summary: ispell fails to install as non-root
Product: Ports & Packages Reporter: John Baldwin <jhb>
Component: Individual Port(s)Assignee: jmz
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description John Baldwin freebsd_committer freebsd_triage 2005-04-07 22:00:17 UTC
The pre-install target is run as the user that invoked 'make install'.  If this user is not root, they can't create files or directories under ${PREFIX}.

Fix: Use pre-su-install instead:



-pre-install:
+pre-su-install:
        @if [ ! -d ${DATADIR} ]; then ${MKDIR} ${DATADIR}; fi

 post-install:--Up3cymle3GWzJWe1SKuOefLEncyxnRibb3wb4uuJJpwS9Ot6
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

Index: Makefile
===================================================================
RCS file: /usr/cvs/ports/textproc/ispell/Makefile,v
retrieving revision 1.93
diff -u -r1.93 Makefile
--- Makefile    20 Oct 2004 20:41:56 -0000      1.93
+++ Makefile    6 Apr 2005 15:14:02 -0000
@@ -294,7 +294,7 @@
                ${CP} data/bulgarian.hash bulgarian.hash
 .endif
Comment 1 Herve Quiroz freebsd_committer freebsd_triage 2005-04-08 03:37:29 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jmz

Over to maintainer.
Comment 2 jmz freebsd_committer freebsd_triage 2005-04-08 17:11:04 UTC
State Changed
From-To: open->closed

Committed.