From nobody Thu Sep 19 07:22:25 2024 X-Original-To: dev-commits-ports-all@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 4X8Rmd58FSz5XNBC; Thu, 19 Sep 2024 07:22:25 +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 4X8Rmd37dJz44bM; Thu, 19 Sep 2024 07:22:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726730545; 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=WCu215mdStxnr6hPNTlXygp7XfmbW37iCvA+k/NqPqo=; b=LAc9HdhuUOtTc2k3EMweGFiAXeXm4Hkn1QmX3k51lAUZn6vOmsOpUXrNkUH2PuKT7a6iDE VXHnFFsfT6rsbrzLZjQJd/M95jvsFAb7GlgybYKhRYk/9E6Fhjlg4bJ+0cFxG1lYly4KHz 5NGLG0uDrXyOyDDGdNND6q5ofGpsFK+V2xUQcW4cQeWH2Gbd9/CBLntNXzBxFrhA+ibOka vSKf67ATQJRUKzgyPhbHFjqpwEUMXbXO+lPdw/W5UDC50NVDVmijR3VmA9WS4n+MHubPR0 1bDkAfHcRkKsE+zkUvfo+5n2MoTM0URmOiipc0I5Z11zaWzsP0e9QJN7BRcZDw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726730545; a=rsa-sha256; cv=none; b=Ho0J7giwl+1qj5ExLh1Z1NSfibR12t2o3OuROHOabj8PKjrHQqR7lG7rjS1/TUz9YgWvYe omqFBtwZk7gS9bbdPTx919PlnbYqirhQ0RqCPnk6rk5/Aun2T2axmaFRiGNRFBy/SOWOkb JzHdQkloKgbQkYcBrlX61oIdRzZlO0mrIiS1DC3k8KenedWbH/DhBq2IdZzjyL1yoGNULj EKVFfzezgR/EGpdSp1XsNLmPR3+0is/vScGLgYecOh7p0nJanli1jHcMEyX91luFR9ZVoF KKNjOpZNkU2nD5JlS9ynBRpkkXA0/YYPNFfICKUTlnW048sJV6r/IyWb2XwvOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726730545; 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=WCu215mdStxnr6hPNTlXygp7XfmbW37iCvA+k/NqPqo=; b=VvMkspMJPONWinD3sjqxNVyPu7XTUUUU9mczVmPRNnqEjSQZqqLN3KBnGtRMY/h/iRW07P fK5RAvq4LQhmZYq0Es7UAD7w9aRnp8Kx3ZHYRJHpn2/x01WM+KtlJ5IYJosbA8QibBUm7u RpPVP75hCV5gHp/vnrpH709pU3QPjIo01qN4mo206nyD8PcULd/2KNbO7HNNQfWQ+iYP8S y/Q5MwMhFZq8FQGQ/ZXCxV/aXMMSx8m5IGgaIWkGdmaySj+KiN6SjqOZXoOsdlEL10r6/f 7x8nqtWI62TMN3AaEDAu3RT3i2buUdj4JrsAZRG/LDsMNDf4OGQ8AgAPUYudVA== 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 4X8Rmd2PWMzwfk; Thu, 19 Sep 2024 07:22:25 +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 48J7MPSA020356; Thu, 19 Sep 2024 07:22:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48J7MPLM020352; Thu, 19 Sep 2024 07:22:25 GMT (envelope-from git) Date: Thu, 19 Sep 2024 07:22:25 GMT Message-Id: <202409190722.48J7MPLM020352@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Dimitry Andric Subject: git: 09b07372327b - 2024Q3 - devel/catch: fix build with clang 19 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@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/2024Q3 X-Git-Reftype: branch X-Git-Commit: 09b07372327bd18905fb4e9b5873146ba3ab5315 Auto-Submitted: auto-generated The branch 2024Q3 has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=09b07372327bd18905fb4e9b5873146ba3ab5315 commit 09b07372327bd18905fb4e9b5873146ba3ab5315 Author: Dimitry Andric AuthorDate: 2024-09-15 15:57:45 +0000 Commit: Dimitry Andric CommitDate: 2024-09-19 07:22:04 +0000 devel/catch: fix build with clang 19 Clang 19 has become more strict about C++ extensions, which results in: /wrkdirs/usr/ports/devel/catch/work/Catch2-2.13.10/projects/SelfTest/UsageTests/Class.tests.cpp:83:1: error: passing no argument for the '...' parameter of a variadic macro is a C++20 extension [-Werror,-Wc++20-extensions] 83 | TEMPLATE_TEST_CASE_METHOD(Template_Fixture, "A TEMPLATE_TEST_CASE_METHOD based test run that succeeds", "[class][template]", int, float, double) { | ^ /wrkdirs/usr/ports/devel/catch/work/Catch2-2.13.10/include/catch.hpp:257:53: note: expanded from macro 'TEMPLATE_TEST_CASE_METHOD' 257 | #define TEMPLATE_TEST_CASE_METHOD( className, ... ) INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD( className, __VA_ARGS__ ) | ^ /wrkdirs/usr/ports/devel/catch/work/Catch2-2.13.10/include/internal/catch_test_registry.h:302:9: note: expanded from macro 'INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD' 302 | INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_2( INTERNAL_CATCH_UNIQUE_NAME( C_A_T_C_H_T_E_M_P_L_A_T_E_T_E_S_T_C_L_A_S_S_ ), INTERNAL_CATCH_UNIQUE_NAME( C_A_T_C_H_T_E_M_P_L_A_T_E_T_E_S_T_ ) , ClassName, Name, Tags, typename T, __VA_ARGS__ ) | ^ /wrkdirs/usr/ports/devel/catch/work/Catch2-2.13.10/include/internal/catch_test_registry.h:279:13: note: expanded from macro 'INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_2' 279 | INTERNAL_CATCH_NTTP_GEN(INTERNAL_CATCH_REMOVE_PARENS(Signature))\ | ^ /wrkdirs/usr/ports/devel/catch/work/Catch2-2.13.10/include/internal/catch_preprocessor.hpp:217:465: note: expanded from macro 'INTERNAL_CATCH_NTTP_GEN' 217 | #define INTERNAL_CATCH_NTTP_GEN(...) INTERNAL_CATCH_VA_NARGS_IMPL(__VA_ARGS__, INTERNAL_CATCH_NTTP_1(__VA_ARGS__), INTERNAL_CATCH_NTTP_1(__VA_ARGS__), INTERNAL_CATCH_NTTP_1(__VA_ARGS__), INTERNAL_CATCH_NTTP_1(__VA_ARGS__), INTERNAL_CATCH_NTTP_1(__VA_ARGS__), INTERNAL_CATCH_NTTP_1( __VA_ARGS__), INTERNAL_CATCH_NTTP_1( __VA_ARGS__), INTERNAL_CATCH_NTTP_1( __VA_ARGS__), INTERNAL_CATCH_NTTP_1( __VA_ARGS__),INTERNAL_CATCH_NTTP_1( __VA_ARGS__), INTERNAL_CATCH_NTTP_0) | ^ /wrkdirs/usr/ports/devel/catch/work/Catch2-2.13.10/include/internal/catch_preprocessor.hpp:100:9: note: macro 'INTERNAL_CATCH_VA_NARGS_IMPL' defined here 100 | #define INTERNAL_CATCH_VA_NARGS_IMPL(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, N, ...) N | ^ This can be fixed by adding -Wno-error=c++20-extensions, which is supported by both clang and gcc. Unfortunately adding it to CXXFLAGS does not work, since that is prepended to the compiler flags in CMakeLists.txt, so -Werror comes after it. Therefore, patch the appropriate CMakeLists.txt file. PR: 281519 Approved by: sunpoet (maintainer) MFH: 2024Q3 (cherry picked from commit 4793dab964826c99c0c9e4143fe49c0a9c1d47d1) --- devel/catch/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devel/catch/Makefile b/devel/catch/Makefile index a532f4987f77..71bf1d7536c8 100644 --- a/devel/catch/Makefile +++ b/devel/catch/Makefile @@ -24,6 +24,10 @@ PORTSCOUT= limit:^2\. OPTIONS_DEFINE= DOCS +post-patch: + @${REINPLACE_CMD} -e 's/\(-Wno-error=pragmas\)/\1 -Wno-error=c++20-extensions/' \ + ${WRKSRC}/projects/CMakeLists.txt + do-test: ${BUILD_WRKSRC}/projects/SelfTest