From owner-svn-ports-all@freebsd.org Sun Aug 9 12:16:57 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5395A3B49C5; Sun, 9 Aug 2020 12:16:57 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BPdPj1Z1vz41TR; Sun, 9 Aug 2020 12:16:57 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 15F5F19176; Sun, 9 Aug 2020 12:16:57 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 079CGuj3071488; Sun, 9 Aug 2020 12:16:56 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 079CGuId071486; Sun, 9 Aug 2020 12:16:56 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202008091216.079CGuId071486@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Sun, 9 Aug 2020 12:16:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r544563 - in head/devel/py-grpcio: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: in head/devel/py-grpcio: . files X-SVN-Commit-Revision: 544563 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Aug 2020 12:16:57 -0000 Author: pkubaj Date: Sun Aug 9 12:16:56 2020 New Revision: 544563 URL: https://svnweb.freebsd.org/changeset/ports/544563 Log: devel/py-grpcio: fix build on powerpc(64) Some mingling with headers is required to build abseil properly. BoringSSL doesn't support powerpc and powerpc64 at all, only powerpc64le (ppc64le) is supported, so use system OpenSSL. BoringSSL is used because ALPN support is required, but it was implemented back in OpenSSL 1.0.2, which even stable/11 branch has. There's no need to use external SSL library at all. Bump PORTREVISION because of package change. PR: 248550 Approved by: vanilla (maintainer) MFH: 2020Q3 (fix build blanket) Added: head/devel/py-grpcio/files/patch-third__party_abseil-cpp_absl_base_internal_unscaledcycleclock.cc (contents, props changed) Modified: head/devel/py-grpcio/Makefile Modified: head/devel/py-grpcio/Makefile ============================================================================== --- head/devel/py-grpcio/Makefile Sun Aug 9 10:53:11 2020 (r544562) +++ head/devel/py-grpcio/Makefile Sun Aug 9 12:16:56 2020 (r544563) @@ -3,6 +3,7 @@ PORTNAME= grpcio PORTVERSION= 1.31.0 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -20,11 +21,9 @@ LIB_DEPENDS= libcares.so:dns/c-ares USES= compiler:c++11-lib localbase:ldflags python:3.5+ USE_PYTHON= autoplist distutils -MAKE_ENV+= GRPC_PYTHON_BUILD_SYSTEM_ZLIB=true \ +MAKE_ENV+= GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=true \ + GRPC_PYTHON_BUILD_SYSTEM_ZLIB=true \ GRPC_PYTHON_BUILD_SYSTEM_CARES=true -CFLAGS+= -Ithird_party/boringssl/include -CFLAGS_powerpc64= -maltivec -mvsx -CFLAGS_powerpc= -maltivec LDFLAGS+= -lcares post-install: Added: head/devel/py-grpcio/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/py-grpcio/files/patch-third__party_abseil-cpp_absl_base_internal_unscaledcycleclock.cc Sun Aug 9 12:16:56 2020 (r544563) @@ -0,0 +1,14 @@ +--- third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc.orig 2020-08-08 21:50:49 UTC ++++ third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc +@@ -24,8 +24,10 @@ + #ifdef __GLIBC__ + #include + #elif defined(__FreeBSD__) +-#include ++#include "absl/base/call_once.h" + #include ++#include ++#include + #endif + #endif +