Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Oct 2020 11:46:22 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r553343 - head/devel/pecl-grpc/files
Message-ID:  <202010261146.09QBkMj5005503@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Mon Oct 26 11:46:22 2020
New Revision: 553343
URL: https://svnweb.freebsd.org/changeset/ports/553343

Log:
  devel/pecl-grpc: fix build on powerpc64le
  
  Error:
  In file included from /wrkdirs/usr/ports/devel/pecl-grpc/work-php74/grpc-1.32.0/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc:27:
  /usr/include/sys/sysctl.h:1184:25: error: unknown type name 'u_int'
  int     sysctl(const int *, u_int, void *, size_t *, const void *, size_t);

Added:
  head/devel/pecl-grpc/files/patch-third__party_abseil-cpp_absl_base_internal_unscaledcycleclock.cc   (contents, props changed)
  head/devel/pecl-grpc/files/patch-third__party_boringssl-with-bazel_src_crypto_cpu-ppc64le.c   (contents, props changed)

Added: head/devel/pecl-grpc/files/patch-third__party_abseil-cpp_absl_base_internal_unscaledcycleclock.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/pecl-grpc/files/patch-third__party_abseil-cpp_absl_base_internal_unscaledcycleclock.cc	Mon Oct 26 11:46:22 2020	(r553343)
@@ -0,0 +1,14 @@
+--- third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc.orig	2020-09-11 19:28:49 UTC
++++ third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc
+@@ -24,8 +24,10 @@
+ #ifdef __GLIBC__
+ #include <sys/platform/ppc.h>
+ #elif defined(__FreeBSD__)
+-#include <sys/sysctl.h>
++#include "absl/base/call_once.h"
+ #include <sys/types.h>
++#include <sys/sysctl.h>
++#include <threads.h>
+ #endif
+ #endif
+ 

Added: head/devel/pecl-grpc/files/patch-third__party_boringssl-with-bazel_src_crypto_cpu-ppc64le.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/pecl-grpc/files/patch-third__party_boringssl-with-bazel_src_crypto_cpu-ppc64le.c	Mon Oct 26 11:46:22 2020	(r553343)
@@ -0,0 +1,14 @@
+--- third_party/boringssl-with-bazel/src/crypto/cpu-ppc64le.c.orig	2020-10-26 11:38:52 UTC
++++ third_party/boringssl-with-bazel/src/crypto/cpu-ppc64le.c
+@@ -28,7 +28,11 @@
+ #endif
+ 
+ void OPENSSL_cpuid_setup(void) {
++#if defined(__linux__)
+   OPENSSL_ppc64le_hwcap2 = getauxval(AT_HWCAP2);
++#elif defined(__FreeBSD__)
++  elf_aux_info(AT_HWCAP, &OPENSSL_ppc64le_hwcap2, sizeof(OPENSSL_ppc64le_hwcap2));
++#endif
+ }
+ 
+ int CRYPTO_is_PPC64LE_vcrypto_capable(void) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010261146.09QBkMj5005503>