From owner-svn-ports-head@freebsd.org Mon Jan 16 14:24:36 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 0DAF3CB1877; Mon, 16 Jan 2017 14:24:36 +0000 (UTC) (envelope-from grembo@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 B9AED15DF; Mon, 16 Jan 2017 14:24:35 +0000 (UTC) (envelope-from grembo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0GEOYxg085201; Mon, 16 Jan 2017 14:24:34 GMT (envelope-from grembo@FreeBSD.org) Received: (from grembo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0GEOYqX085199; Mon, 16 Jan 2017 14:24:34 GMT (envelope-from grembo@FreeBSD.org) Message-Id: <201701161424.v0GEOYqX085199@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: grembo set sender to grembo@FreeBSD.org using -f From: Michael Gmelin Date: Mon, 16 Jan 2017 14:24:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r431649 - in head/security/xmlsec1: . 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: Mon, 16 Jan 2017 14:24:36 -0000 Author: grembo Date: Mon Jan 16 14:24:34 2017 New Revision: 431649 URL: https://svnweb.freebsd.org/changeset/ports/431649 Log: Fix build with LibreSSL Even though building worked ok, linking to the resulting library libxmlsec1-openssl.so caused various symbol lookup errors such as: /usr/local/lib/libxmlsec1-openssl.so: undefined reference to `X509_OBJECT_get0_X509' /usr/local/lib/libxmlsec1-openssl.so: undefined reference to `ASN1_STRING_get0_data' As the problem only appears at runtime I bumped the revision. Approved by: ssl blanket Added: head/security/xmlsec1/files/patch-src-openssl-openssl11_wrapper.h (contents, props changed) Modified: head/security/xmlsec1/Makefile Modified: head/security/xmlsec1/Makefile ============================================================================== --- head/security/xmlsec1/Makefile Mon Jan 16 14:19:17 2017 (r431648) +++ head/security/xmlsec1/Makefile Mon Jan 16 14:24:34 2017 (r431649) @@ -3,6 +3,7 @@ PORTNAME= xmlsec1 PORTVERSION= 1.2.23 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://www.aleksey.com/xmlsec/download/ \ ftp://ftp.aleksey.com/pub/xmlsec/releases/ \ Added: head/security/xmlsec1/files/patch-src-openssl-openssl11_wrapper.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/xmlsec1/files/patch-src-openssl-openssl11_wrapper.h Mon Jan 16 14:24:34 2017 (r431649) @@ -0,0 +1,11 @@ +--- src/openssl/openssl11_wrapper.h.orig 2016-10-16 22:48:17.000000000 +0000 ++++ src/openssl/openssl11_wrapper.h 2017-01-16 14:02:41.553210002 +0000 +@@ -9,7 +9,7 @@ + * same syntax. This file won't be required once OpenSSL 1.1.0 is the minimum + * suported version. + */ +-#if (OPENSSL_VERSION_NUMBER < 0x10100000) ++#if (OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)) + + #define EVP_PKEY_up_ref(pKey) CRYPTO_add(&((pKey)->references), 1, CRYPTO_LOCK_EVP_PKEY) +