Bugzilla – Bug 4302
add ghost entries to rpm packages
Last modified: 2012-11-28 12:29:24
You need to
before you can comment on or make changes to this bug.
RPM has a feature called "ghost" files, where you can mark files as belonging
to a package even though they weren't actually included in the package. This is
useful for things like log files, or stuff that tl-setup creates.
We should go through our RPMs and make sure we have ghost entries for
everything we create.
deb doesn't have this feature, so conversion will just drop the entries.
Added entries for all things with a well known path. We can't really do much
about the things where we won't know the location until tl-setup can analyse
All .py files are assumed to create a .pyc file at some point.
Did not put entries for log files or data files. The reasoning being that you
probably want to keep these files, even if you remove the rpm.
Tester should check that we didn't forget about something, as well as test that
the RPM behaves sanely (rpm -qf, nothing odd from -V).
# ./rpmunknowns /etc/ /usr/ /opt/ /bin /lib /lib64 /var | grep thinlinc
./rpmunknowns:26: DeprecationWarning: The popen2 module is deprecated. Use the
As far as I can tell, no files in the output above are suitable for %ghost
rpm -V behaves ok.