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

Igor Gnatenko ignatenkobrain at fedoraproject.org
Wed Sep 12 12:30:12 UTC 2018


On Wed, Sep 12, 2018 at 2:25 PM Thierry Vignaud <thierry.vignaud at gmail.com>
wrote:

> 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 ;)


> 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..


> See you
>
> Le mer. 12 sept. 2018 à 10:34, Igor Gnatenko
> <ignatenkobrain at fedoraproject.org> a écrit :
> >
> > What is the point of this? I just don't get the use-case..
> >
> > On Wed, Sep 12, 2018 at 10:32 AM Thierry Vignaud <
> thierry.vignaud at gmail.com> wrote:
> >>
> >> Le sam. 8 sept. 2018 à 09:10, Thierry Vignaud
> >> <thierry.vignaud at gmail.com> a écrit :
> >> >
> >> > Hi
> >> >
> >> > The attached patch adds support for scriptlet deps in generated deps.
> >> > Eg on Mageia, there's a file trigger for automatically
> >> > installing/removing info pages from /usr/share/info index
> >> >
> >> > Having manual or auto generated "Requires: ..." mean some strong
> >> > deploops in base packages which rpmlib can break at random places,
> >> > sometimes borking scriptlets.
> >> >
> >> > What we want in such a case is "Requires(posttrans): ..;" as
> >> > filetriggers will be run late anyway.
> >> >
> >> > This patch enables to do that (but only in internal deps generators)
> >> >
> >> > Example:
> >> > %__info_requires        %{_rpmconfigdir}/mageia/info-file.req
> >> > %__info_scriptlet       posttrans
> >> > %__info_path    ^%{_datadir}/info/.*\\.info.*$
> >> >
> >> > See you
> >>
> >> Can you consider this one for inclusion?
> >> _______________________________________________
> >> Rpm-maint mailing list
> >> Rpm-maint at lists.rpm.org
> >> http://lists.rpm.org/mailman/listinfo/rpm-maint
> >
> > --
> >
> > -Igor Gnatenko
>
-- 

-Igor Gnatenko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180912/a5145c37/attachment.html>


More information about the Rpm-maint mailing list