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

Re: rpmbuild for PPC sticks libs in /usr/lib64



On Thu, Apr 06, 2006 at 01:18:55AM +0100, Karanbir Singh wrote:
> Matthew Saltzman wrote:
> >(I've put gnumeric aside for a bit.)
> >
> >I tried to build Axel Thimm's f2c RPM for PPC using:
> >
> >    rpmbuild -bb --target ppc f2c-20031026-2.el4.at.spec
> >
> >(after fixing a minor spec file issue).

Patch? :)

> >When it finishes building on my PPC64 system, it installs the
> >libraries it built into /usr/lib64 instead of /usr/lib.  Of course,
> >as these are 32-bit libraries, it wreaks havoc with the linker when
> >it looks for libf2c.a.

Does ppc/ppc64 have a setarch like i386/x86_64 does? Then use
setarch/linux32 to fake uname -m to 32 bits. Maybe that's where
_libdir picks up the wrong definition.

BTW anyone with a spare ppc64 platform to donate to ATrpms? Then we
can build packages for ppc/ppc64, too.

> >Target ppc is definitely 32 bits, so what is causing _libdir to be set 
> >to /usr/lib64?  Is it a bug?  (Nothing that appears relevant is set in 
> >the spec file or in my .rpmmacros file.)
> >
> 
> what do you have in /etc/rpm/platform ? might be worth looking there to 
> see what rpm's picking up ( hint: rpm --showrc )
> 

-- 
Axel.Thimm at ATrpms.net

Attachment: pgpJMOSp4Z06G.pgp
Description: PGP signature


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