Commit ab31528a authored by ghpzin's avatar ghpzin
Browse files

botan2: fix build with gcc15

- add patch from fedora that adds `#include <cstdint.h>` to cli.h

Fixes build failure with gcc15:
```
In file included from src/cli/argon2.cpp:7:
src/cli/cli.h:125:71: error: 'uint8_t' does not name a type
  125 |       static std::string format_blob(const std::string& format, const uint8_t bits[], size_t len);
      |                                                                       ^~~~~~~
src/cli/cli.h:18:1: note: 'uint8_t' is defined in header '<cstdint>';
this is probably fixable by adding '#include <cstdint>'
   17 | #include "cli_exceptions.h"
  +++ |+#include <cstdint>
   18 |
```
parent bdc3cdda
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchpatch,
  fetchurl,
  pkgsStatic,
  python3,
@@ -172,5 +173,13 @@ in
  botan2 = common {
    version = "2.19.5";
    hash = "sha256-3+6g4KbybWckxK8B2pp7iEh62y2Bunxy/K9S21IsmtQ=";
    patches = [
      # Fix build with gcc15
      (fetchpatch {
        name = "botan2-add-include-cstdint-gcc15.patch";
        url = "https://src.fedoraproject.org/rpms/botan2/raw/c3fb7a3800df117e7ef8a7617ac8eacb31a4464a/f/f765f0b312f2998498f629d93369babfb2c975b4.patch";
        hash = "sha256-8Yhxd5TCgxUMtRiv3iq5sQaVjDF+b9slppm38/6l6lw=";
      })
    ];
  };
}