Mailinglist Archive: opensuse-buildservice (312 mails)

< Previous Next >
Re: [opensuse-buildservice] Inconsistency between rpm -qp --provides and createrpmdeps for sun jdk package.
  • From: Michael Schroeder <mls@xxxxxxx>
  • Date: Fri, 17 Jul 2009 15:22:07 +0200
  • Message-id: <20090717132206.GA18470@xxxxxxx>
On Wed, Jul 15, 2009 at 08:29:10AM -0500, Robin Holt wrote:
rpm -qp --provides j/jdk-1_5_0_17-linux-amd64.rpm
jre = 1.5.0_17
j2sdk = 1.5.0_17
j2re = 1.5.0_17
jaxp_parser_impl
xml-commons-apis
jdk = 2000:1.5.0_17-fcs

If, on the other hand, I do:
./build/createrpmdeps j/
F:jdk.x86_64-1247663943/43205785/222924731: j/jdk-1_5_0_17-linux-amd64.rpm
P:jdk.x86_64-1247663943/43205785/222924731: jre = 1.5.0_17 j2sdk = 1.5.0_17
j2re = 1.5.0_17 jaxp_parser_impl xml-commons-apis
R:jdk.x86_64-1247663943/43205785/222924731: rpmlib(VersionedDependencies) <=
3.0.3-1 glibc >= 2.1.2-11 sh-utils >= 2.0-1 fileutils >= 4.0-8 gawk >=
3.0.4-1 textutils >= 2.0-2 /bin/sh
I:jdk.x86_64-1247663943/43205785/222924731: jdk-1.5.0_17-fcs 1226310485

This is beacuse Sun still uses rpm-3 (grrr...). rpm3 didn't have
the "self-provides" at the end of the provides list.
Your 'rpm -qp --provides' command displays it, but that's because
there is some compatibility code in rpm that automatically adds it if
an rpm-3 version rpm is encountered.

The perl code in Build/Rpm.pm didn't have that compatibility code,
but this has recently changed for the query() function (a month ago).
Unfortunatelly the fixed function isn't used in createrpmdeps.

I've just commited a fix for createrpmdeps to SVN.

Cheers,
Michael.

--
Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References