Mailinglist Archive: opensuse-bugs (4037 mails)

< Previous Next >
[Bug 710281] wpa_supplicant: fails rpmlint check non-ghost-in-var-run

https://bugzilla.novell.com/show_bug.cgi?id=710281

https://bugzilla.novell.com/show_bug.cgi?id=710281#c5


--- Comment #5 from Ludwig Nussel <lnussel@xxxxxxxx> 2011-08-31 11:17:09 CEST
---
(In reply to comment #3)
(In reply to comment #0)
for 12.1 as /var/run is on tmpfs now.

I've added [1] in the spec file and the package [2] builds again in
openSUSE_Factory. But, could you help me with the packaging ? IMHO, the %ghost
directive shall apply only for tmpfs. How this condition could be coded in the
spec-file ?

You mean for older distros? The %ghost will work just fine there as well.

[1]
%dir %{_localstatedir}/run/%{name}
%ghost %{_localstatedir}/run/%{name}

You only actually need one line:
%ghost %dir %{_localstatedir}/run/%{name}

Or with attributes:
%ghost %attr (755, root, root) %dir %{_localstatedir}/run/%{name}

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References