From owner-svn-ports-head@freebsd.org Wed Nov 7 02:47:40 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F134B1109DFD; Wed, 7 Nov 2018 02:47:39 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5DE817C529; Wed, 7 Nov 2018 02:47:39 +0000 (UTC) (envelope-from jbeich@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 26B627BED; Wed, 7 Nov 2018 02:47:39 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wA72lduI061516; Wed, 7 Nov 2018 02:47:39 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wA72lcZs061511; Wed, 7 Nov 2018 02:47:38 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201811070247.wA72lcZs061511@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Wed, 7 Nov 2018 02:47:38 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r484377 - in head/devel/boost-libs: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/devel/boost-libs: . files X-SVN-Commit-Revision: 484377 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 5DE817C529 X-Spamd-Result: default: False [-103.09 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; ALLOW_DOMAIN_WHITELIST(-100.00)[FreeBSD.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; DMARC_NA(0.00)[FreeBSD.org]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: mx1.FreeBSD.org]; NEURAL_HAM_SHORT(-0.98)[-0.978,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 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, 07 Nov 2018 02:47:40 -0000 Author: jbeich Date: Wed Nov 7 02:47:38 2018 New Revision: 484377 URL: https://svnweb.freebsd.org/changeset/ports/484377 Log: devel/boost-libs: unbreak some C++14 consumers with GCC after r479222 Boost 1.68 changed System ABI[1] for C++14 but due to a GCC bug it's disabled for C++ >= 17. As our Boost package is built in C++17 consumers cannot use C++14. So, disable the new ABI for the affected GCC versions regardless of C++ standard. [1] https://github.com/boostorg/system/commit/7b6dcf6ac668 PR: 231447 Reported by: Piotr Kubaj Added: head/devel/boost-libs/files/patch-boost_system_error__code.hpp (contents, props changed) Modified: head/devel/boost-libs/Makefile (contents, props changed) Modified: head/devel/boost-libs/Makefile ============================================================================== --- head/devel/boost-libs/Makefile Wed Nov 7 01:08:38 2018 (r484376) +++ head/devel/boost-libs/Makefile Wed Nov 7 02:47:38 2018 (r484377) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= boost-libs -PORTREVISION= 2 +PORTREVISION= 3 COMMENT= Free portable C++ libraries (without Boost.Python) Added: head/devel/boost-libs/files/patch-boost_system_error__code.hpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/boost-libs/files/patch-boost_system_error__code.hpp Wed Nov 7 02:47:38 2018 (r484377) @@ -0,0 +1,35 @@ +Boost.System built in C++ >= 17 doesn't support C++14 consumers with GCC 7.3 + +$ cat >a.cc +#include + +int main() +{ + boost::system::error_code e; + e.clear(); + return 0; +} + +$ g++7 -std=gnu++98 -lboost_system a.cc +$ g++7 -std=gnu++03 -lboost_system a.cc +$ g++7 -std=gnu++11 -lboost_system a.cc +$ g++7 -std=gnu++17 -lboost_system a.cc +$ g++7 -std=gnu++14 -lboost_system a.cc +/tmp//cciZnzeq.o: In function `main': +a.cc:(.text+0x24): undefined reference to `boost::system::detail::system_category_instance' +/tmp//cciZnzeq.o: In function `boost::system::system_category()': +a.cc:(.text._ZN5boost6system15system_categoryEv[_ZN5boost6system15system_categoryEv]+0x5): undefined reference to `boost::system::detail::system_category_instance' +/tmp//cciZnzeq.o: In function `boost::system::generic_category()': +a.cc:(.text._ZN5boost6system16generic_categoryEv[_ZN5boost6system16generic_categoryEv]+0x5): undefined reference to `boost::system::detail::generic_category_instance' + +--- boost/system/error_code.hpp.orig 2018-08-01 20:50:53 UTC ++++ boost/system/error_code.hpp +@@ -43,7 +43,7 @@ + # define BOOST_SYSTEM_HAS_CONSTEXPR + #endif + +-#if defined(__GNUC__) && (__GNUC__ == 7 && __GNUC_MINOR__ < 4) && __cplusplus >= 201700L ++#if defined(__GNUC__) && (__GNUC__ == 7 && __GNUC_MINOR__ < 4) + // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83835 + # undef BOOST_SYSTEM_HAS_CONSTEXPR + #endif