Bug 62013 - lang/sbcl permissions incorrect when installed as non-root user
Summary: lang/sbcl permissions incorrect when installed as non-root user
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dag-Erling Smørgrav
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-28 00:30 UTC by David Magda
Modified: 2004-06-01 08:46 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Magda 2004-01-28 00:30:15 UTC
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

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.
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.)
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-01-30 09:30:03 UTC
Responsible Changed
From-To: freebsd-ports-bugs->des

Over to maintainer.
Comment 2 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2004-06-01 08:46:45 UTC
State Changed
From-To: open->closed

Fixed, thanks.