[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse-packaging
Subject:    Re: [opensuse-packaging] rpmlint rules for /var/run
From:       Todd Rme <toddrme2178 () gmail ! com>
Date:       2018-12-10 18:59:12
Message-ID: CADb7s=tuQGrZDScgrXq+b3uLMMgVTnyYayFqS1K5DjcviMmz1w () mail ! gmail ! com
[Download RAW message or body]

On Mon, Dec 10, 2018 at 4:47 AM Thorsten Kukuk <kukuk@suse.de> wrote:
>
> On Mon, Dec 10, Frederic Crozat wrote:
>
> > Le vendredi 07 d=C3=A9cembre 2018 =C3=A0 13:50 -0500, Todd Rme a =C3=A9=
crit :
> > > I am trying to get xrootd updated to work with systemd (as well as
> > > various other improvements), but I am running into two rules in
> > > rpmlint and I can't figure out how to make both checks pass.
> > >
> > > The problem is that it is expecting a directory in /var/run, and if I
> > > leave it off I get this warning:
> > >
> > > xrootd-server.i586: W: tmpfile-not-in-filelist /var/run/xrootd
> > > please add the specified file to your %files section as %ghost so
> > > users can
> > > easily query who created the file, it gets uninstalled on package
> > > removal and
> > > finally other rpmlint checks see it
> > >
> > > However, if I add it like this:
> > >
> > > %ghost %{_var}/run/%{name}
> > >
> > > Or this:
> > >
> > > %ghost %dir %{_var}/run/%{name}
> > >
> > > I get the following error:
> > >
> > > xrootd-server.x86_64: E: dir-or-file-in-var-run (Badness: 10000)
> > > /var/run/xrootd
> > > A file in the package is located in /var/run. It's not permitted for
> > > packages
> > > to install files in this directory.
> > >
> > > How can I set things up to satisfy both rules?
> >
> > First, /var/run is obsolete, you should use /run instead (/var/run is a
> > symlink to /run ).
> >
> > To create the directory, you should have tmpfiles in your package to
> > create it at install time and for each reboot.
> >
> > Everything should be explained in https://en.opensuse.org/openSUSE:Syst=
emd_packaging_guidelines
> > (Creating files and subdirectories in /var/run and /run section).
>
> Except that rpmlint needs to get fixed to check /run, too.
> %ghost in /run should also be forbidden like in /var/run.
>
> In general, %ghost for tmpfiles on tmpfs doesn't make any sense
> and only makes later a lot of trouble. This should be completly
> forbidden. And robustness is here more important than the wish of
> some people, to track every file with rpm -qf.
>
>   Thorsten


Then can we get rid of the rpmlint message saying %ghost is required
in /var/run?
-- 
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic