Bug 45207 - games/solarwolf has wrong permissions
Summary: games/solarwolf has wrong permissions
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: Maxim Sobolev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-11 11:10 UTC by sec
Modified: 2003-02-03 13:39 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 sec 2002-11-11 11:10:00 UTC
The games/solarwolf port doesn't work. It pops up a window containing an
error message:

| pygame.error:
| Couldn't read from 'data/music/aster2_sw.xm'

This is because the permissions of two files are incorrect:

baka:~>l /usr/local/share/solarwolf/data/music/
total 412
-rw-------  1 root  wheel  306876 Jun  2 00:22 arg.xm
-rw-------  1 root  wheel   94125 Jun  2 00:20 aster2_sw.xm

Fix: 

chmod a+r /usr/local/share/solarwolf/data/music/*
How-To-Repeat: 
cd /usr/ports/games/solarwolf
su 
make install clean 
^D
solarwolf
Comment 1 Neil Blakey-Milner 2002-11-11 12:46:51 UTC
On Mon 2002-11-11 (12:07), Stefan `Sec` Zehl wrote:
> >Description:
> 
> The games/solarwolf port doesn't work. It pops up a window containing an
> error message:
> 
> | pygame.error:
> | Couldn't read from 'data/music/aster2_sw.xm'
> 
> This is because the permissions of two files are incorrect:
> 
> baka:~>l /usr/local/share/solarwolf/data/music/
> total 412
> -rw-------  1 root  wheel  306876 Jun  2 00:22 arg.xm
> -rw-------  1 root  wheel   94125 Jun  2 00:20 aster2_sw.xm

I did the last upgrade, so this may be my fault.  However, I don't get
this locally.  I trust your umask is 077 as opposed to the standard 022?

I'm not sure if/how ports should handle this.  I don't really have time
at the moment, and my connectivity is sporadic, so can you please take a
look and see if there's a simple fix for this that doesn't involve a
post-install chmod?

Thanks,

Neil
-- 
Neil Blakey-Milner
nbm@mithrandr.moria.org
Comment 2 sec 2002-11-11 13:01:50 UTC
On Mon, Nov 11, 2002 at 02:46:51PM +0200, Neil Blakey-Milner wrote:
> On Mon 2002-11-11 (12:07), Stefan `Sec` Zehl wrote:
> > This is because the permissions of two files are incorrect:
> > 
> > baka:~>l /usr/local/share/solarwolf/data/music/
> > total 412
> > -rw-------  1 root  wheel  306876 Jun  2 00:22 arg.xm
> > -rw-------  1 root  wheel   94125 Jun  2 00:20 aster2_sw.xm
> 
> I did the last upgrade, so this may be my fault.  However, I don't get
> this locally.  I trust your umask is 077 as opposed to the standard 022?

That was my first thought, but no.
| baka:~>umask
| 022

I even installed that game on another (fresh) machine, and it had the
same effect. 

It seems to be broken in the distribution tar archive:

| baka:~>tar tvzf /usr/ports/distfiles/solarwolf-1.1.tar.gz |grep music
| drwxr-xr-x pete/users        0 Jun  2 03:02 2002 solarwolf-1.1/data/music/
| -rw------- pete/users   306876 Jun  2 00:22 2002 solarwolf-1.1/data/music/arg.xm
| -rw------- pete/users    94125 Jun  2 00:20 2002 solarwolf-1.1/data/music/aster2_sw.xm

> I'm not sure if/how ports should handle this.  I don't really have time
> at the moment, and my connectivity is sporadic, so can you please take a
> look and see if there's a simple fix for this that doesn't involve a
> post-install chmod?

I think a post-install chmod might be the only sane way.

CU,
    Sec
-- 
CUSTOMER: "I'm running Windows '95."       > TECH: "Yes."
CUSTOMER: "My computer isn't working now." > TECH: "Yes, you already said that."
                                           -- (found in comp.os.linux.misc)
Comment 3 Ying-Chieh Liao freebsd_committer freebsd_triage 2002-11-11 18:10:34 UTC
Responsible Changed
From-To: freebsd-ports->sobomax

over to maintainer
Comment 4 Maxim Sobolev freebsd_committer freebsd_triage 2003-02-03 13:39:26 UTC
State Changed
From-To: open->closed

The problem fixed, thank you for reporting!