Created attachment 580738 [details, diff] proposed patch for M2Crypto/setup.py In x86 Prefix on amd64 linux box, there is a similar problem as in bug#617946: /home/haubi/gentoo/32bit/usr/include/openssl/opensslconf.h:10: Error: CPP #error ""abi_x86_64 not supported by the package."". Use the -cpperraswarn option to continue swig processing. We do not use 'linux32' personality as suggested in bug#617946, but set CHOST="i686-pc-linux-gnu" only. Because the CC environment variable is respected for the subsequent compiler step, my suggestion is to respect the CHOST environment variable if available, in favor of python's platform.machine() - like the attached patch for M2Crypto/setup.py. What do you think? Isn't this a problem with cross compiling as well?
I don't want to patch setup.py in a distro-specific way. If you can get a patch accepted upstream, a backport would be fine. And yes, cross-compiling this package is probably quite broken.
A patched m2crypto-0.35.2-r1 is available in my overlay: https://github.com/stefantalpalaru/gentoo-overlay
Any news?