Date: Thu, 23 Jan 2003 19:14:11 -0500 (EST) From: David Magda <dmagda+fbugs@magda.ca> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/47420: cad/xcircuit: ownership is of user who built, not user who installed Message-ID: <200301240014.h0O0EBH7001445@number6.magda.ca>
next in thread | raw e-mail | index | archive | help
>Number: 47420 >Category: ports >Synopsis: cad/xcircuit: ownership is of user who built, not user who installed >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: Thu Jan 23 16:20:02 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: If I build as user 'dmagda', and then install as 'root', there are some files which are owned by 'dmagda'. This is bad.(tm) >How-To-Repeat: > make build ; as regular user # make install ; as root > ls -l /usr/X11R6/share/examples/xcircuit/ You'll find all the files in /usr/X11R6/share/examples/xcircuit/ owned by the regular user. >Fix: Instead of using tar(1) in the "do-install:" target, use cpio(1); this is how the problem was solved in the www/mozilla port. Currently you have: post-install: @${MKDIR} ${PREFIX}/share/examples/xcircuit ${TAR} -C ${WRKSRC}/examples --exclude CVS -cf - . | \ ${TAR} -C ${PREFIX}/share/examples/xcircuit --unlink -xf - Follow the www/mozilla example of using cpio: do-install: ${MKDIR} ${PREFIX}/lib/${MOZILLA} ${CHMOD} 755 ${PREFIX}/lib/${MOZILLA} cd ${WRKSRC}/dist/bin && ${FIND} . | \ cpio -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/${MOZILLA} [...] You can specify the final permissions with the "-R" option. >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?200301240014.h0O0EBH7001445>