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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 863971396D0 for ; Sat, 19 Aug 2017 10:07:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD7B4E0D3C; Sat, 19 Aug 2017 10:07:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A6021E0D3C for ; Sat, 19 Aug 2017 10:07:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 65E07341A12 for ; Sat, 19 Aug 2017 10:07:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0E76F7B0E for ; Sat, 19 Aug 2017 10:07:41 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1503137227.11ea311f95c00f9a9003c4cf41d9fe1ce4244960.perfinion@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libtorrent/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libtorrent/libtorrent-0.13.6-r1.ebuild X-VCS-Directories: net-libs/libtorrent/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 11ea311f95c00f9a9003c4cf41d9fe1ce4244960 X-VCS-Branch: master Date: Sat, 19 Aug 2017 10:07:41 +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-Archives-Salt: ce5b97e0-b93b-497f-b081-ac1bb211e528 X-Archives-Hash: cf8c972d116b6708b0b49fc74d68affe commit: 11ea311f95c00f9a9003c4cf41d9fe1ce4244960 Author: Jason Zaman gentoo org> AuthorDate: Sat Aug 19 07:53:16 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sat Aug 19 10:07:07 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11ea311f net-libs/libtorrent: fix undefined __sync_add_and_fetch_8 (bug 518582) Package-Manager: Portage-2.3.6, Repoman-2.3.1 net-libs/libtorrent/libtorrent-0.13.6-r1.ebuild | 61 +++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/net-libs/libtorrent/libtorrent-0.13.6-r1.ebuild b/net-libs/libtorrent/libtorrent-0.13.6-r1.ebuild new file mode 100644 index 00000000000..7eafcd218be --- /dev/null +++ b/net-libs/libtorrent/libtorrent-0.13.6-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils libtool 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 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris" +IUSE="debug ipv6 libressl ssl test" + +RDEPEND=" + sys-libs/zlib + >=dev-libs/libsigc++-2.2.2:2 + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:= ) + )" +DEPEND="${RDEPEND} + virtual/pkgconfig + test? ( dev-util/cppunit )" + +src_prepare() { + elibtoolize +} + +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 + 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 ipv6) \ + $(use_enable ssl openssl) \ + ${disable_instrumentation} \ + --with-posix-fallocate +} + +src_install() { + default + + prune_libtool_files --all +}