The guidelines for dynamically created files seem to be outdated, and mention using a %files entry like %verify(not size mtime md5) for such files. I thought that's the purpose of %ghost, and I've never seen the former used in any packages I touched, whereas I come across %ghost entries regularly, and I use it in some of my own packages as well.
%files
%verify(not size mtime md5)
%ghost
Should the Guidelines in the wiki / new docs be updated to reflect this? They have also not yet been reviewed since the move from the wiki to docs.fp.org and seem to have at least some minor conversion issues.
See rpmlint discussion: https://github.com/rpm-software-management/rpmlint/issues/326
Note, I'm not sure we should have anything about %verify or %ghost for contents being installed into /run//var/run or /tmp, as those are tmpfs and effectively non-persistent.
%verify
/run
/var/run
/tmp
We spoke about this at today's meeting:
https://meetbot-raw.fedoraproject.org/fedora-meeting-1/2019-09-19/fpc.2019-09-19-16.00.txt
Gentle ping. It looks like the rpmlint discussion ended up with the idea of using %ghost for tmpfiles.d content. Can the policy here be aligned in the same direction?
tmpfiles.d
I just came across this issue again in a package that I'm working on, and ... I completely forgot that I filed a ticket about this four years ago. :weary:
Login to comment on this ticket.