Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688668 - dev-python/m2crypto: respect arch in CHOST for swig
Summary: dev-python/m2crypto: respect arch in CHOST for swig
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-06-25 12:46 UTC by Michael Haubenwallner (RETIRED)
Modified: 2021-08-12 00:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed patch for M2Crypto/setup.py (m2crypto-swig-chost-0.31.0.patch,597 bytes, patch)
2019-06-25 12:46 UTC, Michael Haubenwallner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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?