Bug 89606 - devel/subversion: Subversion sets incorrect permission for files in /usr/local/share/subversion
Summary: devel/subversion: Subversion sets incorrect permission for files in /usr/loca...
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: Lev A. Serebryakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-26 21:30 UTC by takeda
Modified: 2005-12-16 18:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description takeda 2005-11-26 21:30:03 UTC
The port uses tar to copy files:
cd ${WRKSRC}/tools ; \
  tar --exclude '*.in' -cf - * | tar -C ${PREFIX}/share/subversion -xf -

This way installed files preserve permissions from the ones in archive, the problem with archive is that files only have permissions for owner and the group, nobody else can access them.

Fix: 

There are many ways to fix it, but I don't know which one is best:
find /usr/local/share/subversion -type d | xargs chmod o+rx
find /usr/local/share/subversion -type f -perm -100 | xargs chmod o+x
find /usr/local/share/subversion -type f -perm -400 | xargs chmod o+r

This is probably good to fix permissions once the port is installed, I guess the best would be to use loop and do $(INSTALL) for every file.
How-To-Repeat: Just install the port and check for permissions in /usr/local/share/subversion
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2005-11-26 21:33:23 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lev

Over to maintainer
Comment 2 Lev A. Serebryakov freebsd_committer freebsd_triage 2005-12-16 18:54:23 UTC
State Changed
From-To: open->closed


Fixed, thanks!