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
Do you happen to have a patch ready?
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.
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.
this bug is also happening on m2crypto-0.21.1
(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
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
https://bugzilla.osafoundation.org/show_bug.cgi?id=12634 This is in upstream's bugzilla.
*** Bug 376715 has been marked as a duplicate of this bug. ***
the ebuild deals with this by manually running swig now