Re: building i386 RPMs on an x86_64

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

 



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

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux