Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 515676 - games-action/powermanga-0.91: scorefile path
Summary: games-action/powermanga-0.91: scorefile path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-29 15:51 UTC by Samuel Bauer
Modified: 2014-10-07 15:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
powermanga-0.91.ebuild.patch (powermanga-0.91.ebuild.patch,515 bytes, patch)
2014-06-29 15:51 UTC, Samuel Bauer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bauer 2014-06-29 15:51:14 UTC
Created attachment 379926 [details, diff]
powermanga-0.91.ebuild.patch

There's a slight problem with score file in powermanga 0.91

(EE) fopen(/usr/share/games/powermanga/powermanga.hi) return No such file or directory [menu_sections.c:791, high_scores_load_file]
(EE) fopen (/usr/share/games/powermanga/powermanga.hi) return: Permission denied [tools.c:997, file_write]
(EE) file_write (/usr/share/games/powermanga/powermanga.hi) failed [menu_sections.c:959, high_score_save]

The ebuild prepares the binary to seek scorefile in ${GAMES_DATADIR}/powermanga
> sed -i \
>        -e "/scoredir/s#/var/games/powermanga#${GAMES_DATADIR}/powermanga#" \
>        src/Makefile.am || die

But actually creates the score files in ${GAMES_STATESDIR}
>    insinto "${GAMES_STATEDIR}"
>    local f
>    for f in powermanga.hi-easy powermanga.hi powermanga.hi-hard ; do
>        touch "${D}${GAMES_STATEDIR}/${f}" || die
>        fperms 660 "${GAMES_STATEDIR}/${f}"
>    done

So that games isn't able to save score.

I add as an attachment a patch who sets the ebuild to seek and create score in the same directory
I arbitrarily chose ${GAMES_STATEDIR} but don't really know where the score file should be located.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2014-09-05 20:45:29 UTC
ug.  sorry for the delay.  thanks for the bug report and patch.
Comment 2 Samuel Bauer 2014-10-07 15:04:36 UTC
(In reply to Mr. Bones. from comment #1)

> thanks for the bug report and patch

Glad to help from time to time.