Unverified Commit f0fd79db authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

global: fix build with GCC 15 (#500914)

parents 65afa810 9c66b0de
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
{
  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