gnu: capnproto: Fix tests.

* gnu/packages/patches/capnproto-fix-test.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/serialization.scm (capnproto)[source]: Use it.

Change-Id: I216563e5263f6d4e61e382b8d1eb5687c82b0cc1
This commit is contained in:
Zheng Junjie 2025-07-12 17:54:10 +08:00 committed by Andreas Enge
parent 2a6ba2e69b
commit 3dc7044969
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3
3 changed files with 14 additions and 1 deletions

View file

@ -1089,6 +1089,7 @@ dist_patch_DATA = \
%D%/packages/patches/calls-disable-application-test.patch \
%D%/packages/patches/calls-disable-sip-test.patch \
%D%/packages/patches/camlboot-dynamically-allocate-stack-signal.patch \
%D%/packages/patches/capnproto-fix-test.patch \
%D%/packages/patches/capstone-fix-python-constants.patch \
%D%/packages/patches/catdoc-CVE-2017-11110.patch \
%D%/packages/patches/ccextractor-add-missing-header.patch \

View file

@ -0,0 +1,11 @@
diff -u a/src/kj/string-test.c++ b/src/kj/string-test.c++
--- a/src/kj/string-test.c++
+++ b/src/kj/string-test.c++
@@ -22,6 +22,7 @@
#include "string.h"
#include <kj/compat/gtest.h>
#include <string>
+#include <cstdint>
#include "vector.h"
namespace kj {

View file

@ -742,7 +742,8 @@ This package also provides @samp{kdlpp}, a C++20 wrapper around @samp{ckdl}.")
version ".tar.gz"))
(sha256
(base32
"03f1862ljdshg7d0rg3j7jzgm3ip55kzd2y91q7p0racax3hxx6i"))))
"03f1862ljdshg7d0rg3j7jzgm3ip55kzd2y91q7p0racax3hxx6i"))
(patches (search-patches "capnproto-fix-test.patch"))))
(build-system gnu-build-system)
(arguments
`(#:phases