[Rpm-maint] strange dependency issue

Jerry James loganjerry at gmail.com
Wed Mar 19 17:36:02 UTC 2008


On Wed, Mar 19, 2008 at 11:22 AM, Tom Brown <tom at ng23.net> wrote:
>  i now have the same issue but using a vendor supplied rpm and the
>  Requires section does not work eg
>
>  # rpm -ivh
>  /usr/src/redhat/RPMS/noarch/xxx-sun-java-custom-1.6.0_04-1.noarch.rpm
>  error: Failed dependencies:
>     jdk = 1.6.0_04-fcs is needed by xxx-sun-java-custom-1.6.0_04-1.noarch
>
>  # rpm -qa | grep jdk
>  jdk-1.6.0_04-fcs
>
>  and the spec
>
>  Requires: jdk = 1.6.0_04-fcs
>
>  i also tried
>
>  Requires: jdk = 1.6.0_04
>
>  any thoughts ?
>
>  thanks

This is probably the reverse of your previous situation.  The name of
the package is clearly not "jdk", so it must be either "jdk-1.6.0_04"
or "jdk-1.6.0_04-fcs".  Doing "rpm -qi jdk-1.6.0_04-fcs" will show you
which part is the name and which part is the version.  Then you just
need to write:

Requires: <name part> = <version part>
-- 
Jerry James
http://loganjerry.googlepages.com/



More information about the Rpm-maint mailing list