From owner-svn-ports-head@freebsd.org Sat Apr 8 22:23:21 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 8D382D35A15; Sat, 8 Apr 2017 22:23:21 +0000 (UTC) (envelope-from bofh@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 39F58E3C; Sat, 8 Apr 2017 22:23:21 +0000 (UTC) (envelope-from bofh@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v38MNKtZ087570; Sat, 8 Apr 2017 22:23:20 GMT (envelope-from bofh@FreeBSD.org) Received: (from bofh@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v38MNKKY087567; Sat, 8 Apr 2017 22:23:20 GMT (envelope-from bofh@FreeBSD.org) Message-Id: <201704082223.v38MNKKY087567@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bofh set sender to bofh@FreeBSD.org using -f From: Muhammad Moinur Rahman Date: Sat, 8 Apr 2017 22:23:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r438072 - in head/databases/freetds: . 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: Sat, 08 Apr 2017 22:23:21 -0000 Author: bofh Date: Sat Apr 8 22:23:19 2017 New Revision: 438072 URL: https://svnweb.freebsd.org/changeset/ports/438072 Log: databases/freetds: Fix build with libressl PR: 217549 Submitted by: w.schwarzenfeld@utanet.at Added: head/databases/freetds/files/patch-src_tds_sec_negotiate_openssl.h (contents, props changed) Modified: head/databases/freetds/Makefile head/databases/freetds/files/patch-src_tds_tls.c Modified: head/databases/freetds/Makefile ============================================================================== --- head/databases/freetds/Makefile Sat Apr 8 22:13:54 2017 (r438071) +++ head/databases/freetds/Makefile Sat Apr 8 22:23:19 2017 (r438072) @@ -4,6 +4,7 @@ PORTNAME= freetds PORTVERSION= 1.00.27 PORTEPOCH= 1 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= ftp://ftp.freetds.org/pub/freetds/stable/ Added: head/databases/freetds/files/patch-src_tds_sec_negotiate_openssl.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/freetds/files/patch-src_tds_sec_negotiate_openssl.h Sat Apr 8 22:23:19 2017 (r438072) @@ -0,0 +1,14 @@ +--- src/tds/sec_negotiate_openssl.h.orig 2017-03-06 16:07:14 UTC ++++ src/tds/sec_negotiate_openssl.h +@@ -37,6 +37,11 @@ + #error HAVE_OPENSSL not defines, this file should not be included + #endif + ++#ifdef LIBRESSL_VERSION_NUMBER ++#undef OPENSSL_VERSION_NUMBER ++#define OPENSSL_VERSION_NUMBER 0x1000107fL ++#endif ++ + static inline const BIGNUM* + rsa_get_n(const RSA *rsa) + { Modified: head/databases/freetds/files/patch-src_tds_tls.c ============================================================================== --- head/databases/freetds/files/patch-src_tds_tls.c Sat Apr 8 22:13:54 2017 (r438071) +++ head/databases/freetds/files/patch-src_tds_tls.c Sat Apr 8 22:23:19 2017 (r438072) @@ -11,3 +11,16 @@ #include #include #include +@@ -72,6 +76,12 @@ + #define SSL_PTR ptr + #else + ++#ifdef LIBRESSL_VERSION_NUMBER ++static pthread_mutex_t *openssllocks; ++#undef OPENSSL_VERSION_NUMBER ++#define OPENSSL_VERSION_NUMBER 0x1000107fL ++#endif ++ + /* some compatibility layer */ + #if OPENSSL_VERSION_NUMBER < 0x1010000FL + static inline void