Date: Sun, 21 Nov 1999 15:44:31 +0100 (CET) From: mkamm@gmx.net To: FreeBSD-gnats-submit@freebsd.org Subject: ports/15021: port installs fail for non-root users Message-ID: <199911211444.PAA07758@localhost.kfunigraz.ac.at>
next in thread | raw e-mail | index | archive | help
>Number: 15021 >Category: ports >Synopsis: some port installs fail for non-root users >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Nov 21 09:50:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Martin Kammerhofer >Release: FreeBSD 3.3-STABLE i386 >Organization: Graz University >Environment: >Description: Ideally ports should be installable by non-root users with make PREFIX=$HOME install clean In practise this often fails because install(1) tries to set user and group. There are already provisions in bsd.port.mk for compatibility with euid!=0 users. (Search for 'id -u' in bsd.port.mk!) The patch below just fixes another case. >How-To-Repeat: >Fix: --- bsd.port.mk.orig Sat Nov 13 18:34:55 1999 +++ bsd.port.mk Sun Nov 21 15:15:45 1999 @@ -787,6 +787,8 @@ MTREE_ARGS?= -U -f ${MTREE_FILE} -d -e -p # A few aliases for *-install targets +UID != id -u +.if ${UID} == 0 INSTALL_PROGRAM= \ ${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} INSTALL_SCRIPT= \ @@ -795,6 +797,12 @@ ${INSTALL} ${COPY} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} INSTALL_MAN= \ ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} +.else +INSTALL_PROGRAM= ${INSTALL} ${COPY} ${STRIP} -m ${BINMODE} +INSTALL_SCRIPT= ${INSTALL} ${COPY} -m ${BINMODE} +INSTALL_DATA= ${INSTALL} ${COPY} -m ${SHAREMODE} +INSTALL_MAN= ${INSTALL} ${COPY} -m ${MANMODE} +.endif INSTALL_MACROS= BSD_INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ BSD_INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911211444.PAA07758>