[Yum-devel] rpm --requires and primary.xml <requires>
Seth Vidal
skvidal at fedoraproject.org
Thu Apr 30 14:47:56 UTC 2009
On Thu, 30 Apr 2009, christopher floess wrote:
> Hi, when I run rpm -qp --requires, I noticed that there are two lines
> that are missing in primary.xml under the <requires> tag
>
> Here is the rpm command
>
> $ rpm -qp --requires nano-2.0.6-4.fc9.i386.rpm
> /bin/sh
> /bin/sh
> /sbin/install-info
> /sbin/install-info
> libc.so.6
> libc.so.6(GLIBC_2.0)
> libc.so.6(GLIBC_2.1)
> libc.so.6(GLIBC_2.2)
> libc.so.6(GLIBC_2.3)
> libc.so.6(GLIBC_2.3.4)
> libc.so.6(GLIBC_2.4)
> libncursesw.so.5
> libtinfo.so.5
> rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
> rtld(GNU_HASH)
>
> and here are the contents of primary.xml for this file
>
> <rpm requires>
> <rpm:entry name="libc.so.6(GLIBC_2.0)" pre="1"/>
> <rpm:entry name="libc.so.6(GLIBC_2.1)" pre="1"/>
> <rpm:entry name="libncursesw.so.5" pre="1"/>
> <rpm:entry name="libc.so.6" pre="1"/>
> <rpm:entry name="libc.so.6(GLIBC_2.3.4)" pre="1"/>
> <rpm:entry name="libtinfo.so.5" pre="1"/>
> <rpm:entry name="/sbin/install-info" pre="1"/>
> <rpm:entry name="libc.so.6(GLIBC_2.3)" pre="1"/>
> <rpm:entry name="libc.so.6(GLIBC_2.4)" pre="1"/>
> <rpm:entry name="libc.so.6(GLIBC_2.2)" pre="1"/>
> <rpm:entry name="/bin/sh" pre="1"/>
> <rpm:entry name="rtld(GNU_HASH)" pre="1"/>
> </rpm requires>
>
> You can see that in primary.xml the lines
>
> rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
>
> are missing. Could explain to me if the yum generates the <rpm
> requires> info from something other than the rpm, or is the parser
> just omits these lines for some (I'm sure good) reason?
>
the parser omits them b/c they aren't REAL dependencies. They are added by
rpm to note whether or not the running version of rpm can interact with
the pkgs at all.
But they are not deps that are 'satisfied' in anyway.
either the running version of rpm can do those things or you cannot
continue the transaction.
You can't provide an rpm that can do those things in the transaction
you're attempting to run and have it work.
Since there is no point in looking at them for purposes of depsolving,
then adding those N items to every pkg reqs in the primary.xml was just a
waste of space.
hope this helps.
-sv
More information about the Yum-devel
mailing list