| Summary: | dev-python/m2crypto fails to install in gentoo-prefix on older Linux systems | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Jean-Michel Smith <jean.michel.sm> |
| Component: | [OLD] Unspecified | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | prefix |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | Patch to support m2crypto builds in gentoo-prefix environments | ||
+*m2crypto-0.22.3-r2 (17 Oct 2014) + + 17 Oct 2014; Mike Gilbert <floppym@gentoo.org> +m2crypto-0.22.3-r2.ebuild, + -m2crypto-0.22.3-r1.ebuild: + Fix include path on prefix, bug 525660 by Jean-Michel Smith. Add slots to + openssl and swig dependencies. |
Created attachment 386802 [details, diff] Patch to support m2crypto builds in gentoo-prefix environments M2Crypto is not supported by older openssl implementations found on older Linux distros (Centos 6, etc.). Because there is a hardcoded path in the ebuild for the include directory, in a gentoo-prefix environment m2crpto attempts to use /usr/include/openssl.h etc. instead of ${EPREFIX}/usr/include/openssl.h etc., and compilation gives a message like the following: /usr/include/openssl/opensslconf.h:31: Error: CPP #error ""This openssl-devel package does not work your architecture?"". Use the -cpperraswarn option to continue swig processing. * ERROR: dev-python/m2crypto-0.21.1-r2::gentoo_prefix failed (configure phase): * swig failed [...] The attached patch fixes the issue by changing -I/usr/include to -I${EPREFIX}/usr/include (which will be /usr/include when $EPREFIX is not defined, and the correct location for gentoo-prefix installations otherwise)