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
Created attachment 331586 [details] build log
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.
Created attachment 331590 [details] libtorrent-0.13.2-cross-compile.patch Patch (for libtorrent itself) fixing the kqueue check problem.
we asked him to add us to the cc, thanks
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.
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(+)