Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 665544 - 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"
Summary: dev-python/m2crypto - In file included from SWIG/_m2crypto_wrap.c:3828: /usr/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2018-09-09 07:06 UTC by Gábor Oszkár Dénes
Modified: 2019-04-18 15:11 UTC (History)
1 user (show)

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


Attachments
Build log (build.log,32.01 KB, text/plain)
2018-09-09 07:07 UTC, Gábor Oszkár Dénes
Details
emerge --info dev-python/m2crypto on aarch64 (emerge-info-m2crypto.log,5.45 KB, text/x-log)
2018-09-09 07:09 UTC, Gábor Oszkár Dénes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gábor Oszkár Dénes 2018-09-09 07:06:34 UTC
* 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"
       ^~~~~
Comment 1 Gábor Oszkár Dénes 2018-09-09 07:07:57 UTC
Created attachment 546332 [details]
Build log
Comment 2 Gábor Oszkár Dénes 2018-09-09 07:09:07 UTC
Created attachment 546334 [details]
emerge --info dev-python/m2crypto on aarch64

aarch64-unknown-linux-gnu-emerge --info dev-python/m2crypto
Comment 3 Gábor Oszkár Dénes 2018-09-09 09:16:29 UTC
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.
Comment 4 Larry the Git Cow gentoo-dev 2019-04-18 15:11:28 UTC
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(-)