Re: Dependencies order question

Manuel Vacelet <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
On Thu, Jul 8, 2010 at 2:05 PM, seth vidal <[email protected]> wrote:
> On Thu, 2010-07-08 at 13:52 +0200, Manuel Vacelet wrote:
>> Hi all,
>>
>> After a bit of googling, I have a question regarding dependencies
>> solving by yum: Are dependencies always installed in the order they
>> are defined in the RPM .spec file ?
>>
>> For instance, I have a package with:
>> Requires: foo, bar
>> or
>> Requires: foo
>> Requires: bar
>>
>> Is it guaranteed that 'foo' will always be installed before 'bar' ?
>> (Assuming that 'bar' is not itself a dependency of 'foo' or that my
>> current package is not itself a dependency of another package that
>> would requires 'bar' at first).
>>
>
> The order that the requirements appear in the file have nothing to do
> with install order. You may want to look into requires(pre) in the docs
> in rpm.org.

Thanks for your quick answer.
According to http://rpm.org/wiki/PackagerDocs/Dependencies#ScriptletDependencies
Using "Requires(pre)" would be a hack (in the sense of "it's not
designed for this"), wouldn't it ?

I think it's more safe to consider modifying 'bar' package in order to
make it depends of 'foo'

Thanks for your help,
Manuel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.