Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jan 2004 19:26:54 -0500 (EST)
From:      David Magda <dmagda+prbugs@ee.ryerson.ca>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        des@FreeBSD.org
Subject:   ports/62013: lang/sbcl permissions incorrect when installed as non-root user
Message-ID:  <200401280026.i0S0QsCk004520@number6.magda.ca>
Resent-Message-ID: <200401280030.i0S0UFCS054785@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         62013
>Category:       ports
>Synopsis:       lang/sbcl permissions incorrect when installed as non-root user
>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:   Tue Jan 27 16:30:15 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     David Magda
>Release:        FreeBSD 4.9-RC i386
>Organization:
We're organized?
>Environment:
System: FreeBSD number6.magda.ca 4.9-RC FreeBSD 4.9-RC #0: Sat Oct 4 10:05:26 EDT 2003 dave@number6.magda.ca:/usr/obj/usr/src/sys/MYKERNELE i386


>Description:

When installed as a regular (non-root) user, some of the files
end up being owned by root and some by the regular user.

See also PR/62011 for similiar problem with lang/cmucl

>How-To-Repeat:

As a non-root user:
  . cd /usr/ports/lang/sbcl
  . make install
     <much compiling; asks for root's password: enter it>
  . pkg_info -L sbcl-0.8.7 | grep local | xargs ls -l
     (Assumed installed into /usr/local, hence the local.) 

>Fix:

Use cpio(1) instead of tar(1) to copy the files over. An example from
www/mozilla/Makefile:

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}

cpio(1)'s "-R" option defines the user:group permissions at the
final destination.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401280026.i0S0QsCk004520>