Bug 4302 - add ghost entries to rpm packages
Summary: add ghost entries to rpm packages
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Other (show other bugs)
Version: pre-1.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.0.0
Assignee: Pierre Ossman
URL:
Keywords: astrand_tester
Depends on:
Blocks:
 
Reported: 2012-05-22 10:51 CEST by Pierre Ossman
Modified: 2012-11-28 12:29 CET (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2012-05-22 10:51:43 CEST
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.
Comment 1 Pierre Ossman cendio 2012-08-30 13:56:42 CEST
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 the system.

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).
Comment 2 Peter Åstrand cendio 2012-10-18 14:56:37 CEST
On SLED11:

# ./rpmunknowns /etc/ /usr/ /opt/ /bin /lib /lib64 /var | grep thinlinc
./rpmunknowns:26: DeprecationWarning: The popen2 module is deprecated.  Use the subprocess module.
  import popen2
/etc/cups/thinlinc-ps2pdf.convs
/usr/share/icons/hicolor/24x24/apps/thinlinc-webadm.png
/usr/share/icons/hicolor/24x24/apps/thinlinc-setup.png
/usr/share/icons/hicolor/48x48/apps/thinlinc-webadm.png
/usr/share/icons/hicolor/48x48/apps/thinlinc-setup.png
/usr/share/icons/hicolor/scalable/apps/thinlinc-setup.svg
/usr/share/icons/hicolor/scalable/apps/thinlinc-webadm.svg
/usr/share/icons/hicolor/16x16/apps/thinlinc-webadm.png
/usr/share/icons/hicolor/16x16/apps/thinlinc-setup.png
/usr/share/applications/thinlinc-setup.desktop
/usr/share/applications/thinlinc-webadm.desktop
/usr/lib64/cups/filter/thinlinc-ps2pdf
/var/opt/thinlinc/statistics/users-licenses.rrd
/var/log/thinlinc-user-licenses
/var/log/thinlinc-install.log

As far as I can tell, no files in the output above are suitable for %ghost marking. 

rpm -V behaves ok.

Note You need to log in before you can comment on or make changes to this bug.