RPM Community Forums

Mailing List Message of <rpm-users>

Re: rpm-4.4.8 selects a wrong build target

From: Jeff Johnson <n3npq@mac.com>
Date: Wed 25 Jul 2007 - 20:42:19 CEST
Message-Id: <F2BE0E1E-69A4-4113-B0A9-2256008B363F@mac.com>

On Jul 25, 2007, at 2:33 PM, Robert Scheck wrote:

> On Tue, 24 Jul 2007, Jeff Johnson wrote:
>> Using
>>     --target fooey
>> with
>>     i386-redhat-linux-gnu
>> in /etc/rpm/platform should inheirit the other values. If that is
>> not the case then something else is wrong.
>
> I'm a bit confused. I put "i386-redhat-linux-gnu" into /etc/rpm/ 
> platform
> while having a /usr/lib/rpm/i386-redhat-linux-gnu containing a  
> modified
> version of redhat-rpm-config stuff and i386-linux shipped by rpm  
> 4.5. When
> I'm now trying "rpmbuild -ba xyz.spec", i386-linux is favoured over  
> the
> i386-redhat-linux-gnu. Is this correct? And if yes, why? This  
> doesn't seem
> to match with the magic, you tried me to explain - at least in my  
> eyes. Or
> I'm to dumb, that's another possibility... ;)
>

What does "... 386-linux is favoured over the i386-redhat-linux-gnu ..."
mean precisely? Some macro being loaded from i386-linux/macros
rather than i386-redhat-linux-gnu/macros?

Macro file loading epends on the macrofiles path, a colon separated  
list of files to --macros
will take the mystery out of what rpm reads (so will strace spew  
examination).

Any desired behavior can be achieved by defaulting the compiled in value
of macrofiles to read to Something Else Instead.

The mystery for me is what files should be attempted in what order for
"everywhere compatible" behavior ;-)

73 de Jeff
Received on Wed Jul 25 20:42:35 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.