gnu: strutcpp: Fix build.

* gnu/packages/patches/strutcpp-fix-includes.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register patch.
* gnu/packages/cpp.scm (strutcpp): Apply patch.

Change-Id: I459f2774d98341417cbec6c271417b97e2477269
This commit is contained in:
Andreas Enge 2025-07-20 13:08:10 +02:00
parent c9f1d2315f
commit 70a9ee45cb
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3
3 changed files with 14 additions and 1 deletions

View file

@ -2336,6 +2336,7 @@ dist_patch_DATA = \
%D%/packages/patches/sssd-system-directories.patch \
%D%/packages/patches/steghide-fixes.patch \
%D%/packages/patches/suitesparse-mongoose-cmake.patch \
%D%/packages/patches/strutcpp-fix-includes.patch \
%D%/packages/patches/superlu-dist-awpm-grid.patch \
%D%/packages/patches/superlu-dist-scotchmetis.patch \
%D%/packages/patches/supertux-unbundle-squirrel.patch \

View file

@ -3970,7 +3970,8 @@ for C++17 string-view.")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "0m344qq3d57balzvc26fjx985nj2xwnfb1a7prkv3njj5lfcf127"))))
(base32 "0m344qq3d57balzvc26fjx985nj2xwnfb1a7prkv3njj5lfcf127"))
(patches (search-patches "strutcpp-fix-includes.patch"))))
(build-system cmake-build-system)
(arguments
(list

View file

@ -0,0 +1,11 @@
Reported upstream by email to Ingo Ruhnke <grumbel@gmail.com>.
diff -u -r a/test/numeric_less_test.cpp b/test/numeric_less_test.cpp
--- a/test/numeric_less_test.cpp 2025-07-20 13:02:31.088465392 +0200
+++ b/test/numeric_less_test.cpp 2025-07-20 13:03:49.283025547 +0200
@@ -1,4 +1,5 @@
#include <gtest/gtest.h>
+#include <algorithm>
#include "strut/numeric_less.hpp"