| Summary: | dev-python/m2crypto - In file included from SWIG/_m2crypto_wrap.c:3828: /usr/include/openssl/opensslconf.h:43:3: error: #error "No ABI matched, please report a bug to bugs.gentoo.org" | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Gábor Oszkár Dénes <gaboroszkar> |
| Component: | Current packages | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | jstein |
| Priority: | Normal | Keywords: | PullRequest |
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| See Also: | https://github.com/gentoo/gentoo/pull/11484 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
Build log
emerge --info dev-python/m2crypto on aarch64 |
||
Created attachment 546332 [details]
Build log
Created attachment 546334 [details]
emerge --info dev-python/m2crypto on aarch64
aarch64-unknown-linux-gnu-emerge --info dev-python/m2crypto
Also, the package can be made more cross-compile friendly, if it was EAPI-7, and used BDEPEND instead of DEPEND, because all the DEPEND dependencies in this package run on the build machine, and not the target machine. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63380ad8d37ce2a83a958f6bcc6b3d721fe2ff6d commit 63380ad8d37ce2a83a958f6bcc6b3d721fe2ff6d Author: Gábor Oszkár Dénes <gaboroszkar@protonmail.com> AuthorDate: 2019-03-24 22:11:52 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2019-04-18 15:10:11 +0000 dev-python/m2crypto: Fix crossdev Fix crossdev in version 0.31.0-r2. Closes: https://bugs.gentoo.org/665544 Closes: https://github.com/gentoo/gentoo/pull/11484 Package-Manager: Portage-2.3.62, Repoman-2.3.11 Signed-off-by: Gábor Oszkár Dénes <gaboroszkar@protonmail.com> Signed-off-by: Mike Gilbert <floppym@gentoo.org> dev-python/m2crypto/files/m2crypto-crossdev-0.31.0.patch | 12 ++++++++++++ dev-python/m2crypto/m2crypto-0.31.0-r2.ebuild | 7 ++++--- 2 files changed, 16 insertions(+), 3 deletions(-) |
* The following cross emerge command does not succeed on amd64 aarch64-unknown-linux-gnu-emerge -1 =m2crypto-0.27.0-r2 The build tries to use headers from the build system rather than the target system. * Proposed fix (tested it, and works) (It should work with 0.27.0 and 0.27.0-r2.) The setup.py (which creates the configuration for the build), needs to be modified to include the correct headers. Modify the ebuild the following way. * Add toolchain-funcs to inherits, * add the following function: src_prepare() { sed -i -e "s:^ pid = subprocess.Popen(\['cpp', '-Wp,-v', '-'\],: pid = subprocess.Popen(\['`tc-getCPP | sed "s: :', ':"`', '-Wp,-v', '-'\],:" setup.py eapply_user } * Remove comment "TODO: fix cross-compiles" * The relevant error message In file included from /usr/include/openssl/e_os2.h:56, from /usr/include/openssl/asn1t.h:63, from SWIG/_m2crypto_wrap.c:8537: /usr/include/openssl/opensslconf.h:43:3: error: #error "No ABI matched, please report a bug to bugs.gentoo.org" # error "No ABI matched, please report a bug to bugs.gentoo.org" ^~~~~