[Rpm-maint] [PATCH] add support for scriptlet deps in generated deps

Neal Gompa ngompa13 at gmail.com
Wed Sep 12 17:15:19 UTC 2018


On Wed, Sep 12, 2018 at 9:41 AM Thierry Vignaud
<thierry.vignaud at gmail.com> wrote:
>
> Le mer. 12 sept. 2018 à 14:30, Igor Gnatenko
> <ignatenkobrain at fedoraproject.org> a écrit :
> >> In Mageia, we eg had:
> >> 1) manual "requires(post)" or "requires(posttrans): info-install"
> >>     (info-install being the package containing /sbin/ /sbin/install-info
> >> 2) plus manual %post or %posttrans calling install-info
> >>
> >> This was a manual process, so it was sometimes missed in some pkgs.
> >
> >
> > That's why Fedora switched to transfiletrigger. It is much better ;)
>
> But we still need the pkgs container the info files to require the
> needed /sbin/info-install
>
> >> We've replaced those manual requires+scriptlets by a filetrigger.
> >> But we still want info-install to be installed, so in order to replace
> >> the manual requires, we want to automatically emit the requires on
> >> info-install
> >> But we don't want to emit "requires: info-install",
> >> what we want really is "requires(posttrans): info-install"
> >>
> >> The patch enables to emit requires for scriptlets or filetriggers.
> >
> >
> > This is too specific use case I think..
>
> That's an example but there could be more

I think the idea usually is that the file trigger would not fire if
the package isn't installed, so forcing a dependency here means that
there was no benefit to separating it out to be run only when it was
needed. It basically makes it impossible to avoid running the trigger.

In the case of info, there's no point in running the info commands if
info itself is not installed. You can't use them anyway. :)

That said, there may be a case where we might want this, so I'm not
completely ruling out its relevance.


-- 
真実はいつも一つ!/ Always, there's only one truth!


More information about the Rpm-maint mailing list