diff --git a/graphics/igt-gpu-tools/Makefile b/graphics/igt-gpu-tools/Makefile index 48024b3af3bb..b81cb1f3b650 100644 --- a/graphics/igt-gpu-tools/Makefile +++ b/graphics/igt-gpu-tools/Makefile @@ -1,78 +1,78 @@ PORTNAME= igt-gpu-tools DISTVERSION= 1.26.1266 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics MAINTAINER= jfree@FreeBSD.org COMMENT= IGT gpu tools and tests WWW= https://drm.pages.freedesktop.org/igt-gpu-tools/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= rst2man:textproc/py-docutils@${PY_FLAVOR} LIB_DEPENDS= libdrm.so:graphics/libdrm \ libdw.so:devel/elfutils \ libpciaccess.so:devel/libpciaccess \ libudev.so:devel/libudev-devd USES= bison gnome meson pkgconfig python shebangfix xorg USE_GITLAB= yes GL_SITE= https://gitlab.freedesktop.org GL_ACCOUNT= drm GL_TAGNAME= 9338ab3ec085292817ab1e74d1f2fb90b6a98332 USE_GNOME= cairo glib20 USE_LDCONFIG= yes USE_XORG= pixman SHEBANG_FILES= scripts/code_cov_gather_on_test scripts/code_cov_parse_info PLIST_SUB+= DOCS="@comment " MESON_ARGS= -Ddocs=disabled -Dvalgrind=disabled #OPTIONS_DEFINE= CHAMELIUM DOCS RUNNER TEST OPTIONS_DEFINE= CHAMELIUM RUNNER TEST OPTIONS_DEFAULT= RUNNER TEST OPTIONS_SUB= yes CHAMELIUM_DESC= Build chamelium display tests RUNNER_DESC= Build test runner CHAMELIUM_IMPLIES= TEST CHAMELIUM_LIB_DEPENDS= libasound.so:audio/alsa-lib \ libcurl.so:ftp/curl \ libgsl.so:math/gsl \ libxmlrpc.so:net/xmlrpc-c CHAMELIUM_MESON_ENABLED= chamelium #DOCS_IMPLIES= TEST #DOCS_BUILD_DEPENDS= gtkdoc-mkhtml:textproc/gtk-doc #DOCS_MESON_ENABLED= docs RUNNER_IMPLIES= TEST RUNNER_LIB_DEPENDS= libjson-c.so:devel/json-c \ liboping.so:net/liboping RUNNER_MESON_ENABLED= runner TEST_LIB_DEPENDS= libunwind.so:devel/libunwind TEST_MESON_ENABLED= tests .include .if ${ARCH} == "amd64" PLIST_SUB+= AMD64="" .else PLIST_SUB+= AMD64="@comment " .endif .include .if ${OPSYS} == FreeBSD CFLAGS+= -Wno-error=int-conversion .endif .include diff --git a/graphics/igt-gpu-tools/files/patch-runner_executor.c b/graphics/igt-gpu-tools/files/patch-runner_executor.c index f4e333558853..b51121ac2648 100644 --- a/graphics/igt-gpu-tools/files/patch-runner_executor.c +++ b/graphics/igt-gpu-tools/files/patch-runner_executor.c @@ -1,39 +1,39 @@ --- runner/executor.c.orig 2022-08-31 20:00:01 UTC +++ runner/executor.c @@ -2,7 +2,9 @@ #include #include #include +#ifdef __linux__ #include +#endif #if HAVE_OPING #include #endif @@ -14,7 +16,9 @@ #include #include #include +#ifdef __linux__ #include +#endif #include #include #include @@ -32,6 +36,16 @@ #define KMSG_HEADER "[IGT] " #define KMSG_WARN 4 + +#ifdef __FreeBSD__ +#include +struct signalfd_siginfo { + uint32_t ssi_signo; + uint32_t ssi_pid; +}; -+#define WDIOC_KEEPALIVE WDIOCPATPAT ++#define WDIOC_KEEPALIVE WDIOC_PATPAT +#define signalfd(fd, mask, flags) -ENOSYS +#endif static struct { int *fds;