Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/igt-gpu-tools: bump version to 2.6
@ 2026-10-09 21:22 Bernd Kuhls
  2026-10-10  5:36 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2026-10-09 21:22 UTC (permalink / raw)
  To: buildroot

https://lists.x.org/archives/xorg-announce/2026-September/003745.html

Removed patches which are included in this release.

Added patch 0001 to fix musl build error which would be introduced by
this bump:
https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/commit/d4fa11371a9bb8a0bc73aa205033ea13143d843c

Musl build error was reported upstream:
https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/work_items/211

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/1f52de066abd1e0e232c8b42266d476381a72b05

with the exception of an unrelated build error at
bootlin-xtensa-uclibc/build/elfutils-0.195/.stamp_configured

 ...b-igt_platform_filter-Fix-musl-build.patch | 83 +++++++++++++++++++
 ...frequency-include-limits.h-to-fix-mu.patch | 36 --------
 ...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 +-
 5 files changed, 87 insertions(+), 86 deletions(-)
 create mode 100644 package/igt-gpu-tools/0001-lib-igt_platform_filter-Fix-musl-build.patch
 delete mode 100644 package/igt-gpu-tools/0001-tools-intel_gpu_frequency-include-limits.h-to-fix-mu.patch
 delete 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/0001-lib-igt_platform_filter-Fix-musl-build.patch b/package/igt-gpu-tools/0001-lib-igt_platform_filter-Fix-musl-build.patch
new file mode 100644
index 0000000000..2184349648
--- /dev/null
+++ b/package/igt-gpu-tools/0001-lib-igt_platform_filter-Fix-musl-build.patch
@@ -0,0 +1,83 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Kamil Konieczny <kamil.konieczny@linux.intel.com>
+Date: Thu, 8 Oct 2026 13:14:35 +0200
+Subject: [PATCH] lib/igt_platform_filter: Fix musl build
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+When using musl C libs, stdout/stderr are read-only vars and
+compilation reports errors, for example:
+
+../lib/igt_platform_filter.c: In function ‘igt_platform_filter_dump_to_file’:
+../lib/igt_platform_filter.c:551:16: error: assignment of read-only variable ‘stdout’
+  551 |         stdout = f;
+
+Also man stdout points out:
+Since the symbols stdin, stdout, and stderr are specified to be
+macros, assigning to them is nonportable.
+
+As this function do not have any user, just remove it.
+
+Cc: Vitaly Prosyak <vitaly.prosyak@amd.com>
+Cc: Jesse Zhang <jesse.zhang@amd.com>
+Reported-by: Bernd Kuhls <bernd@kuhls.net>
+Closes: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/work_items/211
+Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
+Reviewed-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
+Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
+
+Upstream: https://patchwork.freedesktop.org/patch/758622/?series=175702&rev=2
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ lib/igt_platform_filter.c | 33 ---------------------------------
+ 1 file changed, 33 deletions(-)
+
+diff --git a/lib/igt_platform_filter.c b/lib/igt_platform_filter.c
+index 15b4e9690..9ccc0eadc 100644
+--- a/lib/igt_platform_filter.c
++++ b/lib/igt_platform_filter.c
+@@ -527,39 +527,6 @@ void igt_platform_filter_dump(void)
+ 	igt_info("═══════════════════════════════════════════════════════════════════\n\n");
+ }
+ 
+-/**
+- * igt_platform_filter_dump_to_file:
+- * @filename: Path to output file
+- *
+- * Dump platform filtering configuration to a file.
+- *
+- * Returns: 0 on success, -1 on error
+- */
+-int igt_platform_filter_dump_to_file(const char *filename)
+-{
+-	FILE *old_stdout;
+-	FILE *f;
+-
+-	f = fopen(filename, "w");
+-	if (!f) {
+-		igt_warn("Failed to open %s for writing\n", filename);
+-		return -1;
+-	}
+-
+-	/* Redirect stdout to file */
+-	old_stdout = stdout;
+-	stdout = f;
+-
+-	igt_platform_filter_dump();
+-
+-	/* Restore stdout */
+-	stdout = old_stdout;
+-	fclose(f);
+-
+-	igt_info("Platform filter configuration dumped to: %s\n", filename);
+-	return 0;
+-}
+-
+ /**
+  * igt_platform_filter_is_initialized:
+  *
+-- 
+2.47.3
+
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
deleted file mode 100644
index 1d818dcc22..0000000000
--- a/package/igt-gpu-tools/0001-tools-intel_gpu_frequency-include-limits.h-to-fix-mu.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-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
-
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
deleted file mode 100644
index 7ee34b1fc8..0000000000
--- a/package/igt-gpu-tools/0002-tests-intel-xe_madvise-Fix-the-type-for-sighandler_t.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-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 f0c6ceff2f..3759846675 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-June/003710.html
-sha256  bf5ee5cc1e2b92c456d626b7986be9e2d18b4765cd06c28c1ab449200c1ce5e2  igt-gpu-tools-2.5.tar.xz
-sha512  0da8f56a76bb79186da95545be63b8fa82c93edfe9b5fe6ffe43017deb792601545bba292c516b525e1e29087e9b048751df4875d8a7a64e265bac943bf6be81  igt-gpu-tools-2.5.tar.xz
+# From https://lists.x.org/archives/xorg-announce/2026-September/003745.html
+sha256  5d5190debfec0ee1728430897f243d0afa271856c2cb5834a23b23f08be8d06e  igt-gpu-tools-2.6.tar.xz
+sha512  7b06f2aa9c1e4cc87092625d9b8eae946dcb7ac4b0a77534d4f49a880a071fba85fdb9e519e6a9d3cedeeb5181c8d6051a9a3ecd27c7b667d389008752102fe2  igt-gpu-tools-2.6.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 cbbbc74a4c..ec956449d1 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.5
+IGT_GPU_TOOLS_VERSION = 2.6
 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] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/igt-gpu-tools: bump version to 2.6
  2026-10-09 21:22 [Buildroot] [PATCH 1/1] package/igt-gpu-tools: bump version to 2.6 Bernd Kuhls
@ 2026-10-10  5:36 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-10  5:36 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot

On Fri, Oct 09, 2026 at 11:22:55PM +0200, Bernd Kuhls wrote:
> https://lists.x.org/archives/xorg-announce/2026-September/003745.html
> 
> Removed patches which are included in this release.
> 
> Added patch 0001 to fix musl build error which would be introduced by
> this bump:
> https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/commit/d4fa11371a9bb8a0bc73aa205033ea13143d843c
> 
> Musl build error was reported upstream:
> https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/work_items/211
> 
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>

Applied to master, thanks!

Best regards,

Thomas Petazzoni
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-10  5:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-09 21:22 [Buildroot] [PATCH 1/1] package/igt-gpu-tools: bump version to 2.6 Bernd Kuhls
2026-10-10  5:36 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox