Re: SPEC: How to specify package ARCH for REQUIRES?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2005-09-16 at 17:04 +0200, Christian.Rohrmeier@xxxxxxxxxxx
wrote:

First off please trip your posts
> 
> # rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n' | sort | grep
> libstdc++
> compat-libstdc++-7.3-2.96.128.i386
> compat-libstdc++-devel-7.3-2.96.128.i386
> libstdc++-3.2.3-52.i386
> libstdc++-3.2.3-52.x86_64
> libstdc++-devel-3.2.3-52.x86_64
> 
> # rpm -ql libstdc++-3.2.3-52.x86_64 | sort
> /usr/lib64/libstdc++.so.5
> /usr/lib64/libstdc++.so.5.0.3

use rpm --provides libstdc++-3.2.3-52.x86_64 to figure out the provides,
rpm automagically does this for elf based deps on shared libraries, as
you're writing a virtual package you have the pain.

> In the SPEC:
> 
> Requires: libstdc++.so.5()(64bit)
> 
> I made an RPM out of that, and tried to install it:
> 
> # rpm -ivh /usr/src/redhat/RPMS/x86_64/oradep_rhel3-1.0-1.x86_64.rpm
> error: Failed dependencies:
>         libstdc++.so.5()(64bit) is needed by oradep_rhel3-1.0-1.x86_64
>     Suggested resolutions:
>         compat-libstdc++-33-3.2.3-47.3.x86_64.rpm

Check your provides against your requires.  Although it's quite possible
oracle requires the compat libs - obviously using a depsolver will pull
in the correct packages so this doesn't look like an issue to me,
assuming you have the correct Requires: lines.

Paul


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux