Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 688668

Summary: dev-python/m2crypto: respect arch in CHOST for swig
Product: Gentoo Linux Reporter: Michael Haubenwallner (RETIRED) <haubi>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: CONFIRMED ---    
Severity: normal CC: sam, stefantalpalaru
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: proposed patch for M2Crypto/setup.py

Description Michael Haubenwallner (RETIRED) gentoo-dev 2019-06-25 12:46:31 UTC
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?
Comment 1 Mike Gilbert gentoo-dev 2019-06-25 20:41:28 UTC
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.
Comment 2 Ștefan Talpalaru 2019-11-22 23:55:25 UTC
A patched m2crypto-0.35.2-r1 is available in my overlay: https://github.com/stefantalpalaru/gentoo-overlay
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-12 00:03:38 UTC
Any news?