commit:     81132cfdb4283d8978f37e6c5057f979bfeb490b
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Thu Feb 16 20:40:59 2023 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu Feb 16 21:36:02 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81132cfd

app-misc/openrgb: fix build on musl

Closes: https://bugs.gentoo.org/894558
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/29622
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-misc/openrgb/files/OpenRGB-0.8-includes.patch | 24 +++++++++++++++++++++++
 app-misc/openrgb/openrgb-0.8-r1.ebuild            |  1 +
 2 files changed, 25 insertions(+)

diff --git a/app-misc/openrgb/files/OpenRGB-0.8-includes.patch 
b/app-misc/openrgb/files/OpenRGB-0.8-includes.patch
new file mode 100644
index 000000000000..8ed341b06029
--- /dev/null
+++ b/app-misc/openrgb/files/OpenRGB-0.8-includes.patch
@@ -0,0 +1,24 @@
+From 8c893fba4fcec17e6221f2d754def4aa71b020b8 Mon Sep 17 00:00:00 2001
+From: Sirn Thanabulpong <s...@ogsite.net>
+Date: Wed, 28 Dec 2022 00:49:47 +0900
+Subject: [PATCH] Fix build on musl in Nanoleaf settings
+
+---
+ qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafScanningThread.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafScanningThread.cpp 
b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafScanningThread.cpp
+index 1e3c926b3..55ed5fcaa 100644
+--- a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafScanningThread.cpp
++++ b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafScanningThread.cpp
+@@ -8,6 +8,7 @@
+ #else
+ #include <netdb.h>
+ #include <ifaddrs.h>
++#include <sys/select.h>
+ #endif
+ 
+ #include "mdns.h"
+-- 
+GitLab
+

diff --git a/app-misc/openrgb/openrgb-0.8-r1.ebuild 
b/app-misc/openrgb/openrgb-0.8-r1.ebuild
index 10549d214ac7..672546f43e85 100644
--- a/app-misc/openrgb/openrgb-0.8-r1.ebuild
+++ b/app-misc/openrgb/openrgb-0.8-r1.ebuild
@@ -42,6 +42,7 @@ BDEPEND="
 
 PATCHES+=(
        "${FILESDIR}"/OpenRGB-0.7-r1-udev.patch
+       "${FILESDIR}"/OpenRGB-0.8-includes.patch
 )
 
 src_prepare() {

Reply via email to