[systemd-devel] System units packaging and rpmlint

Frederic Crozat fcrozat at suse.com
Tue May 21 01:29:32 PDT 2013


Le lundi 20 mai 2013 à 19:58 -0700, T.C. Hollingsworth a écrit :
> On Sat, May 18, 2013 at 2:44 PM, Michael Scherer <misc at zarb.org> wrote:
> > So I planned to warn if the unit are directly in /lib, but I know there
> > is some distribution that didn't choose this path yet. So when /usr is
> > not merged, what is the canonical location ( ie, for Opensuse, Mandriva,
> > since they are both rpm based ) ?
> 
> Shouldn't rpmlint just make sure the spec uses "%{_unitdir}"?  Nothing
> except the systemd package should hardcode this directory.
> 
> (Or if the check has to be on the binary RPM side, just `rpm --eval
> '%_unitdir'` for the right location?)

Yes, I agree with this suggestion. This way, even if a new rpmlint
release was used on a "old" openSUSE (where /lib/systemd/system was
used), it would still work. 

-- 
Frederic Crozat <fcrozat at suse.com>
SUSE



More information about the systemd-devel mailing list