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

Bug 446184

Summary: net-libs/libtorrent-0.13.2: fails to cross compile
Product: Gentoo Linux Reporter: Ambroz Bizjak <ambrop7>
Component: Current packagesAssignee: Jason Zaman <perfinion>
Status: RESOLVED FIXED    
Severity: normal CC: net-p2p, steev, zerochaos
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/rakshasa/libtorrent/pull/174
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
libtorrent-0.13.2.ebuild-la-files.patch
libtorrent-0.13.2-cross-compile.patch

Description Ambroz Bizjak 2012-12-06 00:29:33 UTC
There are two cross-compilation problems with libtorrent:
- The configure script is doing a run-check for something related to kqueue (which does not exist on Linux) and fails because it can't run the program.
- Libtool .la files are installed, preventing cross-compilation of rtorrent against libtorrent.

Reproducible: Always
Comment 1 Ambroz Bizjak 2012-12-06 00:29:50 UTC
Created attachment 331586 [details]
build log
Comment 2 Ambroz Bizjak 2012-12-06 00:30:57 UTC
Created attachment 331588 [details, diff]
libtorrent-0.13.2.ebuild-la-files.patch

This patch fixes both problems. The cppunit dependency is needed by the autoreconf.
Comment 3 Ambroz Bizjak 2012-12-06 00:33:26 UTC
Created attachment 331590 [details]
libtorrent-0.13.2-cross-compile.patch

Patch (for libtorrent itself) fixing the kqueue check problem.
Comment 4 Rick Farina (Zero_Chaos) gentoo-dev 2012-12-06 05:02:50 UTC
we asked him to add us to the cc, thanks
Comment 5 Stephen Shkardoon 2018-06-25 08:11:31 UTC
Also relies on https://github.com/rakshasa/libtorrent/pull/175 (or similar) being merged.

Once those two patches are included, the final step is to create a new ebuild with --with-zlib="${EROOT%/}/usr/" being sent to ./configure.
Comment 6 Larry the Git Cow gentoo-dev 2018-07-03 06:04:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78d9044fad10c24e960c3daa1595c51a0db94fa4

commit 78d9044fad10c24e960c3daa1595c51a0db94fa4
Author:     Stephen Shkardoon <ss23@ss23.geek.nz>
AuthorDate: 2018-06-30 04:11:12 +0000
Commit:     Jason Zaman <perfinion@gentoo.org>
CommitDate: 2018-07-03 05:57:03 +0000

    net-libs/libtorrent: Fix configure checks to allow cross compiling
    
    Already patched in upstream:
    https://github.com/rakshasa/libtorrent/pull/174
    https://github.com/rakshasa/libtorrent/pull/175
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=446184
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 .../libtorrent-0.13.7-execinfo-configure.patch     | 24 ++++++++
 .../files/libtorrent-0.13.7-kqueue-configure.patch | 46 ++++++++++++++
 net-libs/libtorrent/libtorrent-0.13.7-r1.ebuild    | 70 ++++++++++++++++++++++
 3 files changed, 140 insertions(+)