[opensuse-packaging] disable /run RPMLINT check
HI! Can I disable this RPMLINT check? [ 168s] RPMLINT report: [ 168s] =============== [ 176s] (none): E: badness 10000 exceeds threshold 1000, aborting. [ 176s] openldap2.x86_64: E: non-ghost-in-run (Badness: 10000) /run/slapd [ 176s] A file or directory in the package is located in /run. Files installed in this [ 176s] directory should be marked as %ghost and created at runtime to work properly [ 176s] in tmpfs /run setups. While I understand the motivation this leads to more troubles with packages trying to support older distribution versions where /run is not yet available. Or is that no concern anymore? Ciao, Michael.
On Sat, Apr 25, 2015 at 2:58 PM, Michael Ströder <michael@stroeder.com> wrote:
HI!
Can I disable this RPMLINT check?
[ 168s] RPMLINT report: [ 168s] =============== [ 176s] (none): E: badness 10000 exceeds threshold 1000, aborting. [ 176s] openldap2.x86_64: E: non-ghost-in-run (Badness: 10000) /run/slapd [ 176s] A file or directory in the package is located in /run. Files installed in this [ 176s] directory should be marked as %ghost and created at runtime to work properly [ 176s] in tmpfs /run setups.
While I understand the motivation this leads to more troubles with packages trying to support older distribution versions where /run is not yet available. Or is that no concern anymore?
Ciao, Michael.
Do not add those files to the spec, either as real files or ghost'ed. but ensure /run/slapd directory is created by using a tmpfles.d snippet and calling %{?tmpfiles_create:%tmpfiles_create %{_tmpfilesdir}/foo.conf} in %post *before* any other macro that could reload or restart the service. I would argue that nothing should own any file or directory in /run. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Sat, Apr 25, Michael Ströder wrote:
While I understand the motivation this leads to more troubles with packages trying to support older distribution versions where /run is not yet available.
Always use /var/run because this directory is supposed to exist even today. Olaf -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Olaf Hering wrote:
On Sat, Apr 25, Michael Ströder wrote:
While I understand the motivation this leads to more troubles with packages trying to support older distribution versions where /run is not yet available.
Always use /var/run because this directory is supposed to exist even today.
But there's another lint check refusing to use /var/run. Ciao, Michael.
On Sun, Apr 26, Michael Ströder wrote:
But there's another lint check refusing to use /var/run.
Depending on what it really does, that sounds broken. /var/run is valid. Olaf -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Sun, Apr 26, 2015 at 7:43 AM, Olaf Hering <olaf@aepfle.de> wrote:
On Sun, Apr 26, Michael Ströder wrote:
But there's another lint check refusing to use /var/run.
Depending on what it really does, that sounds broken. /var/run is valid.
/var/run still exists as a symlink to /Run so third party applications and old packages keep working, new packages should not use it. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Sun, Apr 26, Cristian Rodríguez wrote:
On Sun, Apr 26, 2015 at 7:43 AM, Olaf Hering <olaf@aepfle.de> wrote:
On Sun, Apr 26, Michael Ströder wrote:
But there's another lint check refusing to use /var/run.
Depending on what it really does, that sounds broken. /var/run is valid.
/var/run still exists as a symlink to /Run so third party applications and old packages keep working, new packages should not use it.
I think they should. That would avoid hassle like this, wasted time like this and it avoids spec file pollution like this. The whole /run thing could have been done transparent for packagers by just creating the /var/run -> ../run symlink. Olaf -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hello, Am Sonntag, 26. April 2015 schrieb Olaf Hering:
On Sat, Apr 25, Michael Ströder wrote:
While I understand the motivation this leads to more troubles with packages trying to support older distribution versions where /run is not yet available.
Always use /var/run because this directory is supposed to exist even today.
I slightly doubt ;-) # rpm -qlv filesystem |grep /var/run lrwxrwxrwx 1 root root 4 Sep 28 2014 /var/run -> /run That's from my ~4 weeks old factory install. Regards, Christian Boltz -- Zwar sind CSS-Bugs kein Alleinstellungsmerkmal des Internet Explorers, jedoch beansprucht Microsoft seit vielen Jahren die Marktführerschaft. [Dirk Jesse auf http://www.highresolution.info/spotlight/entry/was_sie_ueber_css-frameworks_...] -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (4)
-
Christian Boltz
-
Cristian Rodríguez
-
Michael Ströder
-
Olaf Hering