pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/py-grpcio-tools/patches net/py-grpcio-tools: Add m...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b91fdd4fa77e
branches: trunk
changeset: 379307:b91fdd4fa77e
user: minskim <minskim%pkgsrc.org@localhost>
date: Sat Apr 28 13:57:05 2018 +0000
description:
net/py-grpcio-tools: Add missing patch file
This should have been included in the import.
diffstat:
net/py-grpcio-tools/patches/patch-setup.py | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diffs (28 lines):
diff -r 06e7e657e745 -r b91fdd4fa77e net/py-grpcio-tools/patches/patch-setup.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-grpcio-tools/patches/patch-setup.py Sat Apr 28 13:57:05 2018 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-setup.py,v 1.1 2018/04/28 13:57:05 minskim Exp $
+
+Use pthread on FreeBSD.
+
+--- setup.py.orig 2018-04-13 19:56:09.000000000 +0000
++++ setup.py
+@@ -85,7 +85,7 @@ if EXTRA_ENV_COMPILE_ARGS is None:
+ EXTRA_ENV_COMPILE_ARGS += ' -fno-wrapv -frtti'
+ if EXTRA_ENV_LINK_ARGS is None:
+ EXTRA_ENV_LINK_ARGS = ''
+- if "linux" in sys.platform or "darwin" in sys.platform:
++ if "linux" in sys.platform or "darwin" in sys.platform or "freebsd" in sys.platform:
+ EXTRA_ENV_LINK_ARGS += ' -lpthread'
+ elif "win32" in sys.platform and sys.version_info < (3, 5):
+ msvcr = cygwinccompiler.get_msvcr()[0]
+@@ -113,7 +113,7 @@ if "win32" in sys.platform:
+ DEFINE_MACROS += (('WIN32_LEAN_AND_MEAN', 1),)
+ if '64bit' in platform.architecture()[0]:
+ DEFINE_MACROS += (('MS_WIN64', 1),)
+-elif "linux" in sys.platform or "darwin" in sys.platform:
++elif "linux" in sys.platform or "darwin" in sys.platform or "freebsd" in sys.platform:
+ DEFINE_MACROS += (('HAVE_PTHREAD', 1),)
+
+ # By default, Python3 distutils enforces compatibility of
Home |
Main Index |
Thread Index |
Old Index