media-libs/vulkan-layers: Backport build fix
authorNick Sarnie <sarnex@gentoo.org>
Thu, 19 Mar 2020 04:49:18 +0000 (00:49 -0400)
committerNick Sarnie <sarnex@gentoo.org>
Thu, 19 Mar 2020 04:49:18 +0000 (00:49 -0400)
Closes: https://bugs.gentoo.org/712800
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
media-libs/vulkan-layers/files/vulkan-layers-1.2.133-Fix-build.patch [new file with mode: 0644]
media-libs/vulkan-layers/vulkan-layers-1.2.133-r1.ebuild

diff --git a/media-libs/vulkan-layers/files/vulkan-layers-1.2.133-Fix-build.patch b/media-libs/vulkan-layers/files/vulkan-layers-1.2.133-Fix-build.patch
new file mode 100644 (file)
index 0000000..c3f4253
--- /dev/null
@@ -0,0 +1,22 @@
+From 511b30622aa9e7859e5b606b25621a8d84888d40 Mon Sep 17 00:00:00 2001
+From: hedmo <hedmoo@yahoo.com>
+Date: Wed, 18 Mar 2020 20:23:13 +0100
+Subject: [PATCH] layers: Update range_vector.h
+
+Change-Id: I595fb8b5ccf102d652e86846cbf8489c79a1c8e0
+---
+ layers/range_vector.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/layers/range_vector.h b/layers/range_vector.h
+index 5d650586a..37de88ee7 100644
+--- a/layers/range_vector.h
++++ b/layers/range_vector.h
+@@ -28,6 +28,7 @@
+ #include <limits>
+ #include <map>
+ #include <utility>
++#include <cstdint>
+ #define RANGE_ASSERT(b) assert(b)
index aca531469b7e200c1173eac41a2bd0d9a6b3dd08..83a0302f2c12e2e1ebb14db4a60ea50e0988848e 100644 (file)
@@ -37,6 +37,8 @@ DEPEND="${PYTHON_DEPS}
        )
 "
 
+PATCHES=( "${FILESDIR}/${PN}-${PV}-Fix-build.patch" )
+
 multilib_src_configure() {
        local mycmakeargs=(
                -DCMAKE_SKIP_RPATH=ON