Date: Thu, 16 Apr 2009 20:19:46 GMT From: John Baldwin <jhb@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/133792: [PATCH] textproc/docbook-420 fails to install as non-root Message-ID: <200904162019.n3GKJkYs040494@www.freebsd.org> Resent-Message-ID: <200904162020.n3GKK1tS067984@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904162019.n3GKJkYs040494>