ports/62011: lang/cmucl permissions incorrect after install by regular user

David Magda dmagda+prbugs at ee.ryerson.ca
Tue Jan 27 23:51:17 UTC 2004


>Number:         62011
>Category:       ports
>Synopsis:       lang/cmucl permissions incorrect after install by regular 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 15:50:21 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:

If you install the lang/cmucl port as a regular (non-root) user,
the final permissions on many files are incorrect.

The distfile is un-tar(1)ed by the regular user, inheriting his permissions.
The 'install' target however uses tar(1) to copy many files to the
final destination in ${PREFIX}. The regular user permissions are also
transfered to the destination.

>How-To-Repeat:
	
As a regular user:
  . cd /usr/ports/lang/cmucl
  . make install
    <you will be asked for root password; enter it>
  . pkg_info -L cmucl-18e | grep local | xargs ls -l
    (Assuming the files are put into /usr/local; hence the local.)

After the last command you'll see files both owned by root, and by the
regular user who ran the 'make install'.

>Fix:

Instead of using tar(1) to copy the files use cpio(1). An
example can be seen in 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 specifies the owner:group that will be used
at the destination.

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



More information about the freebsd-ports-bugs mailing list