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 972801382C5 for ; Sat, 17 Apr 2021 11:49:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C3652E082B; Sat, 17 Apr 2021 11:49:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 39FB5E082B for ; Sat, 17 Apr 2021 11:49:09 +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 3E09534092E for ; Sat, 17 Apr 2021 11:49:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E6E974A8 for ; Sat, 17 Apr 2021 11:49:05 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1618660142.21aaae1679b4d4d58dcb0b6710a9a1c6d3027004.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pymssql/files/, dev-python/pymssql/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pymssql/files/pymssql-2.2.1-clock_gettime.patch dev-python/pymssql/pymssql-2.2.1.ebuild X-VCS-Directories: dev-python/pymssql/ dev-python/pymssql/files/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 21aaae1679b4d4d58dcb0b6710a9a1c6d3027004 X-VCS-Branch: master Date: Sat, 17 Apr 2021 11:49:05 +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: a5ad3fdf-725a-4074-8cad-bcac21be7c45 X-Archives-Hash: 4898ef7305dd0267461c39de9ee262f9 commit: 21aaae1679b4d4d58dcb0b6710a9a1c6d3027004 Author: Michał Górny gentoo org> AuthorDate: Sat Apr 17 11:38:09 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Apr 17 11:49:02 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21aaae16 dev-python/pymssql: Skip problematic configure check Closes: https://bugs.gentoo.org/783396 Signed-off-by: Michał Górny gentoo.org> .../files/pymssql-2.2.1-clock_gettime.patch | 27 ++++++++++++++++++++++ dev-python/pymssql/pymssql-2.2.1.ebuild | 8 +++++++ 2 files changed, 35 insertions(+) diff --git a/dev-python/pymssql/files/pymssql-2.2.1-clock_gettime.patch b/dev-python/pymssql/files/pymssql-2.2.1-clock_gettime.patch new file mode 100644 index 00000000000..76d07e27db2 --- /dev/null +++ b/dev-python/pymssql/files/pymssql-2.2.1-clock_gettime.patch @@ -0,0 +1,27 @@ +From d130cacf5be53b4c15bb64787d82b1225b1485e7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= +Date: Sat, 17 Apr 2021 13:10:34 +0200 +Subject: [PATCH] Check for clock_gettime() only when linking statically + +The extension module does not use clock_gettime() directly, so I presume +it is only necessary when linking statically to FreeTDS. +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 3ac434e..0295d01 100644 +--- a/setup.py ++++ b/setup.py +@@ -95,7 +95,7 @@ if not WINDOWS: + print("setup.py: include_dirs =>", include_dirs) + print("setup.py: library_dirs =>", library_dirs) + +-if not WINDOWS: ++if LINK_FREETDS_STATICALLY and not WINDOWS: + # check for clock_gettime, link with librt for glibc<2.17 + from dev import ccompiler + compiler = ccompiler.new_compiler() +-- +2.31.1 + diff --git a/dev-python/pymssql/pymssql-2.2.1.ebuild b/dev-python/pymssql/pymssql-2.2.1.ebuild index 274a4396969..c272cd2b2d6 100644 --- a/dev-python/pymssql/pymssql-2.2.1.ebuild +++ b/dev-python/pymssql/pymssql-2.2.1.ebuild @@ -27,4 +27,12 @@ BDEPEND=" dev-python/sqlalchemy[${PYTHON_USEDEP}] )" +PATCHES=( + "${FILESDIR}"/${P}-clock_gettime.patch +) + distutils_enable_tests pytest + +src_configure() { + export LINK_FREETDS_STATICALLY=no +}