From owner-svn-ports-head@freebsd.org Sun Feb 12 20:14:00 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5BCEFCDC760; Sun, 12 Feb 2017 20:14:00 +0000 (UTC) (envelope-from brnrd@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 mx1.freebsd.org (Postfix) with ESMTPS id 118E11447; Sun, 12 Feb 2017 20:13:59 +0000 (UTC) (envelope-from brnrd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1CKDxmX036907; Sun, 12 Feb 2017 20:13:59 GMT (envelope-from brnrd@FreeBSD.org) Received: (from brnrd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1CKDxu3036905; Sun, 12 Feb 2017 20:13:59 GMT (envelope-from brnrd@FreeBSD.org) Message-Id: <201702122013.v1CKDxu3036905@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brnrd set sender to brnrd@FreeBSD.org using -f From: Bernard Spil Date: Sun, 12 Feb 2017 20:13:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433962 - in head/databases/pecl-mongodb: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Feb 2017 20:14:00 -0000 Author: brnrd Date: Sun Feb 12 20:13:58 2017 New Revision: 433962 URL: https://svnweb.freebsd.org/changeset/ports/433962 Log: databases/pecl-mongodb: Fix build with LibreSSL - Patch check for OPENSSL_VERSION_NUMBER > 1.1 PR: 217028 Approved by: pi (maintainer) Added: head/databases/pecl-mongodb/files/ head/databases/pecl-mongodb/files/patch-src_libmongoc_src_mongoc_mongoc-stream-tls-openssl.c (contents, props changed) Modified: head/databases/pecl-mongodb/Makefile Modified: head/databases/pecl-mongodb/Makefile ============================================================================== --- head/databases/pecl-mongodb/Makefile Sun Feb 12 19:58:46 2017 (r433961) +++ head/databases/pecl-mongodb/Makefile Sun Feb 12 20:13:58 2017 (r433962) @@ -16,10 +16,4 @@ USES= php:ext ssl tar:tgz USE_PHP= spl:build CFLAGS+= -I${LOCALBASE}/include -.include - -.if ${SSL_DEFAULT:Mlibressl*} -IGNORE= LibreSSL not supported until version 1.3.x -.endif - -.include +.include Added: head/databases/pecl-mongodb/files/patch-src_libmongoc_src_mongoc_mongoc-stream-tls-openssl.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/pecl-mongodb/files/patch-src_libmongoc_src_mongoc_mongoc-stream-tls-openssl.c Sun Feb 12 20:13:58 2017 (r433962) @@ -0,0 +1,11 @@ +--- src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c.orig 2017-01-17 18:35:13 UTC ++++ src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c +@@ -638,7 +638,7 @@ mongoc_stream_tls_openssl_new (mongoc_st + RETURN(NULL); + } + +-#if OPENSSL_VERSION_NUMBER >= 0x10002000L ++#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(LIBRESSL_VERSION_NUMBER) + if (!opt->allow_invalid_hostname) { + struct in_addr addr; + X509_VERIFY_PARAM *param = X509_VERIFY_PARAM_new();