[packages/python3-pytest_codspeed] - workaround to fix build with gcc 15

qboosh qboosh at pld-linux.org
Mon Nov 24 12:45:51 CET 2025


commit 38b7201a5878ff565bd7111455d89f48801cff97
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Nov 24 12:45:54 2025 +0100

    - workaround to fix build with gcc 15

 python3-pytest_codspeed.spec | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/python3-pytest_codspeed.spec b/python3-pytest_codspeed.spec
index 99b38f9..09b1eaf 100644
--- a/python3-pytest_codspeed.spec
+++ b/python3-pytest_codspeed.spec
@@ -45,6 +45,11 @@ Wtyczka pytesta do tworzenia benchmarków CodSpeed.
 
 %build
 export PYTEST_CODSPEED_FORCE_EXTENSION_BUILD=1
+%if "%{_ver_ge %{cc_version} 15.0}" == "1"
+# lower standard to C17; in C23 mode code enables using "[[noreturn]]", which
+# gcc doesn't allow to mix with other attributes in order used in this package
+CFLAGS="%{rpmcflags} -std=c17"
+%endif
 
 %py3_build_pyproject
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest_codspeed.git/commitdiff/38b7201a5878ff565bd7111455d89f48801cff97




More information about the pld-cvs-commit mailing list