ports/133792: [PATCH] textproc/docbook-420 fails to install as non-root
John Baldwin
jhb at FreeBSD.org
Thu Apr 16 20:20:10 UTC 2009
>Number: 133792
>Category: ports
>Synopsis: [PATCH] textproc/docbook-420 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 16 20:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: John Baldwin
>Release:
>Organization:
>Environment:
>Description:
During a 'make install' as non-root, certain make targets are performed after using su to switch to root. Currently, the docbook-420 port attempts to create a directory in ${PREFIX} before the 'su' occurs which fails.
>How-To-Repeat:
Run 'make install' as a non-root user (who is in wheel).
>Fix:
Use 'pre-su-install' instead of 'pre-install'.
Patch attached with submission follows:
Index: Makefile
===================================================================
RCS file: /usr/cvs/ports/textproc/docbook-420/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile 10 Aug 2008 20:03:41 -0000 1.3
+++ Makefile 26 Mar 2009 18:42:29 -0000
@@ -37,7 +37,7 @@
LATEST_LINK= docbook-420
-pre-install:
+pre-su-install:
@[ -d ${INSTDIR}/${PORTVERSION} ] || ${MKDIR} ${INSTDIR}/${PORTVERSION}
do-install:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list