Fwd: Help specifying arch through 'requires' in rpm .spec
pmatilai at laiskiainen.org
Wed Sep 29 13:54:58 UTC 2010
On Wed, 29 Sep 2010, FlorianFesti wrote:
> On 09/29/2010 04:16 AM, Oliver von Behr Kuster wrote:
>> I have x86_64 machines running RHEL5 and am trying to install snoopy
>> through the customized package handling machine configurations.
>> Since the machines are 32bit compatible, snoopy.i386 needs to be installed
>> So I've tried the following:
>> Requires: snoopy(i386)
> This should work on newer versions of rpm (actually on packages built with
> newer versions).
Nope, the syntax is somewhat different (literal arch is not involved). See
http://rpm.org/wiki/PackagerDocs/ArchDependencies for the details. But
yeah, that wont help on RHEL 5.
> On RHEL 5 you can try to work around by requiring files that
> are unique to both archs - typically files in /usr/lib(64)?
Yup. That, or if you're building your own packages of course nothing
prevents you from adding extra per-arch provide-require pairs to them.
- Panu -
More information about the Rpm-list