[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
116/290: gnu: openexr-2: Fix build with gcc-14.
From: |
guix-commits |
Subject: |
116/290: gnu: openexr-2: Fix build with gcc-14. |
Date: |
Mon, 31 Mar 2025 05:06:54 -0400 (EDT) |
andreas pushed a commit to branch core-packages-team
in repository guix.
commit 6c9c96b481aedae258b243ff2345133eb2ab3603
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Wed Jan 1 15:12:25 2025 +0100
gnu: openexr-2: Fix build with gcc-14.
* gnu/packages/patches/openexr-2-gcc-14.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/graphics.scm (openexr-2)[source]: Use it.
Change-Id: I050731f989581a8a6255ad46a4ede5493e2bed87
---
gnu/local.mk | 1 +
gnu/packages/graphics.scm | 2 ++
gnu/packages/patches/openexr-2-gcc-14.patch | 33 +++++++++++++++++++++++++++++
3 files changed, 36 insertions(+)
diff --git a/gnu/local.mk b/gnu/local.mk
index fd367ccf28..ddbf8e09c7 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1940,6 +1940,7 @@ dist_patch_DATA =
\
%D%/packages/patches/openboardview-use-system-imgui.patch \
%D%/packages/patches/openboardview-use-system-mpc.patch \
%D%/packages/patches/openbox-python3.patch \
+ %D%/packages/patches/openexr-2-gcc-14.patch \
%D%/packages/patches/openjdk-currency-time-bomb.patch \
%D%/packages/patches/openjdk-currency-time-bomb2.patch \
%D%/packages/patches/openjdk-9-pointer-comparison.patch \
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index f3c147d4ed..9f1bc4e9f1 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -1452,6 +1452,8 @@ with strong support for multi-part, multi-channel use
cases.")
(version (package-version ilmbase))
(source (origin
(inherit (package-source ilmbase))
+ (patches (append (origin-patches (package-source ilmbase))
+ (search-patches "openexr-2-gcc-14.patch")))
(file-name (git-file-name "openexr" version))))
(build-system cmake-build-system)
(arguments
diff --git a/gnu/packages/patches/openexr-2-gcc-14.patch
b/gnu/packages/patches/openexr-2-gcc-14.patch
new file mode 100644
index 0000000000..4ed45ce459
--- /dev/null
+++ b/gnu/packages/patches/openexr-2-gcc-14.patch
@@ -0,0 +1,33 @@
+Upstream-status: Not presented upstream.
+
+--- openexr-2.5.7-checkout/OpenEXR/IlmImf/ImfHuf.cpp 1970-01-01
01:00:01.000000000 +0100
++++ openexr-2.5.7-checkout/OpenEXR/IlmImf/ImfHuf.cpp 2025-01-01
14:56:18.414434903 +0100
+@@ -53,6 +53,7 @@
+ #include <cstring>
+ #include <cassert>
+ #include <algorithm>
++#include <cstdint>
+
+
+ using namespace std;
+--- openexr-2.5.7-checkout/OpenEXR/IlmImf/ImfDwaCompressor.cpp 1970-01-01
01:00:01.000000000 +0100
++++ openexr-2.5.7-checkout/OpenEXR/IlmImf/ImfDwaCompressor.cpp 2025-01-01
15:03:40.654686929 +0100
+@@ -159,6 +159,7 @@
+ #include <limits>
+
+ #include <cstddef>
++#include <cstdint>
+
+
+ // Windows specific addition to prevent the indirect import of the redefined
min/max macros
+--- openexr-2.5.7-checkout/OpenEXR/IlmImf/ImfMisc.cpp 1970-01-01
01:00:01.000000000 +0100
++++ openexr-2.5.7-checkout/OpenEXR/IlmImf/ImfMisc.cpp 2025-01-01
15:09:40.591441901 +0100
+@@ -54,6 +54,8 @@
+ #include <ImfTileDescription.h>
+ #include "ImfNamespace.h"
+
++#include <cstdint>
++
+ OPENEXR_IMF_INTERNAL_NAMESPACE_SOURCE_ENTER
+
+ using IMATH_NAMESPACE::Box2i;
- 187/290: gnu: gtksourceview-3.24.11: Fix build with gcc-14., (continued)
- 187/290: gnu: gtksourceview-3.24.11: Fix build with gcc-14., guix-commits, 2025/03/31
- 191/290: gnu: python-cython-next: Build with gcc-13., guix-commits, 2025/03/31
- 192/290: gnu: cogl: Fix build with gcc-14., guix-commits, 2025/03/31
- 196/290: gnu: gucharmap: Fix build with gcc-14., guix-commits, 2025/03/31
- 225/290: gnu: glibc: Update to 2.40., guix-commits, 2025/03/31
- 222/290: gexp: Improve support of Unicode characters., guix-commits, 2025/03/31
- 246/290: gnu: tcsh: Update to 6.24.15., guix-commits, 2025/03/31
- 242/290: gnu: libxcrypt: Update to 4.4.38., guix-commits, 2025/03/31
- 72/290: gnu: gtk+-2: Fix build with gcc-14., guix-commits, 2025/03/31
- 108/290: gnu: libimobiledevice: Fix build with gcc-14., guix-commits, 2025/03/31
- 116/290: gnu: openexr-2: Fix build with gcc-14.,
guix-commits <=
- 107/290: gnu: cryptsetup-static: Update to latest json-c (0.18)., guix-commits, 2025/03/31
- 124/290: gnu: icu4c: Update to 76.1; fixes build with gcc-14., guix-commits, 2025/03/31
- 195/290: gnu: telepathy-logger: Fix build with gcc-14., guix-commits, 2025/03/31
- 189/290: gnu: ffmpeg-3.4.13: Fix build with gcc-14., guix-commits, 2025/03/31
- 226/290: gnu: libseccomp: Update to 2.6.0., guix-commits, 2025/03/31
- 232/290: gnu: zstd: Update to 1.5.6., guix-commits, 2025/03/31
- 253/290: gnu: libtasn1: Update to 4.20.0., guix-commits, 2025/03/31
- 252/290: gnu: libpsl: Update to 0.21.5., guix-commits, 2025/03/31
- 256/290: gnu: sed: Update to 4.9., guix-commits, 2025/03/31
- 259/290: gnu: gnumach-headers: Fix build., guix-commits, 2025/03/31