ports/133791: [PATCH] security/cyrus_sasl2 fails to install as non-root

John Baldwin jhb at FreeBSD.org
Thu Apr 16 20:20:08 UTC 2009


>Number:         133791
>Category:       ports
>Synopsis:       [PATCH] security/cyrus_sasl2 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 cyrus_sasl2 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/security/cyrus-sasl2/Makefile,v
retrieving revision 1.138
diff -u -r1.138 Makefile
--- Makefile	6 Jan 2009 17:59:18 -0000	1.138
+++ Makefile	21 Mar 2009 16:43:35 -0000
@@ -243,7 +243,7 @@
 		${.CURDIR}/pkg-message > ${PKGMESSAGE}
 
 # Create Cyrus user and group
-pre-install:
+pre-su-install:
 	@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
 
 post-install:


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



More information about the freebsd-ports-bugs mailing list