RPM installation order
Bruno Wolff III
bruno at wolff.to
Mon Nov 30 17:49:20 UTC 2009
On Mon, Nov 30, 2009 at 10:29:31 -0700,
Jerry James <loganjerry at gmail.com> wrote:
>
> This works great when the main gcl package is installed first,
> followed by the gcl-selinux package. However, sometimes RPM installs
> them in the other order. When that happens, the fixfiles invocation
> fails because the main package hasn't been installed yet. Then, once
> the main package is installed, the saved gcl image has the wrong
> SELinux type, leading to the symptoms described in that bug.
>
> Is there a canonical way of dealing with such issues? I need to run
> fixfiles after BOTH gcl and gcl-selinux have been installed. How can
> I ensure that? (I suppose I could invoke fixfiles in %post scripts
> for both gcl and gcl-selinux, so that whichever one runs last does the
> right thing, but that seems unclean.) Thank you,
Requires(Pre) might solve your problem. If gcl-selinux Requires(Pre):gcl
and gcl-selinux runs the fixfiles script in postinstall, I think you will
be guaranteed that both gcl-selinux and gcl are installed when the script
runs.
More information about the fedora-devel-list
mailing list