Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525660 - dev-python/m2crypto fails to install in gentoo-prefix on older Linux systems
Summary: dev-python/m2crypto fails to install in gentoo-prefix on older Linux systems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-17 14:43 UTC by Jean-Michel Smith
Modified: 2014-10-17 16:51 UTC (History)
1 user (show)

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


Attachments
Patch to support m2crypto builds in gentoo-prefix environments (m2crpyto-eprefix.patch,396 bytes, patch)
2014-10-17 14:43 UTC, Jean-Michel Smith
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Michel Smith 2014-10-17 14:43:27 UTC
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)
Comment 1 Mike Gilbert gentoo-dev 2014-10-17 16:51:38 UTC
+*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.