* [Buildroot] [PATCH 1/2] package/igt-gpu-tools: fix musl build
@ 2026-07-10 21:54 Bernd Kuhls
2026-07-10 21:54 ` [Buildroot] [PATCH 2/2] package/igt-gpu-tools: bump version to 2.5 Bernd Kuhls
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bernd Kuhls @ 2026-07-10 21:54 UTC (permalink / raw)
To: buildroot
Buildroot commit f9a91bf60e35617157b950eea05fc6f6144d650c bumped the
package to version 2.3 that includes upstream commit
https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/commit/6a8b33e353627187f1b530f33c4bd3f5282883f0
which makes use of PATH_MAX causing build errors on musl.
Fixes:
https://autobuild.buildroot.net/results/42a/42a6e9d9652c1eb97c8c49aed75d210bf2afc066/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/403fedd79af8156b7db36f69817f49c1e716844b
...frequency-include-limits.h-to-fix-mu.patch | 36 +++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 package/igt-gpu-tools/0001-tools-intel_gpu_frequency-include-limits.h-to-fix-mu.patch
diff --git a/package/igt-gpu-tools/0001-tools-intel_gpu_frequency-include-limits.h-to-fix-mu.patch b/package/igt-gpu-tools/0001-tools-intel_gpu_frequency-include-limits.h-to-fix-mu.patch
new file mode 100644
index 0000000000..1d818dcc22
--- /dev/null
+++ b/package/igt-gpu-tools/0001-tools-intel_gpu_frequency-include-limits.h-to-fix-mu.patch
@@ -0,0 +1,36 @@
+From 48a177958a9ecff8f7cee379affb2f35984b58a9 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+Date: Fri, 10 Jul 2026 20:34:01 +0200
+Subject: [PATCH] tools/intel_gpu_frequency: include limits.h to fix musl build
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fixes build error seen with musl-based toolchains:
+
+../tools/intel_gpu_frequency.c:90:19: error:
+ ‘PATH_MAX’ undeclared (first use in this function)
+ 90 | char path[PATH_MAX];
+
+Upstream: https://patchwork.freedesktop.org/patch/739159/?series=170207&rev=1
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ tools/intel_gpu_frequency.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tools/intel_gpu_frequency.c b/tools/intel_gpu_frequency.c
+index 6316c2e58..7df7f331d 100644
+--- a/tools/intel_gpu_frequency.c
++++ b/tools/intel_gpu_frequency.c
+@@ -25,6 +25,7 @@
+ #include <dirent.h>
+ #include <fcntl.h>
+ #include <getopt.h>
++#include <limits.h>
+ #include <stdio.h>
+ #include <time.h>
+ #include <unistd.h>
+--
+2.47.3
+
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread* [Buildroot] [PATCH 2/2] package/igt-gpu-tools: bump version to 2.5 2026-07-10 21:54 [Buildroot] [PATCH 1/2] package/igt-gpu-tools: fix musl build Bernd Kuhls @ 2026-07-10 21:54 ` Bernd Kuhls 2026-07-14 8:42 ` [Buildroot] [PATCH 1/2] package/igt-gpu-tools: fix musl build Julien Olivain via buildroot 2026-07-17 15:47 ` Thomas Perale via buildroot 2 siblings, 0 replies; 4+ messages in thread From: Bernd Kuhls @ 2026-07-10 21:54 UTC (permalink / raw) To: buildroot https://lists.x.org/archives/xorg-announce/2026-June/003710.html Added patch 0002 to fix musl build error introduced by this bump due to upstream commit https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/commit/62da56c849c37a3a532fb1979e47e32d0dd88e65 Signed-off-by: Bernd Kuhls <bernd@kuhls.net> --- Gitlab pipelines passed: https://gitlab.com/bkuhls/buildroot/-/commits/582899a5f8f5c3c14edcd18301585bc4152bcb3a ...advise-Fix-the-type-for-sighandler_t.patch | 46 +++++++++++++++++++ package/igt-gpu-tools/igt-gpu-tools.hash | 6 +-- package/igt-gpu-tools/igt-gpu-tools.mk | 2 +- 3 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 package/igt-gpu-tools/0002-tests-intel-xe_madvise-Fix-the-type-for-sighandler_t.patch diff --git a/package/igt-gpu-tools/0002-tests-intel-xe_madvise-Fix-the-type-for-sighandler_t.patch b/package/igt-gpu-tools/0002-tests-intel-xe_madvise-Fix-the-type-for-sighandler_t.patch new file mode 100644 index 0000000000..7ee34b1fc8 --- /dev/null +++ b/package/igt-gpu-tools/0002-tests-intel-xe_madvise-Fix-the-type-for-sighandler_t.patch @@ -0,0 +1,46 @@ +From e807c4cd97c3e9bbbd89026cf9ed0b16b02ef397 Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls <bernd@kuhls.net> +Date: Fri, 10 Jul 2026 20:35:22 +0200 +Subject: [PATCH] tests/intel/xe_madvise: Fix the type for sighandler_t +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +__sighandler_t is private interface in glibc so its +better to not use it, as an aside fixes build with musl + +Patch was inspired by +https://lists.gnu.org/r/bug-time/2025-03/msg00000.html + +Fixes build error seen with musl-based toolchains: + +../tests/intel/xe_madvise.c: In function ‘test_dontneed_after_mmap’: +../tests/intel/xe_madvise.c:400:48: error: ‘__sighandler_t’ undeclared + (first use in this function); did you mean ‘sighandler_t’? + 400 | old_sigsegv = signal(SIGSEGV, (__sighandler_t)sigtrap); + +Upstream: https://patchwork.freedesktop.org/patch/739160/?series=170207&rev=1 + +Signed-off-by: Bernd Kuhls <bernd@kuhls.net> +--- + tests/intel/xe_madvise.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/intel/xe_madvise.c b/tests/intel/xe_madvise.c +index 3d36be941..a33a08630 100644 +--- a/tests/intel/xe_madvise.c ++++ b/tests/intel/xe_madvise.c +@@ -397,8 +397,8 @@ static void test_dontneed_after_mmap(int fd) + char *ptr = (char *)map; + int sig; + +- old_sigsegv = signal(SIGSEGV, (__sighandler_t)sigtrap); +- old_sigbus = signal(SIGBUS, (__sighandler_t)sigtrap); ++ old_sigsegv = signal(SIGSEGV, (sighandler_t)sigtrap); ++ old_sigbus = signal(SIGBUS, (sighandler_t)sigtrap); + + sig = sigsetjmp(jmp, 1); /* savemask=1: save/restore signal mask */ + switch (sig) { +-- +2.47.3 + diff --git a/package/igt-gpu-tools/igt-gpu-tools.hash b/package/igt-gpu-tools/igt-gpu-tools.hash index b66d856da9..f0c6ceff2f 100644 --- a/package/igt-gpu-tools/igt-gpu-tools.hash +++ b/package/igt-gpu-tools/igt-gpu-tools.hash @@ -1,6 +1,6 @@ -# From https://lists.x.org/archives/xorg-announce/2026-March/003676.html -sha256 a44b7d089a27555944d4cd5da372c9339501539e3cd2735bbdb30e0d802f1cbe igt-gpu-tools-2.4.tar.xz -sha512 3f8e8202e3a613faf077ecb3fcc6a13840a8df94f94cb7d3a7933e51888757ea22e4154f2e0f88b896583e23bc8fd472bd286a0b50630b8b5eeb13878a1a2d9f igt-gpu-tools-2.4.tar.xz +# From https://lists.x.org/archives/xorg-announce/2026-June/003710.html +sha256 bf5ee5cc1e2b92c456d626b7986be9e2d18b4765cd06c28c1ab449200c1ce5e2 igt-gpu-tools-2.5.tar.xz +sha512 0da8f56a76bb79186da95545be63b8fa82c93edfe9b5fe6ffe43017deb792601545bba292c516b525e1e29087e9b048751df4875d8a7a64e265bac943bf6be81 igt-gpu-tools-2.5.tar.xz # Hash for license file: sha256 1b7e266857b05808660f42369a4a797459d7b7bec7245e378aa28a8db2f213da COPYING diff --git a/package/igt-gpu-tools/igt-gpu-tools.mk b/package/igt-gpu-tools/igt-gpu-tools.mk index 5dcbdcaab5..cbbbc74a4c 100644 --- a/package/igt-gpu-tools/igt-gpu-tools.mk +++ b/package/igt-gpu-tools/igt-gpu-tools.mk @@ -4,7 +4,7 @@ # ################################################################################ -IGT_GPU_TOOLS_VERSION = 2.4 +IGT_GPU_TOOLS_VERSION = 2.5 IGT_GPU_TOOLS_SOURCE = igt-gpu-tools-$(IGT_GPU_TOOLS_VERSION).tar.xz IGT_GPU_TOOLS_SITE = https://www.x.org/releases/individual/app IGT_GPU_TOOLS_LICENSE = MIT -- 2.47.3 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/igt-gpu-tools: fix musl build 2026-07-10 21:54 [Buildroot] [PATCH 1/2] package/igt-gpu-tools: fix musl build Bernd Kuhls 2026-07-10 21:54 ` [Buildroot] [PATCH 2/2] package/igt-gpu-tools: bump version to 2.5 Bernd Kuhls @ 2026-07-14 8:42 ` Julien Olivain via buildroot 2026-07-17 15:47 ` Thomas Perale via buildroot 2 siblings, 0 replies; 4+ messages in thread From: Julien Olivain via buildroot @ 2026-07-14 8:42 UTC (permalink / raw) To: Bernd Kuhls; +Cc: buildroot On 10/07/2026 23:54, Bernd Kuhls wrote: > Buildroot commit f9a91bf60e35617157b950eea05fc6f6144d650c bumped the > package to version 2.3 that includes upstream commit > https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/commit/6a8b33e353627187f1b530f33c4bd3f5282883f0 > which makes use of PATH_MAX causing build errors on musl. > > Fixes: > https://autobuild.buildroot.net/results/42a/42a6e9d9652c1eb97c8c49aed75d210bf2afc066/ > > Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Series applied to master, thanks. _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/igt-gpu-tools: fix musl build 2026-07-10 21:54 [Buildroot] [PATCH 1/2] package/igt-gpu-tools: fix musl build Bernd Kuhls 2026-07-10 21:54 ` [Buildroot] [PATCH 2/2] package/igt-gpu-tools: bump version to 2.5 Bernd Kuhls 2026-07-14 8:42 ` [Buildroot] [PATCH 1/2] package/igt-gpu-tools: fix musl build Julien Olivain via buildroot @ 2026-07-17 15:47 ` Thomas Perale via buildroot 2 siblings, 0 replies; 4+ messages in thread From: Thomas Perale via buildroot @ 2026-07-17 15:47 UTC (permalink / raw) To: Bernd Kuhls; +Cc: Thomas Perale, buildroot In reply of: > Buildroot commit f9a91bf60e35617157b950eea05fc6f6144d650c bumped the > package to version 2.3 that includes upstream commit > https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/commit/6a8b33e353627187f1b530f33c4bd3f5282883f0 > which makes use of PATH_MAX causing build errors on musl. > > Fixes: > https://autobuild.buildroot.net/results/42a/42a6e9d9652c1eb97c8c49aed75d210bf2afc066/ > > Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Applied to 2026.05.x. Thanks > --- > Gitlab pipelines passed: > https://gitlab.com/bkuhls/buildroot/-/commits/403fedd79af8156b7db36f69817f49c1e716844b > > ...frequency-include-limits.h-to-fix-mu.patch | 36 +++++++++++++++++++ > 1 file changed, 36 insertions(+) > create mode 100644 package/igt-gpu-tools/0001-tools-intel_gpu_frequency-include-limits.h-to-fix-mu.patch > > diff --git a/package/igt-gpu-tools/0001-tools-intel_gpu_frequency-include-limits.h-to-fix-mu.patch b/package/igt-gpu-tools/0001-tools-intel_gpu_frequency-include-limits.h-to-fix-mu.patch > new file mode 100644 > index 0000000000..1d818dcc22 > --- /dev/null > +++ b/package/igt-gpu-tools/0001-tools-intel_gpu_frequency-include-limits.h-to-fix-mu.patch > @@ -0,0 +1,36 @@ > +From 48a177958a9ecff8f7cee379affb2f35984b58a9 Mon Sep 17 00:00:00 2001 > +From: Bernd Kuhls <bernd@kuhls.net> > +Date: Fri, 10 Jul 2026 20:34:01 +0200 > +Subject: [PATCH] tools/intel_gpu_frequency: include limits.h to fix musl build > +MIME-Version: 1.0 > +Content-Type: text/plain; charset=UTF-8 > +Content-Transfer-Encoding: 8bit > + > +Fixes build error seen with musl-based toolchains: > + > +../tools/intel_gpu_frequency.c:90:19: error: > + ‘PATH_MAX’ undeclared (first use in this function) > + 90 | char path[PATH_MAX]; > + > +Upstream: https://patchwork.freedesktop.org/patch/739159/?series=170207&rev=1 > + > +Signed-off-by: Bernd Kuhls <bernd@kuhls.net> > +--- > + tools/intel_gpu_frequency.c | 1 + > + 1 file changed, 1 insertion(+) > + > +diff --git a/tools/intel_gpu_frequency.c b/tools/intel_gpu_frequency.c > +index 6316c2e58..7df7f331d 100644 > +--- a/tools/intel_gpu_frequency.c > ++++ b/tools/intel_gpu_frequency.c > +@@ -25,6 +25,7 @@ > + #include <dirent.h> > + #include <fcntl.h> > + #include <getopt.h> > ++#include <limits.h> > + #include <stdio.h> > + #include <time.h> > + #include <unistd.h> > +-- > +2.47.3 > + > -- > 2.47.3 > > _______________________________________________ > buildroot mailing list > buildroot@buildroot.org > https://lists.buildroot.org/mailman/listinfo/buildroot _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-07-17 15:47 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-07-10 21:54 [Buildroot] [PATCH 1/2] package/igt-gpu-tools: fix musl build Bernd Kuhls 2026-07-10 21:54 ` [Buildroot] [PATCH 2/2] package/igt-gpu-tools: bump version to 2.5 Bernd Kuhls 2026-07-14 8:42 ` [Buildroot] [PATCH 1/2] package/igt-gpu-tools: fix musl build Julien Olivain via buildroot 2026-07-17 15:47 ` Thomas Perale via buildroot
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox