From owner-freebsd-ports-bugs Thu Jan 23 16:20: 6 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B10237B401 for ; Thu, 23 Jan 2003 16:20:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACF7843EB2 for ; Thu, 23 Jan 2003 16:20:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0O0K2NS021528 for ; Thu, 23 Jan 2003 16:20:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0O0K2UC021527; Thu, 23 Jan 2003 16:20:02 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBFA737B401 for ; Thu, 23 Jan 2003 16:14:18 -0800 (PST) Received: from tomts21-srv.bellnexxia.net (tomts21.bellnexxia.net [209.226.175.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE76F43F13 for ; Thu, 23 Jan 2003 16:14:12 -0800 (PST) (envelope-from dmagda@magda.ca) Received: from number6.magda.ca ([64.229.227.247]) by tomts21-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20030124001411.RBKI7873.tomts21-srv.bellnexxia.net@number6.magda.ca> for ; Thu, 23 Jan 2003 19:14:11 -0500 Received: from number6.magda.ca (localhost.magda.ca [127.0.0.1]) by number6.magda.ca (8.12.6/8.12.6) with ESMTP id h0O0EBcI001446 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 23 Jan 2003 19:14:11 -0500 (EST) (envelope-from dmagda@magda.ca) Received: (from dmagda@localhost) by number6.magda.ca (8.12.6/8.12.6/Submit) id h0O0EBH7001445; Thu, 23 Jan 2003 19:14:11 -0500 (EST) (envelope-from dmagda) Message-Id: <200301240014.h0O0EBH7001445@number6.magda.ca> Date: Thu, 23 Jan 2003 19:14:11 -0500 (EST) From: David Magda Reply-To: David Magda To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/47420: cad/xcircuit: ownership is of user who built, not user who installed Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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