From owner-svn-ports-head@freebsd.org Wed May 13 07:55:25 2020 Return-Path: Delivered-To: svn-ports-head@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 61DDE2EDF05; Wed, 13 May 2020 07:55:25 +0000 (UTC) (envelope-from ale@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) server-signature RSA-PSS (4096 bits) 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 49MRmY1ZBkz3DrJ; Wed, 13 May 2020 07:55:25 +0000 (UTC) (envelope-from ale@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 310F31E349; Wed, 13 May 2020 07:55:25 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 04D7tPF5025126; Wed, 13 May 2020 07:55:25 GMT (envelope-from ale@FreeBSD.org) Received: (from ale@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 04D7tO2P025123; Wed, 13 May 2020 07:55:24 GMT (envelope-from ale@FreeBSD.org) Message-Id: <202005130755.04D7tO2P025123@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ale set sender to ale@FreeBSD.org using -f From: Alex Dupre Date: Wed, 13 May 2020 07:55:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r535088 - in head/www/tomcat-native: . files X-SVN-Group: ports-head X-SVN-Commit-Author: ale X-SVN-Commit-Paths: in head/www/tomcat-native: . files X-SVN-Commit-Revision: 535088 X-SVN-Commit-Repository: ports 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.33 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: Wed, 13 May 2020 07:55:25 -0000 Author: ale Date: Wed May 13 07:55:24 2020 New Revision: 535088 URL: https://svnweb.freebsd.org/changeset/ports/535088 Log: Fix build with libressl. PR: 246373 Submitted by: Michael Osipov Added: head/www/tomcat-native/files/ head/www/tomcat-native/files/patch-include_ssl__private.h (contents, props changed) head/www/tomcat-native/files/patch-src_ssl.c (contents, props changed) Modified: head/www/tomcat-native/Makefile Modified: head/www/tomcat-native/Makefile ============================================================================== --- head/www/tomcat-native/Makefile Wed May 13 07:55:12 2020 (r535087) +++ head/www/tomcat-native/Makefile Wed May 13 07:55:24 2020 (r535088) @@ -3,6 +3,7 @@ PORTNAME= tomcat-native PORTVERSION= 1.2.24 +PORTREVISION= 1 CATEGORIES= www java MASTER_SITES= APACHE/tomcat/tomcat-connectors/native/${PORTVERSION}/source DISTNAME= ${PORTNAME}-${PORTVERSION}-src Added: head/www/tomcat-native/files/patch-include_ssl__private.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/tomcat-native/files/patch-include_ssl__private.h Wed May 13 07:55:24 2020 (r535088) @@ -0,0 +1,11 @@ +--- include/ssl_private.h.orig 2020-04-24 19:24:44 UTC ++++ include/ssl_private.h +@@ -241,7 +241,7 @@ + #define TLS_server_method SSLv23_server_method + #endif /* OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) */ + +-#if OPENSSL_VERSION_NUMBER >= 0x10101000L ++#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER) + #define HAVE_KEYLOG_CALLBACK + #endif + Added: head/www/tomcat-native/files/patch-src_ssl.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/tomcat-native/files/patch-src_ssl.c Wed May 13 07:55:24 2020 (r535088) @@ -0,0 +1,46 @@ +--- src/ssl.c.orig 2020-04-24 19:24:44 UTC ++++ src/ssl.c +@@ -367,11 +367,6 @@ static apr_status_t ssl_init_cleanup(void *data) + #endif + free_dh_params(); + +-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) +- /* Openssl v1.1+ handles all termination automatically. Do +- * nothing in this case. +- */ +-#else + /* + * Try to kill the internals of the SSL library. + */ +@@ -394,7 +389,6 @@ static apr_status_t ssl_init_cleanup(void *data) + #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + ERR_remove_thread_state(NULL); + #endif +-#endif + + #ifdef HAVE_KEYLOG_CALLBACK + if (key_log_file) { +@@ -764,14 +758,7 @@ TCN_IMPLEMENT_CALL(jint, SSL, initialize)(TCN_STDARGS, + TCN_FREE_CSTRING(engine); + return (jint)APR_SUCCESS; + } +-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) +- /* Openssl v1.1+ handles all initialisation automatically, apart +- * from hints as to how we want to use the library. +- * +- * We tell openssl we want to include engine support. +- */ +- OPENSSL_init_ssl(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL); +-#else ++ + /* We must register the library in full, to ensure our configuration + * code can successfully test the SSL environment. + */ +@@ -785,6 +772,7 @@ TCN_IMPLEMENT_CALL(jint, SSL, initialize)(TCN_STDARGS, + #endif + OPENSSL_load_builtin_modules(); + ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + #if ! (defined(WIN32) || defined(WIN64)) + err = apr_threadkey_private_create(&thread_exit_key, _ssl_thread_exit, + tcn_global_pool);