From: Thomas Perale via buildroot <buildroot@buildroot.org>
To: Bernd Kuhls <bernd@kuhls.net>
Cc: Thomas Perale <thomas.perale@mind.be>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/2] package/igt-gpu-tools: fix musl build
Date: Fri, 17 Jul 2026 17:47:12 +0200 [thread overview]
Message-ID: <20260717154713.191571-1-thomas.perale@mind.be> (raw)
In-Reply-To: <20260710215456.2365392-1-bernd@kuhls.net>
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
prev parent reply other threads:[~2026-07-17 15:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260717154713.191571-1-thomas.perale@mind.be \
--to=buildroot@buildroot.org \
--cc=bernd@kuhls.net \
--cc=thomas.perale@mind.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox