pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/grpc grpc: Add SunOS support.
details: https://anonhg.NetBSD.org/pkgsrc/rev/e8730adaf838
branches: trunk
changeset: 307982:e8730adaf838
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Tue May 15 15:20:17 2018 +0000
description:
grpc: Add SunOS support.
diffstat:
net/grpc/distinfo | 5 +-
net/grpc/patches/patch-include_grpc_impl_codegen_port__platform.h | 33 ++++++++++
net/grpc/patches/patch-src_core_ext_filters_client__channel_resolver_dns_c__ares_grpc__ares__ev__driver__posix.cc | 18 +++++
net/grpc/patches/patch-src_core_lib_iomgr_port.h | 20 ++++++
4 files changed, 75 insertions(+), 1 deletions(-)
diffs (100 lines):
diff -r d9b41f27c6b1 -r e8730adaf838 net/grpc/distinfo
--- a/net/grpc/distinfo Tue May 15 15:14:51 2018 +0000
+++ b/net/grpc/distinfo Tue May 15 15:20:17 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2018/04/27 17:47:27 minskim Exp $
+$NetBSD: distinfo,v 1.5 2018/05/15 15:20:17 jperkin Exp $
SHA1 (grpc-1.11.0.tar.gz) = e4ddeb1de8ccc00987a8a12879d0ecbfe9ccb5d6
RMD160 (grpc-1.11.0.tar.gz) = 9d950dee2d00015f72066dd9b83c92b0a4bb81cb
@@ -7,4 +7,7 @@
SHA1 (patch-CMakeLists.txt) = 3bd2e5bc254a06b03578430eb57ea14c13336219
SHA1 (patch-cmake_benchmark.cmake) = 031873ba9a8cd93d491693feb4d58e52a715cc64
SHA1 (patch-cmake_cares.cmake) = 19324318dce81451bf7a53d0ca5a7e445a751db5
+SHA1 (patch-include_grpc_impl_codegen_port__platform.h) = 7d2630c8940e8de5201cadc67341707608d20aa3
+SHA1 (patch-src_core_ext_filters_client__channel_resolver_dns_c__ares_grpc__ares__ev__driver__posix.cc) = 341b9dd5cc40aa45000eb01b5acb2ad99d705264
SHA1 (patch-src_core_lib_gpr_arena.cc) = 57fdb3de54ce8548fa9b50ea360530c35c3e616c
+SHA1 (patch-src_core_lib_iomgr_port.h) = aedab7c6c9906f332fdee23b9a909944d0f2966d
diff -r d9b41f27c6b1 -r e8730adaf838 net/grpc/patches/patch-include_grpc_impl_codegen_port__platform.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/grpc/patches/patch-include_grpc_impl_codegen_port__platform.h Tue May 15 15:20:17 2018 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-include_grpc_impl_codegen_port__platform.h,v 1.1 2018/05/15 15:20:18 jperkin Exp $
+
+Add SunOS support.
+
+--- include/grpc/impl/codegen/port_platform.h.orig 2018-04-13 18:08:11.000000000 +0000
++++ include/grpc/impl/codegen/port_platform.h
+@@ -307,6 +307,26 @@
+ #else /* _LP64 */
+ #define GPR_ARCH_32 1
+ #endif /* _LP64 */
++#elif defined(__sun)
++#define GPR_PLATFORM_STRING "sunos"
++#define GPR_SUNOS 1
++#define GPR_CPU_POSIX 1
++#define GPR_GCC_ATOMIC 1
++#define GPR_GCC_TLS 1
++#define GPR_POSIX_LOG 1
++#define GPR_POSIX_ENV 1
++#define GPR_POSIX_TMPFILE 1
++#define GPR_POSIX_STRING 1
++#define GPR_POSIX_SUBPROCESS 1
++#define GPR_POSIX_SYNC 1
++#define GPR_POSIX_TIME 1
++#define GPR_GETPID_IN_UNISTD_H 1
++#define GPR_SUPPORT_CHANNELS_FROM_FD 1
++#ifdef _LP64
++#define GPR_ARCH_64 1
++#else /* _LP64 */
++#define GPR_ARCH_32 1
++#endif /* _LP64 */
+ #else
+ #error "Could not auto-detect platform"
+ #endif
diff -r d9b41f27c6b1 -r e8730adaf838 net/grpc/patches/patch-src_core_ext_filters_client__channel_resolver_dns_c__ares_grpc__ares__ev__driver__posix.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/grpc/patches/patch-src_core_ext_filters_client__channel_resolver_dns_c__ares_grpc__ares__ev__driver__posix.cc Tue May 15 15:20:17 2018 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_core_ext_filters_client__channel_resolver_dns_c__ares_grpc__ares__ev__driver__posix.cc,v 1.1 2018/05/15 15:20:18 jperkin Exp $
+
+Add SunOS support.
+
+--- src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc.orig 2018-04-13 18:08:11.000000000 +0000
++++ src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc
+@@ -22,6 +22,11 @@
+
+ #include <ares.h>
+ #include <sys/ioctl.h>
++#ifdef __sun
++#include <sys/filio.h>
++#include <unistd.h>
++#include <stropts.h>
++#endif
+
+ #include "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h"
+
diff -r d9b41f27c6b1 -r e8730adaf838 net/grpc/patches/patch-src_core_lib_iomgr_port.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/grpc/patches/patch-src_core_lib_iomgr_port.h Tue May 15 15:20:17 2018 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-src_core_lib_iomgr_port.h,v 1.1 2018/05/15 15:20:18 jperkin Exp $
+
+Add SunOS support.
+
+--- src/core/lib/iomgr/port.h.orig 2018-04-13 18:08:11.000000000 +0000
++++ src/core/lib/iomgr/port.h
+@@ -120,6 +120,13 @@
+ #define GRPC_POSIX_SOCKET 1
+ #define GRPC_POSIX_SOCKETUTILS 1
+ #define GRPC_POSIX_WAKEUP_FD 1
++#elif defined(GPR_SUNOS)
++#define GRPC_HAVE_UNIX_SOCKET 1
++#define GRPC_POSIX_FORK 1
++#define GRPC_POSIX_NO_SPECIAL_WAKEUP_FD 1
++#define GRPC_POSIX_SOCKET 1
++#define GRPC_POSIX_SOCKETUTILS 1
++#define GRPC_POSIX_WAKEUP_FD 1
+ #elif defined(GPR_NACL)
+ #define GRPC_HAVE_ARPA_NAMESER 1
+ #define GRPC_POSIX_NO_SPECIAL_WAKEUP_FD 1
Home |
Main Index |
Thread Index |
Old Index