diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-10-22 15:50:28 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-10-22 15:50:28 +0000 |
commit | 05b0217e8f4470d4dd811e91a541b846d86a1e92 (patch) | |
tree | f86e145a15681824c52483efae322edf7f22dfe4 /net | |
parent | 60050922ae3ad752a3d115d17160426736b7f74f (diff) | |
download | pkgsrc-05b0217e8f4470d4dd811e91a541b846d86a1e92.tar.gz |
py-cares: Fix build on SunOS.
Diffstat (limited to 'net')
-rw-r--r-- | net/py-cares/distinfo | 3 | ||||
-rw-r--r-- | net/py-cares/patches/patch-setup__cares.py | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/net/py-cares/distinfo b/net/py-cares/distinfo index 75adef82160..d41d36fb725 100644 --- a/net/py-cares/distinfo +++ b/net/py-cares/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.2 2017/07/22 06:44:50 adam Exp $ +$NetBSD: distinfo,v 1.3 2018/10/22 15:50:28 jperkin Exp $ SHA1 (pycares-2.3.0.tar.gz) = 930e2bd12eec1229dac8e877e05437f0bbf99a25 RMD160 (pycares-2.3.0.tar.gz) = 9437a3e9b2e8c992f87f584ab63a1fd417a5e146 SHA512 (pycares-2.3.0.tar.gz) = dc707ab0320e03fb20e728e2e2e52e92ed3388afcf19e4553bc2a15c33a129abee39a9bc423edb7be7113d42989286ab8e8ad48699cc7433a6d8823460fd4678 Size (pycares-2.3.0.tar.gz) = 224941 bytes +SHA1 (patch-setup__cares.py) = 07c04f2ab55b65c2182572e1f0fe18fffbeaf138 diff --git a/net/py-cares/patches/patch-setup__cares.py b/net/py-cares/patches/patch-setup__cares.py new file mode 100644 index 00000000000..f4aaacdb82b --- /dev/null +++ b/net/py-cares/patches/patch-setup__cares.py @@ -0,0 +1,18 @@ +$NetBSD: patch-setup__cares.py,v 1.1 2018/10/22 15:50:28 jperkin Exp $ + +Fix build on SunOS. + +--- setup_cares.py.orig 2017-04-25 06:44:35.000000000 +0000 ++++ setup_cares.py +@@ -85,9 +85,10 @@ class cares_build_ext(build_ext): + elif sys.platform.startswith('openbsd'): + self.compiler.add_include_dir(os.path.join(self.cares_dir, 'src/config_openbsd')) + elif sys.platform.startswith('sunos'): ++ self.compiler.add_include_dir(os.path.join(self.cares_dir, 'src/config_sunos')) + self.compiler.add_library('socket') + self.compiler.add_library('nsl') +- self.compiler.add_library('lkstat') ++ self.compiler.add_library('kstat') + elif sys.platform == 'win32': + self.compiler.add_include_dir(os.path.join(self.cares_dir, 'src/config_win32')) + self.extensions[0].extra_link_args = ['/NODEFAULTLIB:libcmt'] |