Re: pyracerz: Games crashes with Permission denied when writing highscores
Simon McVittie <[email protected]> Wed, 29 Apr 2026 09:51:05 +0100
| Newsgroups | gmane.linux.debian.devel.games |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 28 Apr 2026 at 23:18:00 +0200, Alexandre Detiste wrote:
>I could maybe use dh-cruft for that purpose, the generated
>/var/lib/dpkg/info/pyracerz.postrm would look similar
>and that's not the main point discussed here.
>... but help in dh-cruft on how to translate the
>"rmdir --ignore-fail-on-non-empty /var/games"
>in some declarative stanza is welcome
This seems like something that several games are going to need: anything
that is following the deprecated "high scores in /var/games" pattern,
and anything with a Quake-style dedicated server as a system service.
>...or maybe even generating d/postrm from debian/<game>.tmpfiles ... :-)
>https://salsa.debian.org/games-team/iortcw/-/commit/aa9bd17b85ac4756bfc4d3b10131d44891fa7ec0
In debhelper compat level 14, dh_installtmpfiles will inline the
tmpfiles.d(5) snippet into the postrm and pass it to `systemd-tmpfiles
--purge` during purge, so lines with `d$` will be deleted during purge.
I didn't do this in iortcw, etc. for the moment while compat 14 is in beta,
but it'll be available to us in future.
There doesn't seem to be anything we can say in tmpfiles.d(5) that would
do the equivalent of `rmdir --ignore-fail-on-non-empty /var/games`
though.
smcv