From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Apr 16 20:20:08 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AF3D10658B3 for ; Thu, 16 Apr 2009 20:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1A47D8FC29 for ; Thu, 16 Apr 2009 20:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3GKK1JH067985 for ; Thu, 16 Apr 2009 20:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3GKK1tS067984; Thu, 16 Apr 2009 20:20:01 GMT (envelope-from gnats) Resent-Date: Thu, 16 Apr 2009 20:20:01 GMT Resent-Message-Id: <200904162020.n3GKK1tS067984@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, John Baldwin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8479C1065B5F for ; Thu, 16 Apr 2009 20:19:46 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 71DC88FC19 for ; Thu, 16 Apr 2009 20:19:46 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3GKJkRu040495 for ; Thu, 16 Apr 2009 20:19:46 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n3GKJkYs040494; Thu, 16 Apr 2009 20:19:46 GMT (envelope-from nobody) Message-Id: <200904162019.n3GKJkYs040494@www.freebsd.org> Date: Thu, 16 Apr 2009 20:19:46 GMT From: John Baldwin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/133792: [PATCH] textproc/docbook-420 fails to install as non-root X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2009 20:20:10 -0000 >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: