[openfabrics-ewg] [PATCH OFED-1.1-rc7] openib.spec: solve rpm packaging issue with 64/32 bit binaries and libraries on ppc64

Vladimir Sokolovsky vlad at mellanox.co.il
Tue Oct 17 09:25:42 PDT 2006


Hi Nam,
Please see below:

On Tue, 2006-10-17 at 17:56 +0200, Hoang-Nam Nguyen wrote:

> Hi Vlad!
> > I checked openib.spec:
> >   35 %ifarch %{ix86} ia64
> >   36 %{!?_libdir: %define _libdir %{_prefix}/lib}
> >   37 %else
> >   38 %{!?_libdir: %define _libdir %{_prefix}/lib64}
> >   39 %endif
> This is exactly the hot spot. In case of ppc/ppc64 I thought
> line 38 should be caught. But if I put an echo "%{_libdir}"
> after the line
> # Save clean sources
> that means before the first call of configure I saw that it's
> %{_prefix}/lib} not %{_prefix}/lib64}. I'm attaching a rpm-tmp
> log file below.
> > And for 32-bit libraries:
> > 559 %ifarch x86_64 ppc64
> > 560     %if %{build_32bit}
> > ...
> > 598     %else # Build libsdp 32 bit in any case
> > 599         %if %{build_libsdp}
> > ...
> > 605         %endif
> > 606     %endif
> > 607 %endif
> All that is correct if _libdir != _libdir32.
> > So, it is wierd that you got all libraries installed into 'prefix'/lib.
> Yes. I really don't understand that either. Can you explain me the syntax
> of %{!?_libdir: %define _libdir %{_prefix}/lib64}?
> Is it the same like %define _libdir %{_prefix}/lib64?


No,
This means: if _libdir is not defined then use the default value
%{_prefix}/lib64}.

May be you have '_libdir' variable defined in your shell?

Also, please check: rpm --showrc | grep " _lib"

I got:
-14: _lib       lib64
-14: _libdir    %{_exec_prefix}/%{_lib}
-14: _libexecdir        %{_libdir}

Regards,
Vladimir


> > Are you working with OFED-1.1-rc7?
> Yes.
> > Here, on PPC64 SLES10 I got both lib and lib64...
> I'm testing on SLES9.
> Thanks!
> Nam
> (See attached file: rpm-tmp.78616.save)
> _______________________________________________ openfabrics-ewg mailing list openfabrics-ewg at openib.org http://openib.org/mailman/listinfo/openfabrics-ewg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20061017/eef7dd54/attachment.html>


More information about the ewg mailing list