[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: building i386 RPMs on an x86_64



Jeff Johnson wrote :

> > When I try to build an i386 RPM on an x86_64 rawhide machine  
> > (rpm-4.4.2-24)
> > ie. with:
> >  # rpmbuild ... --target i386 -ba my.spec
> >
> > I get ${RPM_ARCH} == x86_64 , and %{_libdir} == /usr/lib/lib64 , but
> > RPM_OPT_FLAGS correctly contains '-m32 .. -march=i386' .
> >
> > This seems like a bug to me - or am I missing something -
> > any comments / suggestions ?
> 
> Seems like a bug to me as well, but is exactly what I was asked to  
> implement in rpm.
> 
> Hint: Hack /etc/rpm/platform to identify your machine as "i386" arch.  
> Speciflically, put this string into the file:
>      i386-vedorssuck-linux-gnu

Isn't the proper solution to run "setarch i686" before rpmbuild? Works
like a charm for me.

Matthias

-- 
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Fedora Core release 5.89 (Rawhide) - Linux kernel 2.6.16-1.2255_FC6
Load : 0.57 0.96 0.45


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]