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 ;)
>
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.
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}'
i386-redhat-linux
[jbj@wellfleet rpm44]$ rpm --target fooey -E '%{_target_platform}'
fooey-pc-linux-gnu
[jbj@wellfleet rpm44]$ cat /etc/rpm/platform
i386-redhat-linux-gnu
[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.
hth
73 de Jeff
Received on Wed Jul 25 00:20:15 2007