ports/62013: lang/sbcl permissions incorrect when installed as non-root user

David Magda dmagda+prbugs at ee.ryerson.ca
Wed Jan 28 00:30:32 UTC 2004


>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 at 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:



More information about the freebsd-ports-bugs mailing list