From nobody Thu Jun 08 16:30:50 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QcV7t6TnNz4byJF; Thu, 8 Jun 2023 16:30:50 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QcV7t4tDSz3Gvg; Thu, 8 Jun 2023 16:30:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686241850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vnQtC+A/GTSBTyAogIQHK2oWzf4mqqL4izJMSekxM9o=; b=bngiQ+MLfiP93909kT+y70yiABAdcKOauOjPdPSJusAMb1TZFZ9cXnmPsXPdUBHoMfSpGL lp1cT4Q+7vKuSrRaINrjKn2X9xgjG9IYLmf4XQ/rqB4wM9uUMgDaMypLeTIhnJhWo0Aqvz OTyEbqvOAyfpGtxjnUWLLDametMlx9LXCYOgl8NUDlgKFJXD6rrH3WBWy5L+sWA5SqPeWw 7bH3cIIqvpDdDVNGBlBzyVDtX1+0fWJUDRW8cfCpsyW20rZypP9GWJ65kX8LbrmBFkhvj/ x7a+CMf7/FtI4woApQzg3uNCymIIwsR6oa4qRww/ByCSFNMGcyeBsdcrwTrmwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686241850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vnQtC+A/GTSBTyAogIQHK2oWzf4mqqL4izJMSekxM9o=; b=kk0nMbPfd5c22R7gbuDTYhgLi2S3wUrFM170KTl2xoc6RPOxWI7giqIe8++ZrZEd/pYzX2 E3XB5961kEZXGLVQLxuUcnnMM9CHaUwOiLFcbJAHQ+qnIEun6mTpYZmOyb0x6IeUcDRMx9 cwQ/PhkKiF5gi4Y0j+7A9WMcrVfsO4tsv7GANEcjkEL+H4F8m/TlFGWH6/ntOgtHK+yFWV 3AC2w4ikrq6RWE7+3bS+X9I89k/KXVsXG2lzXHgkKXWxJq/V+jzIMYCaiJKFhTPHLPFrYI J8TUiO/q/iTMyH++06l8jPvHC5O3P2X0CaNGii3JpZ9swncJkoK1FuBpay25mg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686241850; a=rsa-sha256; cv=none; b=uW6H69of+KEU2bf9ZA/8Dti4D7Rq0xG5BVquJT16HDSbmRyJaztZLo1ogkU1jIfXv4/4y8 obaPjEvCgXTmiNxtSypPSvU2SvKy2rb0X4zZ0gLlRtRvXYR7yothnGzk0VlhK2hLva41wv 1CGFuYGnZOxhkAEin3Ra6+v99mdQITcQSC0awgOn4bFIIjqGFWiLROxoNFmyDSxHScOtbM 1yDUJBBFZ9c9xCgLDjdJDuHOuvi+WOVMk53gX9aPxa1RYZ5ZaPiBJOipnR9cG6ZzxvVNi6 Opq1kdWd8RDh0VGdFvDb0vpWiavfW7x7x2d/0dfDH3hIDEq8zZ4iWUdWHLPJjw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QcV7t405Xz11TR; Thu, 8 Jun 2023 16:30:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 358GUodo059839; Thu, 8 Jun 2023 16:30:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 358GUoKX059838; Thu, 8 Jun 2023 16:30:50 GMT (envelope-from git) Date: Thu, 8 Jun 2023 16:30:50 GMT Message-Id: <202306081630.358GUoKX059838@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: f82231b90cd7 - main - math/coinutils: fix build with clang 16 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f82231b90cd753bb00025162f79f4b2cb492d41a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=f82231b90cd753bb00025162f79f4b2cb492d41a commit f82231b90cd753bb00025162f79f4b2cb492d41a Author: Dimitry Andric AuthorDate: 2023-06-06 15:46:11 +0000 Commit: Dimitry Andric CommitDate: 2023-06-08 16:29:48 +0000 math/coinutils: fix build with clang 16 Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because math/coinutils's build infrastructure does not explicitly set its C++ standard, this leads to several errors: ./CoinOslC.h:37:15: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] int c_ekkbtrn(register const EKKfactinfo *fact, ^~~~~~~~~ ./CoinOslC.h:40:22: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] int c_ekkbtrn_ipivrw(register const EKKfactinfo *fact, ^~~~~~~~~ ./CoinOslC.h:44:15: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] int c_ekketsj(register /*const*/ EKKfactinfo *fact, ^~~~~~~~ ./CoinOslC.h:49:15: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] int c_ekkftrn(register const EKKfactinfo *fact, ^~~~~~~~~ ./CoinOslC.h:53:18: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] int c_ekkftrn_ft(register EKKfactinfo *fact, ^~~~~~~~~ ./CoinOslC.h:55:17: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] void c_ekkftrn2(register EKKfactinfo *fact, double *dwork1, ^~~~~~~~~ ./CoinOslC.h:59:15: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] int c_ekklfct(register EKKfactinfo *fact); ^~~~~~~~~ ./CoinOslC.h:60:15: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] int c_ekkslcf(register const EKKfactinfo *fact); ^~~~~~~~~ To work around the errors, define the register keyword away using CPPFLAGS. PR: 271870 Approved by: yuri (maintainer) MFH: 2023Q2 --- math/coinutils/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/math/coinutils/Makefile b/math/coinutils/Makefile index 41f97eda927d..d059a758ff98 100644 --- a/math/coinutils/Makefile +++ b/math/coinutils/Makefile @@ -1,6 +1,7 @@ PORTNAME= CoinUtils DISTVERSIONPREFIX= releases/ DISTVERSION= 2.11.9 +PORTREVISION= 1 CATEGORIES= math PKGNAMEPREFIX= coin-or- @@ -25,6 +26,8 @@ CONFIGURE_ARGS= --with-blas-lib="-lopenblas" --with-lapack-lib="-lopenblas" \ # doesn't link with the optional dependency glpk: https://github.com/coin-or/CoinUtils/issues/7 USE_LDCONFIG= yes +CPPFLAGS+= -Dregister= + USE_GITHUB= yes GH_ACCOUNT= coin-or