mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
tenacity: fix compilation for gcc 15
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
26
pkgs/by-name/te/tenacity/cstdlib.patch
Normal file
26
pkgs/by-name/te/tenacity/cstdlib.patch
Normal 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
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user