libodfgen: fix build with gcc15 (#446154)

This commit is contained in:
Aleksana
2025-09-28 10:39:45 +00:00
committed by GitHub
2 changed files with 18 additions and 0 deletions
@@ -0,0 +1,12 @@
diff --git a/src/OdfGenerator.cxx b/src/OdfGenerator.cxx
index adf176b0a4..79de4dd2b7 100644
--- a/src/OdfGenerator.cxx
+++ b/src/OdfGenerator.cxx
@@ -33,6 +33,7 @@
#include <math.h>
#include <cctype>
+#include <cstdint>
#include <limits>
#include <string>
#include <stack>
+6
View File
@@ -20,6 +20,12 @@ stdenv.mkDerivation rec {
sha256 = "sha256-Mj5JH5VsjKKrsSyZjjUGcJMKMjF7+WYrBhXdSzkiuDE=";
};
patches = [
# Fix build with gcc15, based on:
# https://sourceforge.net/p/libwpd/libodfgen/ci/4da0b148def5b40ee60d4cd79762c0f158d64cc7/
./libodfgen-add-include-cstdint-gcc15.patch
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
boost