Bug 116485 - games/vultures-eye gets a permission denied after typing the name
Summary: games/vultures-eye gets a permission denied after typing the name
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: Thomas Abthorpe
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-20 08:20 UTC by G.V. Tjong A Hung
Modified: 2008-05-20 13:40 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 G.V. Tjong A Hung 2007-09-20 08:20:00 UTC
When starting up it gives the following error when typing a name.
> vultureseye 
ERROR: could not open log file vultures_log.txt for appending: Permission denied
[/usr/local/share/vultures-eye/vultureseye]: No write permission to lock perm!
No write permission to lock perm!

How-To-Repeat: pkg_add -r vultureseye
Start up vultureseye after installing it.
The same occurs when building/make package it(in a jail) and then installing it on the host.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-09-20 08:21:30 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Stefan Walter freebsd_committer freebsd_triage 2007-10-06 15:17:11 UTC
Hi G.V.,

I cannot reproduce the problem described by you. What is the output of the
following command on the system on which you experience this problem?

ls -ld /usr/local/share/vultures-eye /usr/local/share/vultures-eye/*

Best regards,
Stefan
Comment 3 Stefan Walter freebsd_committer freebsd_triage 2007-10-06 15:19:51 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stefan

Take.
Comment 4 Stefan Walter freebsd_committer freebsd_triage 2007-10-12 14:27:04 UTC
Reply received as private mail:

Gabor Tjong A Hung, 11.10.07, 16:36h CEST:

> On 10/6/07, Stefan Walter <stefan@freebsd.org> wrote:
> >
> > Hi G.V.,
> >
> > I cannot reproduce the problem described by you. What is the output of the
> > following command on the system on which you experience this problem?
> >
> > ls -ld /usr/local/share/vultures-eye /usr/local/share/vultures-eye/*
> >
> > Best regards,
> > Stefan
> >
> 
> 
> 
> -- 
> "If you don't know where you are going, any road will take you there" ?
> George Harrison

> > ls -ld /usr/local/share/vultures-eye /usr/local/share/vultures-eye/*
> drwxr-xr-x  8 root   wheel      512 Sep 20 09:04 /usr/local/share/vultures-eye
> drwxr-xr-x  2 root   wheel      512 Sep 20 09:04 /usr/local/share/vultures-eye/config
> -rw-rw-r--  1 games  games     1693 Sep 19 23:52 /usr/local/share/vultures-eye/defaults.nh
> drwxr-xr-x  2 root   wheel      512 Sep 20 09:04 /usr/local/share/vultures-eye/fonts
> drwxr-xr-x  2 root   wheel      512 Sep 20 09:04 /usr/local/share/vultures-eye/graphics
> -rw-rw-r--  1 games  games     4875 Sep 19 23:52 /usr/local/share/vultures-eye/license
> -rw-rw-r--  1 games  games        0 Sep 19 23:52 /usr/local/share/vultures-eye/logfile
> drwxr-xr-x  3 root   wheel      512 Sep 20 09:04 /usr/local/share/vultures-eye/manual
> drwxr-xr-x  2 root   wheel      512 Sep 20 09:04 /usr/local/share/vultures-eye/music
> -rw-rw-r--  1 games  games   585403 Sep 19 23:52 /usr/local/share/vultures-eye/nhdat
> -rw-rw-r--  1 games  games        0 Sep 19 23:52 /usr/local/share/vultures-eye/perm
> -rw-rw-r--  1 games  games        0 Sep 19 23:52 /usr/local/share/vultures-eye/record
> -rwxr-xr-x  1 games  games     7936 Sep 19 23:52 /usr/local/share/vultures-eye/recover
> drwxr-xr-x  2 root   wheel      512 Sep 20 09:04 /usr/local/share/vultures-eye/sound
> -rwxr-sr-x  1 games  games  3590801 Sep 19 23:52 /usr/local/share/vultures-eye/vultureseye
> -rw-rw-r--  1 games  games    25214 Sep 19 23:52 /usr/local/share/vultures-eye/vultureseye.ico
> -rw-rw-r--  1 games  games     3363 Sep 19 23:52 /usr/local/share/vultures-eye/vultureseye.png
Comment 5 Stefan Walter freebsd_committer freebsd_triage 2007-10-14 15:31:33 UTC
/usr/local/share/vultures-eye and its contents should all be owned by
games:games and be group-writable. For some reason, permissions of
directories aren't preserved when creating the binary package. For now,
you could just install vultures-eye via the port instead of using the
package as a workaround.

It would be possible to set the directories' permissions via a script
after installation of the binary package, but I think there should be a
better solution...

Stefan
Comment 6 Stefan Walter freebsd_committer freebsd_triage 2007-10-17 16:04:17 UTC
State Changed
From-To: feedback->open

Maintainer's feedback no longer necessary, this seems to be a problem with 
package building.
Comment 7 Stefan Walter freebsd_committer freebsd_triage 2007-10-17 16:05:08 UTC
Responsible Changed
From-To: stefan->freebsd-ports-bugs

Give this back to the pool. I don't have enough time to have a closer look at it 
now, someone else might.
Comment 8 Pav Lucistnik freebsd_committer freebsd_triage 2007-12-16 12:14:04 UTC
A set of
@exec chmod games:games %D/directory
lines need to be added to the end of the pkg-plist, otherwise
permissions on the directories are bound to be root:wheel.

Maintainer, can you look into it?

-- 
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>
Can't sing. Can't dance. Can handle a sword a little.
Comment 9 Li-Lun Wang 2008-05-14 05:03:31 UTC
Sorry I forgot about this pr.
The following patch should take care of the directory issues.

diff -urN vultures-eye.orig/pkg-plist vultures-eye/pkg-plist
--- vultures-eye.orig/pkg-plist 2006-06-08 22:30:08.000000000 -0500
+++ vultures-eye/pkg-plist 2008-05-13 22:57:45.000000000 -0500
@@ -134,12 +134,31 @@
 %%DATADIR%%/vultureseye
 %%DATADIR%%/vultureseye.ico
 %%DATADIR%%/vultureseye.png
-@dirrm %%DATADIR%%/sound
+@exec mkdir -p %D/%%DATADIR%%/save
+@exec chown games:games %D/%%DATADIR%%
+@exec chown games:games %D/%%DATADIR%%/config
+@exec chown games:games %D/%%DATADIR%%/fonts
+@exec chown games:games %D/%%DATADIR%%/manual
+@exec chown games:games %D/%%DATADIR%%/manual/img
+@exec chown games:games %D/%%DATADIR%%/music
+@exec chown games:games %D/%%DATADIR%%/graphics
+@exec chown games:games %D/%%DATADIR%%/save
+@exec chown games:games %D/%%DATADIR%%/sound
+@exec chmod 775 %D/%%DATADIR%%
+@exec chmod 775 %D/%%DATADIR%%/config
+@exec chmod 775 %D/%%DATADIR%%/fonts
+@exec chmod 775 %D/%%DATADIR%%/manual
+@exec chmod 775 %D/%%DATADIR%%/manual/img
+@exec chmod 775 %D/%%DATADIR%%/music
+@exec chmod 775 %D/%%DATADIR%%/graphics
+@exec chmod 775 %D/%%DATADIR%%/save
+@exec chmod 775 %D/%%DATADIR%%/sound
+@dirrmtry %%DATADIR%%/sound
 @dirrmtry %%DATADIR%%/save
-@dirrm %%DATADIR%%/music
-@dirrm %%DATADIR%%/manual/img
-@dirrm %%DATADIR%%/manual
-@dirrm %%DATADIR%%/graphics
-@dirrm %%DATADIR%%/fonts
+@dirrmtry %%DATADIR%%/music
+@dirrmtry %%DATADIR%%/manual/img
+@dirrmtry %%DATADIR%%/manual
+@dirrmtry %%DATADIR%%/graphics
+@dirrmtry %%DATADIR%%/fonts
 @dirrmtry %%DATADIR%%/config
 @dirrmtry %%DATADIR%%
Comment 10 Thomas Abthorpe freebsd_committer freebsd_triage 2008-05-14 20:58:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->tabthorpe

I'll take it.
Comment 11 Thomas Abthorpe freebsd_committer freebsd_triage 2008-05-15 20:02:48 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This patch seems to work, I want to test just a little more, and then I will 
commit.


Thomas

- -- 
Thomas Abthorpe		| FreeBSD Committer
tabthorpe@FreeBSD.org	| http://people.freebsd.org/~tabthorpe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkgsiN8ACgkQ5Gm/jNBp8qDwFwCfQ5C1lpzMsvSPJzG2GNL3UAna
FV0An2KGU/sdJlmNhQLy8oz6kFc2FhuI
=u0kR
-----END PGP SIGNATURE-----
Comment 12 dfilter service freebsd_committer freebsd_triage 2008-05-20 13:39:17 UTC
tabthorpe    2008-05-20 12:39:08 UTC

  FreeBSD ports repository

  Modified files:
    games/vultures-eye   Makefile pkg-plist 
  Log:
  - Fix permissions on directories
  - Remove USE_GCC while I am here
  - Bump PORTREVISION
  
  PR:             ports/116485 (inspired by)
  Submitted by:   Li-Lun "Leland" Wang <llwang infor.org> (maintainer)
  
  Revision  Changes    Path
  1.9       +1 -2      ports/games/vultures-eye/Makefile
  1.3       +25 -6     ports/games/vultures-eye/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 13 Thomas Abthorpe freebsd_committer freebsd_triage 2008-05-20 13:39:46 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!