From owner-freebsd-ports Mon Apr 12 4:12:22 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 98604154D3 for ; Mon, 12 Apr 1999 04:12:20 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id EAA88447; Mon, 12 Apr 1999 04:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 12 Apr 1999 04:10:03 -0700 (PDT) Message-Id: <199904121110.EAA88447@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) Subject: Re: ports/11093: remind user that he needs to be root to install port Reply-To: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/11093; it has been noted by GNATS. From: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) To: bfoz@glue.umd.edu Cc: sue@welearn.com.au, meshko@cs.brandeis.edu, freebsd-gnats-submit@FreeBSD.ORG Subject: Re: ports/11093: remind user that he needs to be root to install port Date: Mon, 12 Apr 1999 04:09:11 -0700 (PDT) * From: Brandon Fosdick * I do this all the time too. The documentation needs a little help in this area * since it's not explicitly stated that you need to be root. (BTW, I like the * handbook's new look) But I also think that a simple check very early on in the * make process would help things immensely. At the very least it would help us * forgetful types. Just make sure that the error message is very clear, something * like, "You forgot to su dummy!". :) Well, it's not style to yell like that. How about something like this as a start? === Index: bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.309 diff -u -r1.309 bsd.port.mk --- bsd.port.mk 1999/04/08 07:13:38 1.309 +++ bsd.port.mk 1999/04/12 10:54:26 @@ -1650,6 +1650,8 @@ ${ECHO_MSG} "Warning: not superuser, can't run mtree."; \ ${ECHO_MSG} "Become root and try again to ensure correct permissions."; \ fi +.else + ${ECHO_MSG} "Warning: not superuser, you may get some errors during installation."; \ .endif .endif @cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} ${.TARGET:S/^real-/pre-/} === (BTW, the ".else" is for the .if defined(NO_MTREE) case.) -PW To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message