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 - 00:19:33 CEST
Message-Id: <56DE2299-79E7-4D5F-8C36-35C1B174B34D@mac.com>

On Jul 24, 2007, at 5:05 PM, Robert Scheck wrote:

> Evening folks,
> On Thu, 12 Jul 2007, Jeff Johnson wrote:
>> You can set /etc/rpm/platform to whatever you want.
>> If its necessary to handle multiple cpu targets without adding
>> - --target, then argv[0] will be parsed like gcc does. That has been
>> on my todo list for a while, but then so was ripping rpmrc from rpm.
>> Only took 8 years to accomplish ;-)
> so I must use --target i386-redhat-linux-gnu all the time? Or can I  
> "map"
> i386 to i386-redhat-linux-gnu using /etc/rpm/platform somehow? E.g. by
> putting .*-redhat-linux-gnu into /etc/rpm/platform and then using the
> --target i386/i686 like before? Sorry, I'm a bit lazy and just a  
> creature
> of habit ;)

     --target fooey
in /etc/rpm/platform should inheirit the other values. If that is
not the case then something else is wrong.

Checking ... almost as I claimed, some detail work is still needed:

[jbj@wellfleet rpm44]$ rpm --version
RPM version 4.5
[jbj@wellfleet rpm44]$ /bin/rpm --version
RPM version 4.5
[jbj@wellfleet rpm44]$ rpm -E '%{_target_platform}'
[jbj@wellfleet rpm44]$ rpm --target fooey -E '%{_target_platform}'
[jbj@wellfleet rpm44]$ cat /etc/rpm/platform

[jbj@wellfleet rpm44]$ rpm --showrc | grep host_vendor
-14: _build_vendor	%{_host_vendor}
-14: _host_platform	%{_host_cpu}-%{_host_vendor}-%{_host_os}%{?_gnu}
-14: _host_vendor	pc
-14: _target_vendor	%{_host_vendor}

IIRC, everything since rpm-4.4.8 should behave at least as well as the
above representation. Sure better needs to be done.


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