Re: i386 vs i686

Stefano Corsi <[email protected]> Tue, 25 Mar 2003 08:41:11 +0000
Newsgroups gmane.comp.lang.moto.devel
Organization Moto Project
Message-ID <[email protected]>
Alle 19:06, venerdì 21 marzo 2003, David Hakim ha scritto:
> Why might RPMs built with Stefano's procedure on a rh 7.3 box with the
> following uname:
>
> Linux green.localdomain 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686
> unknown
>
> 	be output as moto-0_19_1-1.i386.rpm as opposed to
> moto-0_19_1-1.i686.rpm ?

You should have a file /usr/lib/rpm/macros, containing thes lines:

#==============================================================================
# ---- per-platform macros.
#  Macros that are specific to an individual platform. The values here
#  will be used if the per-platform macro file does not exist..
#
%_arch         i386
%_build_arch      i386
%_vendor    redhat
%_os        linux
%_gnu       -gnu
%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os}%{?_gnu}

You could modify to get the rpm built in different way.
Or you can use the runtime parameter for the rpm -ba command:

rpm -ba --target iX86-redhat-linux SPECS/moto.spec

where X is one of 3,5,6 etc...

Stefano