public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pymssql/files/, dev-python/pymssql/
Date: Sat, 17 Apr 2021 11:49:05 +0000 (UTC)	[thread overview]
Message-ID: <1618660142.21aaae1679b4d4d58dcb0b6710a9a1c6d3027004.mgorny@gentoo> (raw)

commit:     21aaae1679b4d4d58dcb0b6710a9a1c6d3027004
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 17 11:38:09 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> 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 <mgorny <AT> 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?= <mgorny@gentoo.org>
+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
+}


             reply	other threads:[~2021-04-17 11:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-17 11:49 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-03-03 14:15 [gentoo-commits] repo/gentoo:master commit in: dev-python/pymssql/files/, dev-python/pymssql/ Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1618660142.21aaae1679b4d4d58dcb0b6710a9a1c6d3027004.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox