rpmbuild with target i386 on x86_64 sets %{_libdir} to lib64.

Ralf Corsepius rc040203 at freenet.de
Fri Sep 22 02:34:38 UTC 2006


On Thu, 2006-09-21 at 21:26 -0500, Dennis Gilmore wrote:
> On Thursday 21 September 2006 8:30 pm, Ralf Corsepius wrote:
> > On Thu, 2006-09-21 at 18:14 +0200, Dominik 'Rathann' Mierzejewski wrote:
> > > On Thursday, 21 September 2006 at 17:06, Ralf Corsepius wrote:
> > >
> > > "setarch i686" is missing.
> > >
> > > > Bug in rpm.
> > >
> > > Not really. Use setarch.
> >
> > Wrong. Try the same targeting a sparc.
> >
> > > > rpmbuild should set its macros according to --target, but it doesn't.
> > >
> > > Are you sure that's the documented behaviour?
> >
> > Without it, --target is useless.
> actually you need to remove /etc/rpm/platform as well as use setarch   or on 
> sparc sparc32  to build 32 bitr binaries.  its a known issue 

Yes, rpmbuild --target is known not work, i.e. rpm is known not to
support cross building - Which had been the initial motivation for
--target.

Ralf






More information about the fedora-devel-list mailing list