x11-apps/igt-gpu-tools: fix build with musl

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2025-10-06 23:26:44 +03:00
parent a3423c8ae9
commit 5b98023320
2 changed files with 14 additions and 0 deletions

View File

@@ -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"

View File

@@ -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