From owner-svn-ports-head@freebsd.org Fri Jun 26 11:15:19 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 DC9AC355226; Fri, 26 Jun 2020 11:15:19 +0000 (UTC) (envelope-from fernape@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 49tZ6v5Tx5z4Sx6; Fri, 26 Jun 2020 11:15:19 +0000 (UTC) (envelope-from fernape@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 B795112F7D; Fri, 26 Jun 2020 11:15:19 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 05QBFJ9C062824; Fri, 26 Jun 2020 11:15:19 GMT (envelope-from fernape@FreeBSD.org) Received: (from fernape@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 05QBFI6U062818; Fri, 26 Jun 2020 11:15:18 GMT (envelope-from fernape@FreeBSD.org) Message-Id: <202006261115.05QBFI6U062818@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: fernape set sender to fernape@FreeBSD.org using -f From: =?UTF-8?Q?Fernando_Apestegu=c3=ada?= Date: Fri, 26 Jun 2020 11:15:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r540491 - in head/net/pichi: . files X-SVN-Group: ports-head X-SVN-Commit-Author: fernape X-SVN-Commit-Paths: in head/net/pichi: . files X-SVN-Commit-Revision: 540491 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: Fri, 26 Jun 2020 11:15:19 -0000 Author: fernape Date: Fri Jun 26 11:15:18 2020 New Revision: 540491 URL: https://svnweb.freebsd.org/changeset/ports/540491 Log: net/pichi: Fix build on 13.0-CURRENT The default c++ compiler on FreeBSD 13.0 CURRENT is Clang10, which has more strict type checking than the one on FreeBSD 12. So, adding some patch files to fix it. PR: 246854 Submitted by: pichi@elude.in (maintainer) Added: head/net/pichi/files/patch-include_pichi_config.hpp.in (contents, props changed) head/net/pichi/files/patch-server_main.cpp (contents, props changed) head/net/pichi/files/patch-test_endpoint.cpp (contents, props changed) head/net/pichi/files/patch-test_method.cpp (contents, props changed) head/net/pichi/files/patch-test_utils.hpp (contents, props changed) Modified: head/net/pichi/Makefile Modified: head/net/pichi/Makefile ============================================================================== --- head/net/pichi/Makefile Fri Jun 26 11:14:12 2020 (r540490) +++ head/net/pichi/Makefile Fri Jun 26 11:15:18 2020 (r540491) @@ -21,17 +21,17 @@ USE_RC_SUBR= pichi PLIST_SUB= DISTVERSION=${DISTVERSION} CMAKE_BUILD_TYPE= MinSizeRel -CMAKE_ARGS= -DVERSION=${DISTVERSION} -CMAKE_ON= BUILD_SERVER BUILD_TEST -INSTALL_TARGET= install/strip -TEST_TARGET= test +CMAKE_ARGS= -DVERSION=${DISTVERSION} +CMAKE_ON= BUILD_SERVER BUILD_TEST +INSTALL_TARGET= install/strip +TEST_TARGET= test OPTIONS_DEFINE= DEVEL STATIC TLS OPTIONS_DEFAULT= TLS OPTIONS_SUB= yes -TLS_DESC= Enable TLS support ( requiring OpenSSL ) -TLS_CMAKE_BOOL= ENABLE_TLS +TLS_DESC= Enable TLS support ( requiring OpenSSL ) +TLS_CMAKE_BOOL= ENABLE_TLS STATIC_DESC= Static linking STATIC_CMAKE_BOOL= STATIC_LINK Added: head/net/pichi/files/patch-include_pichi_config.hpp.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/pichi/files/patch-include_pichi_config.hpp.in Fri Jun 26 11:15:18 2020 (r540491) @@ -0,0 +1,18 @@ +--- include/pichi/config.hpp.in.orig 1970-01-01 00:00:00 UTC ++++ include/pichi/config.hpp.in +@@ -42,6 +42,15 @@ + #pragma warning(pop) + #endif // DISABLE_C4702_FOR_BEAST_FIELDS && _MSC_VER + ++#ifdef __clang__ ++#if !__has_feature(c_atomic) ++#pragma clang diagnostic push ++#pragma clang diagnostic ignored "-Wc11-extensions" ++#include ++#pragma clang diagnostic pop ++#endif // !__has_feature(c_atomic) ++#endif // __clang__ ++ + #cmakedefine CMAKE_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@" + + #ifdef CMAKE_INSTALL_PREFIX Added: head/net/pichi/files/patch-server_main.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/pichi/files/patch-server_main.cpp Fri Jun 26 11:15:18 2020 (r540491) @@ -0,0 +1,15 @@ +--- server/main.cpp.orig 1970-01-01 00:00:00 UTC ++++ server/main.cpp +@@ -1,10 +1,11 @@ ++#include ++// Include config.hpp first + #include + #include + #include + #include + #include + #include +-#include + #include + #ifdef HAS_UNISTD_H + #include Added: head/net/pichi/files/patch-test_endpoint.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/pichi/files/patch-test_endpoint.cpp Fri Jun 26 11:15:18 2020 (r540491) @@ -0,0 +1,12 @@ +--- test/endpoint.cpp.orig 1970-01-01 00:00:00 UTC ++++ test/endpoint.cpp +@@ -132,7 +132,8 @@ BOOST_AUTO_TEST_CASE(serialize_Domain) + #ifndef HAS_CLASS_TEMPLATE_ARGUMENT_DEDUCTION + + #endif // HAS_CLASS_TEMPLATE_ARGUMENT_DEDUCTION +- {0x03, 0x09, 'l', 'o', 'c', 'a', 'l', 'h', 'o', 's', 't', 0x01, 0xbb}; ++ {0x03_u8, 0x09_u8, 0x6c_u8, 0x6f_u8, 0x63_u8, 0x61_u8, 0x6c_u8, ++ 0x68_u8, 0x6f_u8, 0x73_u8, 0x74_u8, 0x01_u8, 0xbb_u8}; + + auto fact = array{}; + auto len = serializeEndpoint(makeEndpoint(host, port), fact); Added: head/net/pichi/files/patch-test_method.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/pichi/files/patch-test_method.cpp Fri Jun 26 11:15:18 2020 (r540491) @@ -0,0 +1,9 @@ +--- test/method.cpp.orig 1970-01-01 00:00:00 UTC ++++ test/method.cpp +@@ -1,5 +1,6 @@ + #define BOOST_TEST_MODULE pichi method test + ++#include "utils.hpp" + #include + #include + #include Added: head/net/pichi/files/patch-test_utils.hpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/pichi/files/patch-test_utils.hpp Fri Jun 26 11:15:18 2020 (r540491) @@ -0,0 +1,11 @@ +--- test/utils.hpp.orig 1970-01-01 00:00:00 UTC ++++ test/utils.hpp +@@ -1,6 +1,8 @@ + #ifndef PICHI_TEST_UTILS_HPP + #define PICHI_TEST_UTILS_HPP + ++#include ++// Include config.hpp first + #include + #include + #include