[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ports/47381: ownership wrong if build as one user, install as another
>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@xxxxxxxxxxxxxxxx:/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@xxxxxxxxxxx
with "unsubscribe freebsd-ports-bugs" in the body of the message