Hello,
In texinfo, for the info subpackage that contains /sbin/install-info, there is:
# By making info prereq bash, other packages which have triggers based on # info don't run those triggers until bash is in place as well. This is an # ugly method of doing it (triggers which fire on set intersection would # be better), but it's the best we can do for now. Talk to Erik before # removing this. Prereq: bash
I have found http://people.redhat.com/laroche/pyrpm/pyrpm-devel.html which states that triggers are run after %post. So I think that it could be replaced by Requires(post): bash But it also seems that rpm adds automatically a Requires(post): /bin/sh for packages that have a %post. So it even seems to me that this can be entirely dropped.
Advices?
-- Pat
"PD" == Patrice Dumas pertusus@free.fr writes:
PD> But it also seems that rpm adds automatically a Requires(post): PD> /bin/sh for packages that have a %post.
Unless you do %post -p to set the interpreter.
Honestly I have never been too clear on what the semantics of PreReq: were supposed to have been. My understanding is that in this case it ensures that bash is installed at all times that the info package is installed, which I guess would be emulated by Requires(pre): bash Requires: bash Requires(post): bash and if you have scriptlets without -p then some of these are done automatically.
- J<
packaging@lists.fedoraproject.org