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

Bug 339347

Summary: dev-python/m2crypto-0.20.2: non-prefixed /usr/include path used
Product: Gentoo/Alt Reporter: Marc Hulsman <marc.hulsman>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED OBSOLETE    
Severity: normal CC: cnyegle, hongqn
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fixes build problems under gentoo prefix

Description Marc Hulsman 2010-10-01 12:37:38 UTC
m2crypto fails due to wrong include path:

swig -python -I/data/home/mhulsman/gentoo/usr/include/python2.6 -I/usr/include -includeall -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
SWIG/_m2crypto.i:31: Error: Unable to find 'openssl/opensslv.h'


This path is set in setup.py using:

self.openssl = '/usr'
opensslIncludeDir = os.path.join(self.openssl, 'include')


Reproducible: Always
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-10-20 14:54:57 UTC
Do you happen to have a patch ready?
Comment 2 Marc Hulsman 2010-10-20 17:02:11 UTC
Created attachment 251349 [details, diff]
Fixes build problems under gentoo prefix

Sorry for not preparing a patch earlier, I was a bit busy at the time. The attached patch fixes the problem for me.
Comment 3 Marc Hulsman 2010-10-20 18:27:59 UTC
I just realized that using _ in sed could cause problems for those with _ in ${EPREFIX}. Better choices are probably : or |, which will normally not be used as part of a directory name.

Comment 4 Michael Yang 2011-04-27 14:34:55 UTC
this bug is also happening on m2crypto-0.21.1
Comment 5 Michael Yang 2011-04-27 14:36:19 UTC
(for reference)

$ emerge =m2crypto-0.21.1
...
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: command 'swig' failed with exit status 1
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-04-27 14:49:21 UTC
Well, this one clearly slipped through the cracks....

"sed patch" is fine, but it would be great if it wasn't hardcoded to begin with. Anyone interested in taking this issue upstream? http://chandlerproject.org/Projects/MeTooCrypto#Contributing
Comment 7 yegle 2011-07-29 01:07:25 UTC
https://bugzilla.osafoundation.org/show_bug.cgi?id=12634

This is in upstream's bugzilla.
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-07-29 01:33:54 UTC
*** Bug 376715 has been marked as a duplicate of this bug. ***
Comment 9 Fabian Groffen gentoo-dev 2014-01-14 19:36:25 UTC
the ebuild deals with this by manually running swig now