pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/py-grpcio-tools/patches



Module Name:    pkgsrc
Committed By:   minskim
Date:           Sat Apr 28 13:57:05 UTC 2018

Added Files:
        pkgsrc/net/py-grpcio-tools/patches: patch-setup.py

Log Message:
net/py-grpcio-tools: Add missing patch file

This should have been included in the import.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/net/py-grpcio-tools/patches/patch-setup.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/net/py-grpcio-tools/patches/patch-setup.py
diff -u /dev/null pkgsrc/net/py-grpcio-tools/patches/patch-setup.py:1.1
--- /dev/null   Sat Apr 28 13:57:05 2018
+++ pkgsrc/net/py-grpcio-tools/patches/patch-setup.py   Sat Apr 28 13:57:05 2018
@@ -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