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 NetBSD support
details: https://anonhg.NetBSD.org/pkgsrc/rev/e6907b9a27df
branches: trunk
changeset: 327410:e6907b9a27df
user: leot <leot%pkgsrc.org@localhost>
date: Mon Dec 31 23:00:08 2018 +0000
description:
grpc: Add NetBSD support
diffstat:
net/grpc/distinfo | 6 +-
net/grpc/patches/patch-include_grpc_impl_codegen_port__platform.h | 37 +++++++++-
net/grpc/patches/patch-src_core_lib_iomgr_port.h | 18 ++++-
3 files changed, 52 insertions(+), 9 deletions(-)
diffs (99 lines):
diff -r 1875c930d2e8 -r e6907b9a27df net/grpc/distinfo
--- a/net/grpc/distinfo Mon Dec 31 22:15:16 2018 +0000
+++ b/net/grpc/distinfo Mon Dec 31 23:00:08 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2018/08/04 21:25:58 minskim Exp $
+$NetBSD: distinfo,v 1.7 2018/12/31 23:00:08 leot Exp $
SHA1 (grpc-1.13.1.tar.gz) = 57e1029fa40bd9defe57b5d9c1c69cdaa46fd5d1
RMD160 (grpc-1.13.1.tar.gz) = e983b73f5df133a1d3db0de9ae1297eca11c5329
@@ -7,7 +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-include_grpc_impl_codegen_port__platform.h) = 18e213ffc4875b736a6a895a4d56cccc2b66c660
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
+SHA1 (patch-src_core_lib_iomgr_port.h) = e3c5e6ee071557c717df0a1a61597f9906fbeff5
diff -r 1875c930d2e8 -r e6907b9a27df net/grpc/patches/patch-include_grpc_impl_codegen_port__platform.h
--- a/net/grpc/patches/patch-include_grpc_impl_codegen_port__platform.h Mon Dec 31 22:15:16 2018 +0000
+++ b/net/grpc/patches/patch-include_grpc_impl_codegen_port__platform.h Mon Dec 31 23:00:08 2018 +0000
@@ -1,10 +1,41 @@
-$NetBSD: patch-include_grpc_impl_codegen_port__platform.h,v 1.1 2018/05/15 15:20:18 jperkin Exp $
+$NetBSD: patch-include_grpc_impl_codegen_port__platform.h,v 1.2 2018/12/31 23:00:08 leot Exp $
+Add NetBSD support.
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.orig 2018-07-12 14:40:09.000000000 +0000
+++ include/grpc/impl/codegen/port_platform.h
-@@ -307,6 +307,26 @@
+@@ -282,6 +282,29 @@
+ #else /* _LP64 */
+ #define GPR_ARCH_32 1
+ #endif /* _LP64 */
++#elif defined(__NetBSD__)
++#define GPR_PLATFORM_STRING "netbsd"
++#ifndef _BSD_SOURCE
++#define _BSD_SOURCE
++#endif
++#define GPR_NETBSD 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 */
+ #elif defined(__native_client__)
+ #define GPR_PLATFORM_STRING "nacl"
+ #ifndef _BSD_SOURCE
+@@ -310,6 +333,26 @@
#else /* _LP64 */
#define GPR_ARCH_32 1
#endif /* _LP64 */
diff -r 1875c930d2e8 -r e6907b9a27df net/grpc/patches/patch-src_core_lib_iomgr_port.h
--- a/net/grpc/patches/patch-src_core_lib_iomgr_port.h Mon Dec 31 22:15:16 2018 +0000
+++ b/net/grpc/patches/patch-src_core_lib_iomgr_port.h Mon Dec 31 23:00:08 2018 +0000
@@ -1,13 +1,25 @@
-$NetBSD: patch-src_core_lib_iomgr_port.h,v 1.1 2018/05/15 15:20:18 jperkin Exp $
+$NetBSD: patch-src_core_lib_iomgr_port.h,v 1.2 2018/12/31 23:00:08 leot Exp $
+Add NetBSD support.
Add SunOS support.
---- src/core/lib/iomgr/port.h.orig 2018-04-13 18:08:11.000000000 +0000
+--- src/core/lib/iomgr/port.h.orig 2018-07-12 14:40:09.000000000 +0000
+++ src/core/lib/iomgr/port.h
-@@ -120,6 +120,13 @@
+@@ -139,6 +139,24 @@
#define GRPC_POSIX_SOCKET 1
#define GRPC_POSIX_SOCKETUTILS 1
#define GRPC_POSIX_WAKEUP_FD 1
++#elif defined(GPR_NETBSD)
++#define GRPC_HAVE_ARPA_NAMESER 1
++#define GRPC_HAVE_IFADDRS 1
++#define GRPC_HAVE_IPV6_RECVPKTINFO 1
++#define GRPC_HAVE_SO_NOSIGPIPE 1
++#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_SUNOS)
+#define GRPC_HAVE_UNIX_SOCKET 1
+#define GRPC_POSIX_FORK 1
Home |
Main Index |
Thread Index |
Old Index