Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446184 - net-libs/libtorrent-0.13.2: fails to cross compile
Summary: net-libs/libtorrent-0.13.2: fails to cross compile
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
Keywords: PATCH
Depends on:
Reported: 2012-12-06 00:29 UTC by Ambroz Bizjak
Modified: 2018-07-03 06:04 UTC (History)
3 users (show)

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

build log (libtorrent-log,9.45 KB, text/plain)
2012-12-06 00:29 UTC, Ambroz Bizjak
libtorrent-0.13.2.ebuild-la-files.patch (libtorrent-0.13.2.ebuild-la-files.patch,939 bytes, patch)
2012-12-06 00:30 UTC, Ambroz Bizjak
Details | Diff
libtorrent-0.13.2-cross-compile.patch (libtorrent-0.13.2-cross-compile.patch,1.85 KB, text/plain)
2012-12-06 00:33 UTC, Ambroz Bizjak

Note You need to log in before you can comment on or make changes to this bug.
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]

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]

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 (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):

commit 78d9044fad10c24e960c3daa1595c51a0db94fa4
Author:     Stephen Shkardoon <>
AuthorDate: 2018-06-30 04:11:12 +0000
Commit:     Jason Zaman <>
CommitDate: 2018-07-03 05:57:03 +0000

    net-libs/libtorrent: Fix configure checks to allow cross compiling
    Already patched in upstream:
    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(+)