global: fix build with GCC 15

This commit is contained in:
whispers
2026-03-17 23:32:55 -04:00
parent 5492cae0dc
commit 9c66b0decc
+10
View File
@@ -1,5 +1,6 @@
{
fetchurl,
fetchpatch2,
lib,
stdenv,
libtool,
@@ -24,6 +25,15 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-9uf9C2iu0pLoW7aGYWuvZVHVyUJK3N3KEdgIujGMsyA=";
};
patches = [
# Fix for GCC 15 / C23, which interprets empty function parameter lists as
# having no parameters instead of an unspecified signature.
(fetchpatch2 {
url = "https://src.fedoraproject.org/rpms/global/raw/5a1ababa270e571f3133c03edcdb0e65f95e763f/f/libdb-dbpanic-function-pointers.patch";
hash = "sha256-o8u90h8ufF0Yr049fR9iMba+xq1tHXeiPdrHFSZMir0=";
})
];
nativeBuildInputs = [
libtool
makeWrapper