Date: Wed, 22 Jan 2003 20:27:23 -0500 (EST) From: David Magda <dmagda+fbugs@magda.ca> To: FreeBSD-gnats-submit@FreeBSD.org Cc: riggs@rrr.de Subject: ports/47381: ownership wrong if build as one user, install as another Message-ID: <200301230127.h0N1RN6A020459@number6.magda.ca>
next in thread | raw e-mail | index | archive | help
>Number: 47381 >Category: ports >Synopsis: ownership wrong if build as one user, install as another >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: Wed Jan 22 17:30:01 PST 2003 >Closed-Date: >Last-Modified: >Originator: David Magda >Release: FreeBSD 4.7-STABLE i386 >Organization: We're organized? >Environment: System: FreeBSD number6.magda.ca 4.7-STABLE FreeBSD 4.7-STABLE #0: Fri Dec 27 10:36:12 EST 2002 dave@number6.magda.ca:/usr/obj/usr/src/sys/MYKERNELE i386 >Description: The cad/linux-eagle is owned by whichever user does the 'make build' of the port, not the user who does the 'make install'. i.e., if I do a 'make build' as user 'dmagda', but I do a 'make install' as root, all the files in /usr/local/share/eagle will be have ownership dmagda:wheel. >How-To-Repeat: $make build (as a regular user) #make install (as root) #ls -l /usr/local/share/eagle/ >Fix: Instead of using tar(1), perhaps use cpio(1)? The www/mozilla port does this. From www/mozilla/Makefile (do-install: target): [...] cd ${WRKSRC}/dist/bin && ${FIND} . | \ cpio -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/${MOZILLA} [...] >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301230127.h0N1RN6A020459>