Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#12227 - Dopewars won't start

Attached to Project: Arch Linux
Opened by Fredrik (vEX) - Monday, 24 November 2008, 18:47 GMT
Last edited by Thayer Williams (thayer) - Wednesday, 26 November 2008, 22:31 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Thayer Williams (thayer)
Architecture All
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Dopewars won't start, it complains about not being able to open /usr/var/dopewars.sco (the highscore file). The reason it can't open the file is that in the PKGBUILD $startdir/pkg/usr/var is moved to $startdir/pkg/var.

The fix is easy, just tell configure to use /var by passing "--localstatedir=$pkgdir/var" instead of moving the directory afterwards. I've attached a modified PKGBUILD that does that, changes a bunch of $startdir/pkg/ to $pkgdir/ and adds "|| return 1" to the "make install" call.

Additional info:
dopewars 1.5.12-2


Steps to reproduce:
Install dopewars and try to start it. Ie:

$ dopewars -t

** (process:31178): CRITICAL **: Cannot open high score file /usr/var/dopewars.sco.
(Permission denied.) Either ensure you have permissions to access
this file and directory, or specify an alternate high score file with the
-f command line option.

$ pacman -Ql dopewars|grep dopewars.sco
dopewars /var/dopewars.sco
This task depends upon

Closed by  Thayer Williams (thayer)
Wednesday, 26 November 2008, 22:31 GMT
Reason for closing:  Fixed
Additional comments about closing:  Thanks goes to Fredrik for the updated PKGBUILD and install file.
Comment by Fredrik (vEX) - Monday, 24 November 2008, 18:47 GMT
Apparently I forgot to save the change about adding "|| return 1" to the "make install" call.
Comment by Jan de Groot (JGC) - Tuesday, 25 November 2008, 08:13 GMT
I wouldn't like the scores file in /var/, it should be listed in /var/games instead. Note that a package upgrade should never overwrite the scores file, so create a default empty scores file in post_install/upgrade if there's no score file yet.
Comment by Fredrik (vEX) - Tuesday, 25 November 2008, 18:54 GMT
Good point, perhaps the 'backup' array in the PKGBUILD could be used? I'm not sure if anyone would want to keep their scores file on removal, but that way pacman will track the file.
Comment by Jan de Groot (JGC) - Tuesday, 25 November 2008, 22:40 GMT
In every game that I maintain, I create these score files in post_install and remove them in post_remove. There could be discussion about keeping score files after package removal though.
Comment by Thayer Williams (thayer) - Wednesday, 26 November 2008, 05:01 GMT
I haven't done anything with this package since adopting it because it's heading back to community/AUR, along with many other games currently in Extra.

If you want to submit a revised PKGBUILD, I'll commit the changes and push a new version tomorrow--otherwise it's going to be a while before I get to it between school work.
Comment by Fredrik (vEX) - Wednesday, 26 November 2008, 17:50 GMT
Here's an updated PKGBUILD as well as an install file.

Loading...