Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Apr 2005 20:52:17 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/79653: ispell fails to install as non-root
Message-ID:  <200504072052.j37KqHgo038438@www.freebsd.org>
Resent-Message-ID: <200504072100.j37L0H00038728@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         79653
>Category:       ports
>Synopsis:       ispell fails to install as non-root
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 07 21:00:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     John Baldwin
>Release:        6.0-CURRENT
>Organization:
>Environment:
n/a      
>Description:
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}.      
>How-To-Repeat:
      
>Fix:
Use pre-su-install instead:

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

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

 post-install:

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504072052.j37KqHgo038438>