Bug 79653 - ispell fails to install as non-root
Summary: ispell fails to install as non-root
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: jmz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-07 22:00 UTC by John Baldwin
Modified: 2005-04-08 17:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.