diff options
author | Bernd Waibel <waebbl-gentoo@posteo.net> | 2022-04-22 08:32:16 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-04-23 02:21:32 +0100 |
commit | a523b10395f37bb6de358975d1a4da888f4ee9c3 (patch) | |
tree | e9f2936e010ff202cdeac5c9b958132d8d178f6d /media-gfx | |
parent | net-im/signal-desktop-bin: remove old version (diff) | |
download | gentoo-a523b10395f37bb6de358975d1a4da888f4ee9c3.tar.gz gentoo-a523b10395f37bb6de358975d1a4da888f4ee9c3.tar.bz2 gentoo-a523b10395f37bb6de358975d1a4da888f4ee9c3.zip |
media-gfx/yafaray: fix build with clang
Closes: https://bugs.gentoo.org/830949
Bug: https://github.com/YafaRay/libYafaRay/issues/9
Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/25150
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/yafaray/files/yafaray-3.5.1-add-missing-limits-header.patch | 21 | ||||
-rw-r--r-- | media-gfx/yafaray/yafaray-3.5.1-r1.ebuild | 6 |
2 files changed, 26 insertions, 1 deletions
diff --git a/media-gfx/yafaray/files/yafaray-3.5.1-add-missing-limits-header.patch b/media-gfx/yafaray/files/yafaray-3.5.1-add-missing-limits-header.patch new file mode 100644 index 000000000000..19ef77cbf829 --- /dev/null +++ b/media-gfx/yafaray/files/yafaray-3.5.1-add-missing-limits-header.patch @@ -0,0 +1,21 @@ +From f947af314bdfb8c5d5cb79a2a7877d9ad4d2f087 Mon Sep 17 00:00:00 2001 +From: Bernd Waibel <waebbl-gentoo@posteo.net> +Date: Fri, 22 Apr 2022 08:23:48 +0200 +Subject: [PATCH] add missing limits header + +Bug: https://github.com/YafaRay/libYafaRay/issues/9 +Bug: https://bugs.gentoo.org/830949 +Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> +--- a/include/core_api/surface.h ++++ b/include/core_api/surface.h +@@ -24,6 +24,7 @@ + #define Y_SURFACE_H + + #include <yafray_constants.h> ++#include <limits> + #include "vector3d.h" + #include "color.h" + +-- +2.35.1 + diff --git a/media-gfx/yafaray/yafaray-3.5.1-r1.ebuild b/media-gfx/yafaray/yafaray-3.5.1-r1.ebuild index 2e4fb63fdf46..336f9d311dd6 100644 --- a/media-gfx/yafaray/yafaray-3.5.1-r1.ebuild +++ b/media-gfx/yafaray/yafaray-3.5.1-r1.ebuild @@ -45,7 +45,11 @@ BDEPEND=" ) " -PATCHES=( "${FILESDIR}"/${P}-0001-respect-distribution-CFLAGS.patch ) +PATCHES=( + "${FILESDIR}"/${P}-0001-respect-distribution-CFLAGS.patch + "${FILESDIR}"/${P}-add-missing-limits-header.patch +) + DOCS=( AUTHORS.md CHANGELOG.md CODING.md INSTALL.md README.md ) pkg_setup() { |