From 17dcfeba22240edb3c54d96e319edf6c4bc008c3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 10 Mar 2023 18:05:22 +0000 Subject: gentoo auto-resync : 10:03:2023 - 18:05:22 --- net-libs/libtorrent/Manifest | 3 +- .../libtorrent-0.13.8-configure-clang-16.patch | 22 ++++++++ net-libs/libtorrent/libtorrent-0.13.8-r2.ebuild | 59 -------------------- net-libs/libtorrent/libtorrent-0.13.8-r3.ebuild | 62 ++++++++++++++++++++++ 4 files changed, 86 insertions(+), 60 deletions(-) create mode 100644 net-libs/libtorrent/files/libtorrent-0.13.8-configure-clang-16.patch delete mode 100644 net-libs/libtorrent/libtorrent-0.13.8-r2.ebuild create mode 100644 net-libs/libtorrent/libtorrent-0.13.8-r3.ebuild (limited to 'net-libs/libtorrent') 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 +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 + #include + ],[ diff --git a/net-libs/libtorrent/libtorrent-0.13.8-r2.ebuild b/net-libs/libtorrent/libtorrent-0.13.8-r2.ebuild deleted file mode 100644 index 5bb36208d46b..000000000000 --- a/net-libs/libtorrent/libtorrent-0.13.8-r2.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools toolchain-funcs - -DESCRIPTION="BitTorrent library written in C++ for *nix" -HOMEPAGE="https://rakshasa.github.io/rtorrent/" -SRC_URI="http://rtorrent.net/downloads/${P}.tar.gz" - -LICENSE="GPL-2" -# The README says that the library ABI is not yet stable and dependencies on -# the library should be an explicit, syncronized version until the library -# has had more time to mature. Until it matures we should not include a soname -# subslot. -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris" -IUSE="debug ssl" - -# cppunit dependency - https://github.com/rakshasa/libtorrent/issues/182 -RDEPEND=" - dev-util/cppunit:= - sys-libs/zlib - ssl? ( dev-libs/openssl:= )" -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" - -PATCHES=( "${FILESDIR}"/${PN}-0.13.8-sysroot.patch ) - -src_prepare() { - default - eautoreconf -} - -src_configure() { - # bug 518582 - local disable_instrumentation - echo -e "#include \nint main(){ int64_t var = 7; __sync_add_and_fetch(&var, 1); return 0;}" > "${T}/sync_add_and_fetch.c" || die - $(tc-getCC) ${CFLAGS} -o /dev/null -x c "${T}/sync_add_and_fetch.c" >/dev/null 2>&1 - if [[ $? -ne 0 ]]; then - einfo "Disabling instrumentation" - disable_instrumentation="--disable-instrumentation" - fi - - # configure needs bash or script bombs out on some null shift, bug #291229 - CONFIG_SHELL=${BASH} econf \ - --enable-aligned \ - $(use_enable debug) \ - $(use_enable ssl openssl) \ - ${disable_instrumentation} \ - --with-posix-fallocate -} - -src_install() { - default - - find "${ED}" -type f -name '*.la' -delete || die -} diff --git a/net-libs/libtorrent/libtorrent-0.13.8-r3.ebuild b/net-libs/libtorrent/libtorrent-0.13.8-r3.ebuild new file mode 100644 index 000000000000..16ec5d67b750 --- /dev/null +++ b/net-libs/libtorrent/libtorrent-0.13.8-r3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools toolchain-funcs + +DESCRIPTION="BitTorrent library written in C++ for *nix" +HOMEPAGE="https://rakshasa.github.io/rtorrent/" +SRC_URI="http://rtorrent.net/downloads/${P}.tar.gz" + +LICENSE="GPL-2" +# The README says that the library ABI is not yet stable and dependencies on +# the library should be an explicit, syncronized version until the library +# has had more time to mature. Until it matures we should not include a soname +# subslot. +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris" +IUSE="debug ssl" + +# cppunit dependency - https://github.com/rakshasa/libtorrent/issues/182 +RDEPEND=" + dev-util/cppunit:= + sys-libs/zlib + ssl? ( dev-libs/openssl:= )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-0.13.8-sysroot.patch + "${FILESDIR}"/${PN}-0.13.8-configure-clang-16.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # bug 518582 + local disable_instrumentation + echo -e "#include \nint main(){ int64_t var = 7; __sync_add_and_fetch(&var, 1); return 0;}" > "${T}/sync_add_and_fetch.c" || die + $(tc-getCC) ${CFLAGS} -o /dev/null -x c "${T}/sync_add_and_fetch.c" >/dev/null 2>&1 + if [[ $? -ne 0 ]]; then + einfo "Disabling instrumentation" + disable_instrumentation="--disable-instrumentation" + fi + + # configure needs bash or script bombs out on some null shift, bug #291229 + CONFIG_SHELL=${BASH} econf \ + --enable-aligned \ + $(use_enable debug) \ + $(use_enable ssl openssl) \ + ${disable_instrumentation} \ + --with-posix-fallocate +} + +src_install() { + default + + find "${ED}" -type f -name '*.la' -delete || die +} -- cgit v1.2.3