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 93BE71396D0 for ; Mon, 9 Oct 2017 21:33:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B700CE0C63; Mon, 9 Oct 2017 21:33:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 95996E0C63 for ; Mon, 9 Oct 2017 21:33:16 +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 5F6BB33C27B for ; Mon, 9 Oct 2017 21:33:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D2638907B for ; Mon, 9 Oct 2017 21:33:13 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1507584786.c824d1c44fcf4556de21d2c8b8ae3732b0fc0c5b.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cryptography/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cryptography/cryptography-2.0.3.ebuild X-VCS-Directories: dev-python/cryptography/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: c824d1c44fcf4556de21d2c8b8ae3732b0fc0c5b X-VCS-Branch: master Date: Mon, 9 Oct 2017 21:33:13 +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: e449d591-a531-4097-8e34-a3907a93261c X-Archives-Hash: 27d3112eeb345cabc30cf0e55d0b7b4e commit: c824d1c44fcf4556de21d2c8b8ae3732b0fc0c5b Author: Mike Gilbert gentoo org> AuthorDate: Mon Oct 9 21:32:32 2017 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Mon Oct 9 21:33:06 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c824d1c4 dev-python/cryptography: append -pthread to CFLAGS This works around some weird distutils behavior when CC is set in the environment. Bug: https://bugs.gentoo.org/630578 Package-Manager: Portage-2.3.11_p4, Repoman-2.3.3_p62 dev-python/cryptography/cryptography-2.0.3.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-python/cryptography/cryptography-2.0.3.ebuild b/dev-python/cryptography/cryptography-2.0.3.ebuild index 1e50265eb33..1c526d65add 100644 --- a/dev-python/cryptography/cryptography-2.0.3.ebuild +++ b/dev-python/cryptography/cryptography-2.0.3.ebuild @@ -6,7 +6,7 @@ EAPI=6 PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) PYTHON_REQ_USE="threads(+)" -inherit distutils-r1 +inherit distutils-r1 flag-o-matic DESCRIPTION="Library providing cryptographic recipes and primitives" HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.python.org/pypi/cryptography/" @@ -42,6 +42,10 @@ DEPEND="${RDEPEND} DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst ) +python_configure_all() { + append-cflags $(test-flags-CC -pthread) +} + python_test() { py.test -v -v -x || die "Tests fail with ${EPYTHON}" }