From nobody Fri Oct 11 17:31:13 2024 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 4XQDDx2sn0z5Z9Mm; Fri, 11 Oct 2024 17:31:13 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XQDDx2DTVz59BC; Fri, 11 Oct 2024 17:31:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728667873; 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=2x9iB3fqLDlwkAHtlttTQpXnybfcWgW2ve4RPu6c77k=; b=gIlS70/ioIEW4Y3LctLzfbdhh6rtVHHn90g/71IS5jnU1lu7QDsdt25RBb/E/hSEda7U5O wDDlDBp2uxKjRKD2p2KY/W3BM6SdGbdTnqj83uDIzjotVwMaRREZkwW0izkvchVpSfr/Zs 5LlSdfCiDMKS7NrsF3Xpoq7KEgrfkSLfdxUkqzlXzvcE1TkBbln0f5rWCTO7Y/yNIdys6k 0/xps70aCWDmL4owRTM8Rk6Ovacgb/a0F1ki8fU+ZFCa3+94OVFdJGj7FpnsdZlFLt+psR wYY1sFQ1X4hDDAB+jMB44Dw13bscani3gFvRVrpcNJvs6iV+/pMTAc6CWnMKQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728667873; 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=2x9iB3fqLDlwkAHtlttTQpXnybfcWgW2ve4RPu6c77k=; b=NjyNmaEPr91wI4Vzw1To5V29nL64h6FEARk+/srDBd8wK5UNFrVIl4yW4jJyDpH+AH36aC oCwIQRrq9QgGrD2QVzrw+iFNOA0xoDQjEC6gWR6ZTZg1RWyZsFffmmjtQxzeAChn4+iI8+ fE/49x4yS9yc8FMB2DxC7gi8vpvssrb3TE2fQOZtOndOVRzTsPMNWqVWObmIyUiTswYWB6 ZVOalm2UVjZCdvPfB9JeM/j7cC4poxoevygNvc6Yxc5JDQ3ziSTPd469jSTNUv/sHSiMnI E8YLNVHa69Qsecl89tlZmHUEEqTG9u29Wgt2Sgy6KnDqhlsVIpTGXLfHl/sorA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728667873; a=rsa-sha256; cv=none; b=fsOwxh0mS7egVpyGYyC3G1R7L245E+42MoRikxSCIRp4GKNIVGPxnGuTqAnL8Pz5z3L0Do C/ayBPLU1gD72gUbW0xiWr10OoME5kjodpGiB0BuIQM9/o86e0yJm4a8WHiKEXptU5ygTN C42cOoQ7MGPBXtrMKfZr8PX5IkzUL9QIhtIdut1W/kIBTcxIBnfpiqLLOnc6LMS5xHgqgT nFt6AebAx3wbtv9zmBFQF0OOgA+ZnGRpKPHoWqI9477kbfCOdru2cebQEHRyJUHxMLDN0g PdUzCWfrQRAIbZo0sGMTNesE5gpbftSEjPmp9ZNrwuCGz4Yq/CvI0tK1tnrZ7A== 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 4XQDDx1XmRzrK7; Fri, 11 Oct 2024 17:31:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49BHVDMo053987; Fri, 11 Oct 2024 17:31:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49BHVDFH053984; Fri, 11 Oct 2024 17:31:13 GMT (envelope-from git) Date: Fri, 11 Oct 2024 17:31:13 GMT Message-Id: <202410111731.49BHVDFH053984@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: 08d6ba6fa1dd - main - biology/biosig: fix build with libc++ 19 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-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: 08d6ba6fa1dddca87fb19366370f0eb06c6aac21 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=08d6ba6fa1dddca87fb19366370f0eb06c6aac21 commit 08d6ba6fa1dddca87fb19366370f0eb06c6aac21 Author: Dimitry Andric AuthorDate: 2024-10-09 18:57:33 +0000 Commit: Dimitry Andric CommitDate: 2024-10-11 17:30:49 +0000 biology/biosig: fix build with libc++ 19 With libc++ 19, biology/biosig fails to compile, with errors similar to: /usr/include/c++/v1/__math/special_functions.h:51:16: error: expected unqualified-id 51 | if (!__math::isfinite(__H_n)) { | ^ ./t230/../biosig-dev.h:932:22: note: expanded from macro 'isfinite' 932 | # define isfinite(a) (-INFINITY < (a) && (a) < INFINITY) | ^ This is because biosig attempts to define its own isfinite() macro, which it should not do. Stub out the incompatible definition. PR: 281976 Approved by: yuri (maintainer) MFH: 2024Q4 --- biology/biosig/files/patch-biosig4c++_biosig-dev.h | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/biology/biosig/files/patch-biosig4c++_biosig-dev.h b/biology/biosig/files/patch-biosig4c++_biosig-dev.h index 8a489fdfc0db..9ca61e910c80 100644 --- a/biology/biosig/files/patch-biosig4c++_biosig-dev.h +++ b/biology/biosig/files/patch-biosig4c++_biosig-dev.h @@ -1,4 +1,4 @@ ---- biosig4c++/biosig-dev.h.orig 2022-10-08 10:54:15 UTC +--- biosig4c++/biosig-dev.h.orig 2024-08-03 10:06:47 UTC +++ biosig4c++/biosig-dev.h @@ -35,6 +35,8 @@ #include @@ -9,16 +9,25 @@ #ifdef __cplusplus extern "C" { -@@ -549,6 +551,12 @@ HDRTYPE* sopen_extended(const char* FileName, const ch - #elif defined(__linux__) +@@ -550,6 +552,12 @@ HDRTYPE* sopen_extended(const char* FileName, const ch # include # include -+ + +#elif defined(__FreeBSD__) +# include +# define __BIG_ENDIAN _BIG_ENDIAN +# define __LITTLE_ENDIAN _LITTLE_ENDIAN +# define __BYTE_ORDER _BYTE_ORDER - ++ #elif defined(__FreeBSD__) # include + +@@ -920,7 +928,7 @@ static inline void bef64a( double i, void* r) { + #ifndef INFINITY + # define INFINITY (1.0/0.0) /* positive infinity */ + #endif +-#ifndef isfinite ++#if 0 + # define isfinite(a) (-INFINITY < (a) && (a) < INFINITY) + #endif +