Re: macro(s) to use in RPM spec for /usr/lib/modules-load.d

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, May 19, 2018 at 05:55:16PM +0100, Sérgio Basto wrote:
> On Sat, 2018-05-19 at 15:08 +0000, Zbigniew Jędrzejewski-Szmek wrote:
> > On Sat, May 19, 2018 at 02:38:13PM +0100, Sérgio Basto wrote:
> > > On Fri, 2018-05-18 at 17:54 -0500, Jason L Tibbitts III wrote:
> > > > > > > > > "ES" == Eric Smith <spacewar@xxxxxxxxx> writes:
> > > > 
> > > > ES> What macro(s) should I use in an RPM spec to refer to a
> > > > directory
> > > > ES> like /usr/lib/modules-load.d, which is under /usr/lib even if
> > > > libdir
> > > > ES> is /usr/lib64?  Is there something better than
> > > > ES> %{_usr}/lib/modules-load.d?
> > > > 
> > > > It seems that there isn't.  I would just use /usr/lib/modules-
> > > > load.d
> > > > directly.
> > > > 
> > > > You will get an rpmlint complaint about direct use of /usr/lib, I
> > > > suppose.  Not much to be done about that.  Technically a macro
> > > > for
> > > > this
> > > > could be added, but only a few packages need to do this so I
> > > > suspect
> > > > it
> > > > wouldn't be worth it.
> > > 
> > > from VirtualBox.spec we use :
> > > 
> > > %{_prefix}/lib/modules-load.d/
> > 
> > https://github.com/systemd/systemd/pull/9036
> 
> Quote:
> "
> %_environmnentdir /usr/lib/environment.d
> %_modulesloaddir /usr/lib/modules-load.d
> %_modprobedir /usr/lib/modprobe.d
> 
> This makes installing files there more convenient because people don't
> need to construct the path from %_prefix/lib/… .
> 
> See https://lists.fedoraproject.org/archives/list/devel@lists.fedorapro
> ject.org/thread/GBF5WJLTQVSXMHGYGBF3723ZYCWFBR7C/.
> "
> 
> hum , when this systemd will be availble on Fedora 28 ? 
"this systemd" == "systemd 239", not released yet.
Generally, we don't upgrade systemd in a given Fedora release, because
of concerns about backward compatibility. But this is trivial to backport,
so we certainly could add it in F28 or even F27.

> BTW about loadmodules [1], fedora-loadmodules.service is in initscripts
>  package[2] and have some files related files [3] but is not used by
> any package [4] , this is really necessary ? have this second location.
> Shouldn't fedora-loadmodules.service be remove from initscripts ?
fedora-loadmodules.service is about /etc/sysconfig/modules/*.modules and
/etc/rc.modules, which are scripts that are executed by this service.

modules-load.d is a bunch of declarative files that list modules to load.

The initscripts maintainer is planning to deprecate some parts, including
fedora-loadmodules.service, but this has no bearing really on this PR.

Zbyszek
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx/message/LCXHYBIQO55ZX5TBF3P2PPSLO66NSM6J/




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux