tenacity: fix compilation for gcc 15

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards
2025-12-31 21:34:15 -05:00
parent 25408ef3c8
commit 4e3d30137b
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
From f523f6a4272910417da6d8f02597a560a9c594e4 Mon Sep 17 00:00:00 2001
From: Ethan Carter Edwards <ethan@ethancedwards.com>
Date: Wed, 31 Dec 2025 21:17:39 -0500
Subject: [PATCH] fix compilation for gcc 15
Link: https://github.com/NixOS/nixpkgs/issues/475574
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
---
libraries/lib-utility/MemoryX.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/libraries/lib-utility/MemoryX.h b/libraries/lib-utility/MemoryX.h
index 2c96af17b..58bf67127 100644
--- a/libraries/lib-utility/MemoryX.h
+++ b/libraries/lib-utility/MemoryX.h
@@ -5,6 +5,7 @@
#include <iterator>
#include <memory>
#include <new> // align_val_t and hardware_destructive_interference_size
#include <cstdlib> // Needed for free.
+#include <cstdint>
#ifndef safenew
#define safenew new
--
2.47.3

View File

@@ -61,6 +61,12 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-2gndOwgEJK2zDSbjcZigbhEpGv301/ygrf+EQhKp8PI=";
};
# https://codeberg.org/tenacityteam/tenacity/pulls/696
# can be removed at next version bump
patches = [
./cstdlib.patch
];
postPatch = ''
# GIT_DESCRIBE is used for the version string and can't be passed in
# as an option, so we substitute it instead.