[Bug 606498] Review Request: hwloc - portable abstraction of hierarchical architectures

bugzilla at redhat.com bugzilla at redhat.com
Sat Jul 10 12:27:40 UTC 2010


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=606498

--- Comment #9 from Jiri Hladky <jhladky at redhat.com> 2010-07-10 08:27:38 EDT ---
Hi Brice,

it would be great if you can fix arch-specific-header-in-/usr/include problem
in the upstream.

I have checked rpm spec file for python-devel. They deal with this issue in rpm
spec file like this:

===============================================================
# Make python-devel multilib-ready (bug #192747, #139911)
%global _pyconfig32_h pyconfig-32.h
%global _pyconfig64_h pyconfig-64.h

%ifarch ppc64 s390x x86_64 ia64 alpha sparc64
%global _pyconfig_h %{_pyconfig64_h}
%else
%global _pyconfig_h %{_pyconfig32_h}
%endif
mv %{buildroot}%{_includedir}/python%{pybasever}/pyconfig.h \
   %{buildroot}%{_includedir}/python%{pybasever}/%{_pyconfig_h}
cat > %{buildroot}%{_includedir}/python%{pybasever}/pyconfig.h << EOF
#include <bits/wordsize.h>

#if __WORDSIZE == 32
#include "%{_pyconfig32_h}"
#elif __WORDSIZE == 64
#include "%{_pyconfig64_h}"
#else
#error "Unknown word size"
#endif
EOF
============================================================

Steps are:
1)
mv pyconfig.h pyconfig-32.h (or pyconfig-64.h on 64-bit platform)
2)
Create new pyconfig.h with following content:
#include <bits/wordsize.h>

#if __WORDSIZE == 32
#include "%{_pyconfig32_h}"
#elif __WORDSIZE == 64
#include "%{_pyconfig64_h}"
#else
#error "Unknown word size"
#endif
EOF

Please let me know if you can implement this in upstream. If yes, I will wait
for 1.0.2 or 1.1 release. Should you run into trouble, let me just know and I
will implement python's like solution in the hwloc SPEC file.

Thanks a lot!
Jirka

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the package-review mailing list