app-misc/openrgb: patch for GCC 13

Bug: https://gitlab.com/CalcProgrammer1/OpenRGB/-/merge_requests/1743
Closes: https://bugs.gentoo.org/895428
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2023-03-29 00:53:44 +02:00
parent 08d2925f95
commit 1435fff38b
2 changed files with 39 additions and 1 deletions

View File

@@ -0,0 +1,36 @@
diff --git a/Controllers/ENESMBusController/ENESMBusInterface/ENESMBusInterface_SpectrixS40G.cpp b/Controllers/ENESMBusController/ENESMBusInterface/ENESMBusInterface_SpectrixS40G.cpp
index 2bdc37ad695dfdc870cb912f17fffd54bda2b89b..17080edb896f74c9393049041c25347d38a8a6f5 100644
--- a/Controllers/ENESMBusController/ENESMBusInterface/ENESMBusInterface_SpectrixS40G.cpp
+++ b/Controllers/ENESMBusController/ENESMBusInterface/ENESMBusInterface_SpectrixS40G.cpp
@@ -10,6 +10,7 @@
#include "ENESMBusInterface_SpectrixS40G.h"
#include <sys/ioctl.h>
#include <cstring>
+#include <cstdint>
/*---------------------------------------------------------------------*\
| Functions for submitting NVME admin passthrough command taken from |
diff --git a/Controllers/SteelSeriesController/SteelSeriesMouseController.h b/Controllers/SteelSeriesController/SteelSeriesMouseController.h
index 64df7a1cc0351ccb8f306984c8b554f8eb3dcc6e..a4e561a3504c1def8acdd1921dc3955df7f68271 100644
--- a/Controllers/SteelSeriesController/SteelSeriesMouseController.h
+++ b/Controllers/SteelSeriesController/SteelSeriesMouseController.h
@@ -10,6 +10,7 @@
#include <hidapi/hidapi.h>
#include <vector>
#include "SteelSeriesGeneric.h"
+#include <cstdint>
#pragma once
diff --git a/Controllers/SteelSeriesController/SteelSeriesRivalController.cpp b/Controllers/SteelSeriesController/SteelSeriesRivalController.cpp
index 8f0cd4cdb637ea5f474b1caf587dc3c98c5dba89..367e9175b07548845696616aef86920ca2536bb4 100644
--- a/Controllers/SteelSeriesController/SteelSeriesRivalController.cpp
+++ b/Controllers/SteelSeriesController/SteelSeriesRivalController.cpp
@@ -11,6 +11,7 @@
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
+#include <cstdint>
static void send_usb_msg(hid_device* dev, char * data_pkt, unsigned int size)
{

View File

@@ -18,7 +18,8 @@ fi
DESCRIPTION="Open source RGB lighting control"
HOMEPAGE="https://openrgb.org https://gitlab.com/CalcProgrammer1/OpenRGB/"
LICENSE="GPL-2"
# subslot is OPENRGB_PLUGIN_API_VERSION from https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/master/OpenRGBPluginInterface.h
# subslot is OPENRGB_PLUGIN_API_VERSION from
# https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/master/OpenRGBPluginInterface.h
SLOT="0/2"
RDEPEND="
@@ -41,6 +42,7 @@ BDEPEND="
"
PATCHES+=(
"${FILESDIR}"/${PN}-0.8-gcc-13.patch
"${FILESDIR}"/OpenRGB-0.7-r1-udev.patch
"${FILESDIR}"/OpenRGB-0.8-includes.patch
)