[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
SPEC: How to specify package ARCH for REQUIRES?
- From: Christian Rohrmeier SCHERING DE
- To: rpm-list redhat com
- Subject: SPEC: How to specify package ARCH for REQUIRES?
- Date: Fri, 16 Sep 2005 11:36:48 +0200
Hallo All,
OS: RHEL 3 AS
Arch: X86_64
The Question in Brief:
How do I specify in the REQUIRES section of an RPM SPEC file which
architecture of a depency is to be installed when there is one package
with two or more different architctures available?
More Detailed Information:
I am trying to make a virtual package that, when installed, brings in a
number of other packages. The packages are requirements for some other
software: Oracle has specified that the following packages need to be
installed:
make
gcc.x86_64
gcc-c++.x86_64
libstdc++.i386
libstdc++.x86_64
etc.
Notice that the i386 version libstdc++ is to be installed as well as the
x86_64 version!
If I try to specify that in my SPEC file as such:
Requires: make, gcc.x86_64, gcc-c++.x86_64, libstdc++.i386,
libstdc++.x86_64
then, using Yum for example, or APT, or whatever, the package won't install
because there is no such package "libstdc++.i386" for example.
If I set the SPEC as such:
Requires: make, gcc, gcc-c++, libstdc++
Then the package installs just fine, however, only the x86_64 versions of
the dependencies are installed, not the (as Oracle specifically wants) the
i386 version.
Looking at the RPMs themeselves, for example libstdc++:
[root xxx os]# rpm -qp libstdc++-3.2.3-52.i386.rpm
libstdc++-3.2.3-52
[root xxx os]# rpm -qp libstdc++-3.2.3-52.x86_64.rpm
libstdc++-3.2.3-52
There are two packages, one for i386 and one for x86_64. Further
information on the packages:
[root xxx os]# rpm -qpi libstdc++-3.2.3-52.x86_64.rpm
Name : libstdc++ Relocations: (not relocatable)
Version : 3.2.3 Vendor: Red Hat, Inc.
Release : 52 Build Date: Mon 28 Feb 2005
08:06:52 PM CET
Install Date: (not installed) Build Host:
dolly.build.redhat.com
Group : System Environment/Libraries Source RPM:
gcc-3.2.3-52.src.rpm
Size : 797504 License: GPL
Signature : DSA/SHA1, Sat 16 Apr 2005 04:50:48 AM CEST, Key ID
219180cddb42a60e
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://gcc.gnu.org
Summary : The GNU Standard C++ Library v3.
Description :
The libstdc++ package contains a snapshot of the GNU Standard C++
Library v3, an ongoing project to implement the ISO 14882 Standard C++
library.
[root xxx os]# rpm -qpi libstdc++-3.2.3-52.i386.rpm
Name : libstdc++ Relocations: (not relocatable)
Version : 3.2.3 Vendor: Red Hat, Inc.
Release : 52 Build Date: Mon 28 Feb 2005
07:51:22 PM CET
Install Date: (not installed) Build Host:
tweety.build.redhat.com
Group : System Environment/Libraries Source RPM:
gcc-3.2.3-52.src.rpm
Size : 709488 License: GPL
Signature : DSA/SHA1, Sat 16 Apr 2005 04:50:01 AM CEST, Key ID
219180cddb42a60e
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://gcc.gnu.org
Summary : The GNU Standard C++ Library v3.
Description :
The libstdc++ package contains a snapshot of the GNU Standard C++
Library v3, an ongoing project to implement the ISO 14882 Standard C++
library.
RPM evidently isn't able to destinguish between the two. They are
identical!
Hence: How do I specify in the REQUIRES section of an RPM SPEC file which
achitecture of a depency is to be installed when there is one package with
two or more different architctures available?
Many thanks,
Christian
_________________
Christian Rohrmeier
Schering AG
Corporate IT - Infrastructure and Services
Computer Systems and Operations
System Administration - Research and Development
Tel +49 30 468 15794
Fax +49 30 468 95794
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]