Date: Thu, 16 Apr 2009 20:17:01 GMT From: John Baldwin <jhb@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/133791: [PATCH] security/cyrus_sasl2 fails to install as non-root Message-ID: <200904162017.n3GKH1CE040209@www.freebsd.org> Resent-Message-ID: <200904162020.n3GKK1Q3067936@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904162017.n3GKH1CE040209>