[openfabrics-ewg] [PATCH OFED-1.1-rc7] openib.spec: solve rpm packaging issue with 64/32 bit binaries and libraries on ppc64
Hoang-Nam Nguyen
HNGUYEN at de.ibm.com
Tue Oct 17 08:56:48 PDT 2006
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?
> 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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpm-tmp.78616.save
Type: application/octet-stream
Size: 25821 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20061017/9a40fb81/attachment.obj>
More information about the ewg
mailing list