This is an automated email from the git hooks/post-receive script.
guix_mirror_bot pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new f93a63b042 gnu: virtest: Fix build with gcc-14.
f93a63b042 is described below
commit f93a63b04278515fe1f1f125896d062b19104d5a
Author: Andreas Enge <[email protected]>
AuthorDate: Tue Jul 22 23:05:41 2025 +0200
gnu: virtest: Fix build with gcc-14.
* gnu/packages/check.scm (virtest)[arguments]<#:phases>{'gcc14}:
New phase adding a missing include statement.
Change-Id: I72a5e5baad5b606c1779be221eee8211f4192527
---
gnu/packages/check.scm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index edba717640..6058a8e692 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -4125,8 +4125,12 @@ loaded.")
;; to find it in "virtest/vir/" instead of "vir/vir/".
(substitute* "CMakeLists.txt"
(("DESTINATION include/vir")
- "DESTINATION include/virtest"))
- #t)))))
+ "DESTINATION include/virtest"))))
+ (add-after 'unpack 'gcc14
+ (lambda _
+ (substitute* "vir/test.h"
+ (("#include <cmath>" all)
+ (string-append all "\n#include <cstdint>"))))))))
(synopsis "Header-only test framework")
(description
"@code{virtest} is a small header-only test framework for C++. It