Bug 89606

Summary: devel/subversion: Subversion sets incorrect permission for files in /usr/local/share/subversion
Product: Ports & Packages Reporter: takeda
Component: Individual Port(s)Assignee: Lev A. Serebryakov <lev>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

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!