Bug ID 1173166
Summary [rpmlint] falsely marks %ghosted directory in /var/run as error
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware All
OS openSUSE Factory
Status NEW
Severity Normal
Priority P5 - None
Component Other
Assignee dmueller@suse.com
Reporter eich@suse.com
QA Contact qa-bugs@suse.de
Found By Development
Blocker ---

rpmlint throws a temper tantrum on a %ghost'ed directory in /var/run:
specfile:
...
%ghost %{_localstatedir}/run/%{name}
...

rpmlint output:
...
[   47s] munge.x86_64: E: dir-or-file-in-var-run (Badness: 10000)
/var/run/munge
[   47s] A file in the package is located in /var/run. It's not permitted for
packages
[   47s] to install files in this directory.
...

But without the above %ghost-line, it recommends to add one:
...
[   48s] munge.x86_64: W: tmpfile-not-in-filelist /var/run/munge
[   48s] please add the specified file to your %files section as %ghost so
users can
[   48s] easily query who created the file, it gets uninstalled on package
removal and
[   48s] finally other rpmlint checks see it
...

Needless to say, it would be nice if rpmlint would  inform the user to use
%_rundir for the location of the 'run'-directory as /var/run has been a symlink
to /run for quite a while now.


You are receiving this mail because: