Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jan 2017 14:24:34 +0000 (UTC)
From:      Michael Gmelin <grembo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r431649 - in head/security/xmlsec1: . files
Message-ID:  <201701161424.v0GEOYqX085199@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
+ 



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