diff options
| author | Andreas Enge <andreas@enge.fr> | 2025-07-20 13:08:10 +0200 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-07-20 13:20:21 +0200 |
| commit | 70a9ee45cb13642f6135860c8cf074fe69fdd920 (patch) | |
| tree | 695cedfd33ce8aa100d81d72a0ee0e6554dda133 /gnu/packages | |
| parent | c9f1d2315f99d4355c35d920b33bfbdffe9a4f56 (diff) | |
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
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/cpp.scm | 3 | ||||
| -rw-r--r-- | gnu/packages/patches/strutcpp-fix-includes.patch | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 559a275cee6..74f2407e198 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -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 diff --git a/gnu/packages/patches/strutcpp-fix-includes.patch b/gnu/packages/patches/strutcpp-fix-includes.patch new file mode 100644 index 00000000000..7f21cc6e4e5 --- /dev/null +++ b/gnu/packages/patches/strutcpp-fix-includes.patch @@ -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" + |
