commit: 5b9802332099430729e1691bd5efd92e64b06724
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 6 20:26:44 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 6 20:28:04 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b980233
x11-apps/igt-gpu-tools: fix build with musl
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
x11-apps/igt-gpu-tools/files/igt-gpu-tools-2.1-musl.patch | 10 ++++++++++
x11-apps/igt-gpu-tools/igt-gpu-tools-2.1.ebuild | 4 ++++
2 files changed, 14 insertions(+)
diff --git a/x11-apps/igt-gpu-tools/files/igt-gpu-tools-2.1-musl.patch
b/x11-apps/igt-gpu-tools/files/igt-gpu-tools-2.1-musl.patch
new file mode 100644
index 000000000000..709611038e40
--- /dev/null
+++ b/x11-apps/igt-gpu-tools/files/igt-gpu-tools-2.1-musl.patch
@@ -0,0 +1,10 @@
+--- a/lib/xe/xe_sriov_debugfs.c
++++ b/lib/xe/xe_sriov_debugfs.c
+@@ -5,6 +5,7 @@
+
+ #include <dirent.h>
+ #include <fcntl.h>
++#include <limits.h>
+
+ #include "drmtest.h"
+ #include "igt_debugfs.h"
diff --git a/x11-apps/igt-gpu-tools/igt-gpu-tools-2.1.ebuild
b/x11-apps/igt-gpu-tools/igt-gpu-tools-2.1.ebuild
index b7d93cbcb9f5..6e4238769f27 100644
--- a/x11-apps/igt-gpu-tools/igt-gpu-tools-2.1.ebuild
+++ b/x11-apps/igt-gpu-tools/igt-gpu-tools-2.1.ebuild
@@ -71,6 +71,10 @@ DEPEND="${RDEPEND}
"
BDEPEND="${PYTHON_DEPS}"
+PATCHES=(
+ "${FILESDIR}/${PN}-2.1-musl.patch"
+)
+
src_prepare() {
sed -e "s/find_program('rst2man-3'/find_program('rst2man.py',
'rst2man-3'/" -i man/meson.build
default_src_prepare