global: fix build with GCC 15 (#500914)

This commit is contained in:
Aleksana
2026-03-18 14:03:37 +00:00
committed by GitHub
+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