diff options
Diffstat (limited to 'net-libs/libtorrent')
-rw-r--r-- | net-libs/libtorrent/Manifest | 3 | ||||
-rw-r--r-- | net-libs/libtorrent/files/libtorrent-0.13.8-configure-clang-16.patch | 22 | ||||
-rw-r--r-- | net-libs/libtorrent/libtorrent-0.13.8-r3.ebuild (renamed from net-libs/libtorrent/libtorrent-0.13.8-r2.ebuild) | 7 |
3 files changed, 29 insertions, 3 deletions
diff --git a/net-libs/libtorrent/Manifest b/net-libs/libtorrent/Manifest index 154274e95504..3f369b395e4b 100644 --- a/net-libs/libtorrent/Manifest +++ b/net-libs/libtorrent/Manifest @@ -1,4 +1,5 @@ +AUX libtorrent-0.13.8-configure-clang-16.patch 747 BLAKE2B aa23475891da71904db18429a2831a09231ebdbe15b324b7767a8f9f72e66f21c3c78f2c9c1d42336881465eb3b869c67de8b9be966f7d6ba1d299851a14274b SHA512 1a399f5c6db94eeaa4defb98957bebb0671f80b3bee54c2e96fe1a7af51d5ebd24a02c894ad10bcdaf6798a70b70f07cbb9fc727ab76da7ad7795846bf278868 AUX libtorrent-0.13.8-sysroot.patch 851 BLAKE2B 17ee86d4f92e87b678b62a5c00c1ebba69dd2cfca8a09aa3dca7ba36801469281ad5cb47f1d3ea920b989d7c210f180c4d94bf23da6dac7ef078b7b1f4d07048 SHA512 883c02909863354f0450161d4a7e191ef90cc6692b7f0739693a9e3047cb0c23668aabc98bbb9d2a0986535f4416b3fe7d92809e3ef35116e261a06851f67625 DIST libtorrent-0.13.8.tar.gz 834027 BLAKE2B 374f33af52a45c244182d36bacd6b42eea9edc179e42fb40f4170a47a0cdd39cfb3f42f82fc26ab36718afb9a28a8dd72ca139b3646bbc1c2887444905438cdd SHA512 417177df5b27cd8c6a6317063b0846da2690de4633836466728605c2edad2de407d29d321cc481b8d1352dd0ff6dd89f4566a830424a8cf986f2fddb04704da4 -EBUILD libtorrent-0.13.8-r2.ebuild 1762 BLAKE2B ee26974c1b9ce4ea95e0bab1cc7dd1b53ba54cea94bad6ab7781aa5e4a57733b3b4fb82cdbfd48c818270b8aea9c2fe75ee6b8c40372f9e35ec9b4948171d4b6 SHA512 66d186c0791b0a634010cb8bbf7d515f9bbe5ed53d2b10df399738653afe17eedc93e2c3ba57492c73ba40e8bba3067dcccf9e6df582ae139b3e33d18bba38f7 +EBUILD libtorrent-0.13.8-r3.ebuild 1816 BLAKE2B d080cb6a3dd328df57d82138e8789c3cbd3ef85498a824be6170d72b0c3345256c272bde37c20cf224f56165c2a02b5c07690016a035a127b5fdf42ad329f467 SHA512 0c383794ae9ee8698a3304a949543acec9aca1326ebc42cbd940de719a0f321b205ced3d4c281a4c5eca7561e0658795b77fc8699acde61668cc0feb5ba52fb0 MISC metadata.xml 332 BLAKE2B 83ae91b4dea009d642d92334a5675f7adf861a1e623ef3f483d3ffdcdcce91f9b9b3ed0e5b164ea5c31c228fc4992638df50e221cd6b97e04b96d1518b901546 SHA512 2745495bd2d107326ab4ebeff7d7669b2706a130571ee4f2144ae67d92835acaf04d9ba4f45148f16b0138170ebe6d50019d5ee1b9ad66332338e9c02ecd3624 diff --git a/net-libs/libtorrent/files/libtorrent-0.13.8-configure-clang-16.patch b/net-libs/libtorrent/files/libtorrent-0.13.8-configure-clang-16.patch new file mode 100644 index 000000000000..0a23141a7e58 --- /dev/null +++ b/net-libs/libtorrent/files/libtorrent-0.13.8-configure-clang-16.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/899566 +https://github.com/rakshasa/libtorrent/pull/237 + +From e851a8657d2ef5c332260f1e3a3896f438dba255 Mon Sep 17 00:00:00 2001 +From: Florian Weimer <fweimer@redhat.com> +Date: Tue, 3 Jan 2023 14:41:11 +0100 +Subject: [PATCH] configure: Define _GNU_SOURCE when checking for + pthread_setname_np + +Previously, the test would always fail with compilers that do not +support implicit function declarations because the pthread_setname_np +function was not declared. +--- a/scripts/checks.m4 ++++ b/scripts/checks.m4 +@@ -469,6 +469,7 @@ AC_DEFUN([TORRENT_CHECK_PTHREAD_SETNAME_NP], [ + AC_MSG_CHECKING(for pthread_setname_np type) + + AC_TRY_LINK([ ++ #define _GNU_SOURCE + #include <pthread.h> + #include <sys/types.h> + ],[ diff --git a/net-libs/libtorrent/libtorrent-0.13.8-r2.ebuild b/net-libs/libtorrent/libtorrent-0.13.8-r3.ebuild index 5bb36208d46b..16ec5d67b750 100644 --- a/net-libs/libtorrent/libtorrent-0.13.8-r2.ebuild +++ b/net-libs/libtorrent/libtorrent-0.13.8-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -26,7 +26,10 @@ RDEPEND=" DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig" -PATCHES=( "${FILESDIR}"/${PN}-0.13.8-sysroot.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-0.13.8-sysroot.patch + "${FILESDIR}"/${PN}-0.13.8-configure-clang-16.patch +) src_prepare() { default |