From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4E06D158093 for ; Sat, 2 Jul 2022 13:16:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2FA1EE0BD9; Sat, 2 Jul 2022 13:16:24 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0F929E0BD9 for ; Sat, 2 Jul 2022 13:16:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C61F5341C21 for ; Sat, 2 Jul 2022 13:16:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 349E2522 for ; Sat, 2 Jul 2022 13:16:21 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1656767758.2d473b12ad24cbcd94edc07dcbbb5a0f57d6d8a8.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libtorrent/files/, net-libs/libtorrent/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libtorrent/files/libtorrent-0.13.8-sysroot.patch net-libs/libtorrent/libtorrent-0.13.8-r1.ebuild net-libs/libtorrent/libtorrent-0.13.8-r2.ebuild X-VCS-Directories: net-libs/libtorrent/ net-libs/libtorrent/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 2d473b12ad24cbcd94edc07dcbbb5a0f57d6d8a8 X-VCS-Branch: master Date: Sat, 2 Jul 2022 13:16:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b379353f-8c71-4058-8a82-4f0b0cfff4d7 X-Archives-Hash: e1e7be9218ea2c6ac78ca45621d5eca3 commit: 2d473b12ad24cbcd94edc07dcbbb5a0f57d6d8a8 Author: David Seifert gentoo org> AuthorDate: Sat Jul 2 13:15:58 2022 +0000 Commit: David Seifert gentoo org> CommitDate: Sat Jul 2 13:15:58 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d473b12 net-libs/libtorrent: [QA] update EAPI 6 -> 8 Closes: https://bugs.gentoo.org/740698 Closes: https://bugs.gentoo.org/836085 Signed-off-by: David Seifert gentoo.org> .../files/libtorrent-0.13.8-sysroot.patch | 33 ++++++++++++++++++++++ ....13.8-r1.ebuild => libtorrent-0.13.8-r2.ebuild} | 30 +++++++++++--------- 2 files changed, 49 insertions(+), 14 deletions(-) diff --git a/net-libs/libtorrent/files/libtorrent-0.13.8-sysroot.patch b/net-libs/libtorrent/files/libtorrent-0.13.8-sysroot.patch new file mode 100644 index 000000000000..9f696c01ef61 --- /dev/null +++ b/net-libs/libtorrent/files/libtorrent-0.13.8-sysroot.patch @@ -0,0 +1,33 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -43,7 +43,6 @@ + TORRENT_ENABLE_INTERRUPT_SOCKET + + TORRENT_ENABLE_ARCH +-TORRENT_WITH_SYSROOT + + dnl TORRENT_WITH_XFS + TORRENT_WITHOUT_KQUEUE +@@ -59,8 +58,7 @@ + CC_ATTRIBUTE_VISIBILITY + + AX_PTHREAD +-AX_CHECK_ZLIB +- ++PKG_CHECK_MODULES([ZLIB], [zlib]) + PKG_CHECK_MODULES([CPPUNIT], [cppunit],, [no_cppunit="yes"]) + + CFLAGS="$PTHREAD_CFLAGS $CPPUNIT_CFLAGS $CFLAGS" +--- a/src/torrent/utils/Makefile.am ++++ b/src/torrent/utils/Makefile.am +@@ -23,8 +23,9 @@ + thread_interrupt.h \ + uri_parser.cc \ + uri_parser.h ++libsub_torrentutils_la_LIBADD = $(ZLIB_LIBS) + +-AM_CPPFLAGS = -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../.. -I$(top_srcdir) ++AM_CPPFLAGS = -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../.. -I$(top_srcdir) $(ZLIB_CFLAGS) + + libtorrentincludedir = $(includedir)/torrent/utils + libtorrentinclude_HEADERS = \ diff --git a/net-libs/libtorrent/libtorrent-0.13.8-r1.ebuild b/net-libs/libtorrent/libtorrent-0.13.8-r2.ebuild similarity index 80% rename from net-libs/libtorrent/libtorrent-0.13.8-r1.ebuild rename to net-libs/libtorrent/libtorrent-0.13.8-r2.ebuild index 5d3d38cc3667..5bb36208d46b 100644 --- a/net-libs/libtorrent/libtorrent-0.13.8-r1.ebuild +++ b/net-libs/libtorrent/libtorrent-0.13.8-r2.ebuild @@ -1,35 +1,37 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=8 -inherit toolchain-funcs +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 test" -RESTRICT="!test? ( test )" +IUSE="debug ssl" # cppunit dependency - https://github.com/rakshasa/libtorrent/issues/182 RDEPEND=" dev-util/cppunit:= sys-libs/zlib - ssl? ( - dev-libs/openssl:0= - )" -DEPEND="${RDEPEND} - virtual/pkgconfig" + 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 @@ -37,6 +39,7 @@ src_configure() { 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 @@ -46,12 +49,11 @@ src_configure() { $(use_enable debug) \ $(use_enable ssl openssl) \ ${disable_instrumentation} \ - --with-posix-fallocate \ - --with-zlib="${EROOT%/}/usr/" + --with-posix-fallocate } src_install() { default - find "${D}" -name '*.la' -delete + find "${ED}" -type f -name '*.la' -delete || die }