Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Apr 2009 20:12:47 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/133790: [PATCH] mail/postfix fails to install as non-root
Message-ID:  <200904162012.n3GKCl51039875@www.freebsd.org>
Resent-Message-ID: <200904162020.n3GKK1UL067923@freefall.freebsd.org>

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

>Number:         133790
>Category:       ports
>Synopsis:       [PATCH] mail/postfix 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 postfix port attempts to add users 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/mail/postfix/Makefile,v
retrieving revision 1.142
diff -u -r1.142 Makefile
--- Makefile	26 Jan 2009 19:52:05 -0000	1.142
+++ Makefile	21 Mar 2009 16:59:27 -0000
@@ -253,7 +253,7 @@
 	CCARGS="${POSTFIX_CCARGS}" AUXLIBS="${POSTFIX_AUXLIBS}" && \
 	${ECHO} "all: default" >> Makefile)
 
-pre-install:
+pre-su-install:
 	@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
 
 do-install:


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



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