Date: Mon, 24 Dec 2007 15:45:43 +0100 (CET) From: Stefan Sperling <stsp@stsp.name> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/118999: net/avahi-app fails to build as non-root Message-ID: <200712241445.lBOEjh8V036390@ted.stsp.lan> Resent-Message-ID: <200712241820.lBOIK176044002@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712241445.lBOEjh8V036390>