Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Dec 2019 12:37:06 +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: r520905 - in head/devel/pecl-grpc: . files
Message-ID:  <201912261237.xBQCb6h7001821@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Thu Dec 26 12:37:06 2019
New Revision: 520905
URL: https://svnweb.freebsd.org/changeset/ports/520905

Log:
  devel/pecl-grpc: fix build on GCC architectures
  
  C++11 compiler is necessary:
  cc1plus: error: unrecognized command line option "-std=c++11"
  
  Also, for some reason _LITTLE_ENDIAN is defined on powerpc64. Fix it not to use LE code.
  
  PR:             242887
  Approved by:    vanilla (maintainer)

Added:
  head/devel/pecl-grpc/files/patch-third__party_boringssl_include_openssl_base.h   (contents, props changed)
Modified:
  head/devel/pecl-grpc/Makefile

Modified: head/devel/pecl-grpc/Makefile
==============================================================================
--- head/devel/pecl-grpc/Makefile	Thu Dec 26 12:29:38 2019	(r520904)
+++ head/devel/pecl-grpc/Makefile	Thu Dec 26 12:37:06 2019	(r520905)
@@ -13,9 +13,8 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BROKEN_mips=		fails to compile: fatal error: sys/auxv.h file not found
 BROKEN_mips64=		fails to compile: fatal error: sys/auxv.h file not found
-BROKEN_powerpc64=	fails to compile: cc1: error: unrecognized command line option "-Wno-parentheses-equality"
 
-USES=		php:pecl
+USES=		compiler:c++11-lang php:pecl
 
 .include <bsd.port.pre.mk>
 

Added: head/devel/pecl-grpc/files/patch-third__party_boringssl_include_openssl_base.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/pecl-grpc/files/patch-third__party_boringssl_include_openssl_base.h	Thu Dec 26 12:37:06 2019	(r520905)
@@ -0,0 +1,17 @@
+--- third_party/boringssl/include/openssl/base.h.orig	2019-12-25 21:37:18 UTC
++++ third_party/boringssl/include/openssl/base.h
+@@ -96,9 +96,13 @@ extern "C" {
+ #elif defined(__arm) || defined(__arm__) || defined(_M_ARM)
+ #define OPENSSL_32_BIT
+ #define OPENSSL_ARM
+-#elif (defined(__PPC64__) || defined(__powerpc64__)) && defined(_LITTLE_ENDIAN)
++#elif (defined(__PPC64__) || defined(__powerpc64__)) && defined(__LITTLE_ENDIAN__)
+ #define OPENSSL_64_BIT
+ #define OPENSSL_PPC64LE
++#elif (defined(__PPC64__) || defined(__powerpc64__))
++#define OPENSSL_64_BIT
++#define OPENSSL_PPC64
++#define OPENSSL_BIGENDIAN
+ #elif defined(__mips__) && !defined(__LP64__)
+ #define OPENSSL_32_BIT
+ #define OPENSSL_MIPS



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