Re: generating 32-bit RPM's

Jakub Jelinek <[email protected]>
Newsgroups gmane.linux.redhat.amd64
Message-ID <[email protected]>
On Tue, Sep 20, 2005 at 12:42:26PM +0100, Dave Atkinson wrote:
> Thanks, but I did.  Using
> 
> $ setarch i386 rpmbuild --target i386 ...
> 
> gives me packages that contain files with /usr/lib64/... in their path.
> >From the man page changes the output of uname.  If you look
> in /usr/lib/rpm/*-linux/macros there will be a line
> 
> /usr/lib/rpm/x86_64-linux/macros
> %_lib	lib64
> /usr/lib/rpm/i386-linux/macros
> %_lib	lib
> /usr/lib/rpm/noarch-linux/macros
> %_lib	lib64
> 
> It looks like this file gets sourced based on the host arch, not the
> target arch, resulting in the above problem...

No, it is target arch.  But if you have /etc/rpm/platform file,
that unfortunately overrides it.
Just rm -f /etc/rpm/platform and it will DTRT.

	Jakub
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.