From dmagda@magda.ca  Thu Jan 23 16:14:18 2003
Return-Path: <dmagda@magda.ca>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EBFA737B401
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>;
          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 <FreeBSD-gnats-submit@freebsd.org>; 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 <dmagda+fbugs@magda.ca>
Reply-To: David Magda <dmagda+fbugs@ee.ryerson.ca>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: cad/xcircuit: ownership is of user who built, not user who installed
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 23 16:20:02 PST 2003
>Closed-Date:    Mon Jul 28 22:39:18 PDT 2003
>Last-Modified:  Mon Jul 28 22:39:18 PDT 2003
>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:
State-Changed-From-To: open->closed 
State-Changed-By: maho 
State-Changed-When: Mon Jul 28 22:38:13 PDT 2003 
State-Changed-Why:  
Your issue was fixed in pr #52662 with update to 2.3.3 to 
3.1.5. Sorry for delay, and thanks for your report. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47420 
>Unformatted:
