ports/118999: net/avahi-app fails to build as non-root

Stefan Sperling stsp at stsp.name
Mon Dec 24 18:20:01 UTC 2007


>Number:         118999
>Category:       ports
>Synopsis:       net/avahi-app fails to build 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:   Mon Dec 24 18:20:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Sperling
>Release:        FreeBSD 6.2-RELEASE-p8 i386
>Organization:
>Environment:
System: FreeBSD ted.stsp.lan 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #0: Sun Oct 14 21:01:47 CEST 2007 stsp at ted.stsp.lan:/usr/obj/usr/src/sys/TED i386


>Description:
net/avai-app executes commands that need root-privileges in its
pre-install target without using SU_CMD. Hence "make install" fails
if invoked as non-root user.
	
>How-To-Repeat:
Set SU_CMD in /etc/make.conf and try to install net/avahi-app as
normal user.
	
>Fix:

	


Index: Makefile
===================================================================
RCS file: /usr/ncvs/ports/net/avahi-app/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile	21 Dec 2007 15:14:46 -0000	1.5
+++ Makefile	24 Dec 2007 12:55:52 -0000
@@ -127,8 +127,8 @@
 
 avahi-pre-install:
 .if ${AVAHI_SLAVE}=="no"
-	@${MKDIR} ${PREFIX}/lib/avahi
-	@${TOUCH} -f ${PREFIX}/lib/avahi/.keep
+	@${SU_CMD} "${MKDIR} ${PREFIX}/lib/avahi"
+	@${SU_CMD} "${TOUCH} -f ${PREFIX}/lib/avahi/.keep"
 .endif
 
 post-install: avahi-post-install
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list