All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libdrm: disable tests
@ 2024-03-22 17:49 Fabrice Fontaine
  2024-03-23 20:33 ` Arnout Vandecappelle via buildroot
  2024-03-25  7:56 ` Peter Korsgaard
  0 siblings, 2 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2024-03-22 17:49 UTC (permalink / raw)
  To: buildroot; +Cc: Bernd Kuhls, Fabrice Fontaine

Disable tests to avoid the following build failure with amdgpu and gcc 5
if cunit is built before libdrm:

In file included from ../tests/amdgpu/shader_test_util.c:10:0:
../tests/amdgpu/shader_code.h:113:2: error: initializer element is not constant
  ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \
  ^

tests can be disabled since
https://gitlab.freedesktop.org/mesa/drm/-/commit/46d1e99a5d291b22d86ac52710b079491beedff8

Fixes:
 - http://autobuild.buildroot.org/results/612aad1fa642993da36bbec6c16c9020ac283e34

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/libdrm/libdrm.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/libdrm/libdrm.mk b/package/libdrm/libdrm.mk
index 61d1c24377..a04331c2da 100644
--- a/package/libdrm/libdrm.mk
+++ b/package/libdrm/libdrm.mk
@@ -17,7 +17,8 @@ LIBDRM_DEPENDENCIES = \
 
 LIBDRM_CONF_OPTS = \
 	-Dcairo-tests=disabled \
-	-Dman-pages=disabled
+	-Dman-pages=disabled \
+	-Dtests=false
 
 ifeq ($(BR2_PACKAGE_LIBATOMIC_OPS),y)
 LIBDRM_DEPENDENCIES += libatomic_ops
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/libdrm: disable tests
  2024-03-22 17:49 [Buildroot] [PATCH 1/1] package/libdrm: disable tests Fabrice Fontaine
@ 2024-03-23 20:33 ` Arnout Vandecappelle via buildroot
  2024-03-25  7:56 ` Peter Korsgaard
  1 sibling, 0 replies; 5+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2024-03-23 20:33 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot; +Cc: Bernd Kuhls



On 22/03/2024 18:49, Fabrice Fontaine wrote:
> Disable tests to avoid the following build failure with amdgpu and gcc 5
> if cunit is built before libdrm:
> 
> In file included from ../tests/amdgpu/shader_test_util.c:10:0:
> ../tests/amdgpu/shader_code.h:113:2: error: initializer element is not constant
>    ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \
>    ^
> 
> tests can be disabled since
> https://gitlab.freedesktop.org/mesa/drm/-/commit/46d1e99a5d291b22d86ac52710b079491beedff8
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/612aad1fa642993da36bbec6c16c9020ac283e34
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   package/libdrm/libdrm.mk | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/package/libdrm/libdrm.mk b/package/libdrm/libdrm.mk
> index 61d1c24377..a04331c2da 100644
> --- a/package/libdrm/libdrm.mk
> +++ b/package/libdrm/libdrm.mk
> @@ -17,7 +17,8 @@ LIBDRM_DEPENDENCIES = \
>   
>   LIBDRM_CONF_OPTS = \
>   	-Dcairo-tests=disabled \
> -	-Dman-pages=disabled
> +	-Dman-pages=disabled \
> +	-Dtests=false
>   
>   ifeq ($(BR2_PACKAGE_LIBATOMIC_OPS),y)
>   LIBDRM_DEPENDENCIES += libatomic_ops
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/libdrm: disable tests
  2024-03-22 17:49 [Buildroot] [PATCH 1/1] package/libdrm: disable tests Fabrice Fontaine
  2024-03-23 20:33 ` Arnout Vandecappelle via buildroot
@ 2024-03-25  7:56 ` Peter Korsgaard
  2024-03-26 15:01   ` Peter Korsgaard
       [not found]   ` <87frwd9gvf.fsf__26724.073598028$1711465329$gmane$org@48ers.dk>
  1 sibling, 2 replies; 5+ messages in thread
From: Peter Korsgaard @ 2024-03-25  7:56 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Bernd Kuhls, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Disable tests to avoid the following build failure with amdgpu and gcc 5
 > if cunit is built before libdrm:

 > In file included from ../tests/amdgpu/shader_test_util.c:10:0:
 > ../tests/amdgpu/shader_code.h:113:2: error: initializer element is not constant
 >   ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \
 >   ^

 > tests can be disabled since
 > https://gitlab.freedesktop.org/mesa/drm/-/commit/46d1e99a5d291b22d86ac52710b079491beedff8

 > Fixes:
 >  - http://autobuild.buildroot.org/results/612aad1fa642993da36bbec6c16c9020ac283e34

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2024.02.x, 2023.02.x and 2023.11.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/libdrm: disable tests
  2024-03-25  7:56 ` Peter Korsgaard
@ 2024-03-26 15:01   ` Peter Korsgaard
       [not found]   ` <87frwd9gvf.fsf__26724.073598028$1711465329$gmane$org@48ers.dk>
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2024-03-26 15:01 UTC (permalink / raw)
  To: Fabrice Fontaine, arnout; +Cc: Bernd Kuhls, buildroot

>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
 >> Disable tests to avoid the following build failure with amdgpu and gcc 5
 >> if cunit is built before libdrm:

 >> In file included from ../tests/amdgpu/shader_test_util.c:10:0:
 >> ../tests/amdgpu/shader_code.h:113:2: error: initializer element is not constant
 >> ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \
 >> ^

 >> tests can be disabled since
 >> https://gitlab.freedesktop.org/mesa/drm/-/commit/46d1e99a5d291b22d86ac52710b079491beedff8

 >> Fixes:
 >> - http://autobuild.buildroot.org/results/612aad1fa642993da36bbec6c16c9020ac283e34

 >> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

 > Committed to 2024.02.x, 2023.02.x and 2023.11.x, thanks.

Hmm, I think I was too fast here. The libdrm tests also include the
handy utilities like modetest and modeprint, so it is not great to
unconditionally disable them.

Maybe we should add a suboption for it? It is too late for 2024.02.1,
but I will revert the change for 2023.02.x and 2023.11.x so I can get
those released (and EOL'ed).

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/libdrm: disable tests
       [not found]   ` <87frwd9gvf.fsf__26724.073598028$1711465329$gmane$org@48ers.dk>
@ 2024-03-26 18:37     ` Bernd Kuhls
  0 siblings, 0 replies; 5+ messages in thread
From: Bernd Kuhls @ 2024-03-26 18:37 UTC (permalink / raw)
  To: buildroot

Am Tue, 26 Mar 2024 16:01:40 +0100 schrieb Peter Korsgaard:

> Maybe we should add a suboption for it?

Hi Peter,

such an option already exists:
$ grep TESTS package/libdrm/Config.in 
config BR2_PACKAGE_LIBDRM_INSTALL_TESTS

To fix the problem with missing utils I sent this patch:
https://patchwork.ozlabs.org/project/buildroot/patch/
20240324174523.1770994-1-bernd@kuhls.net/

Regards, Bernd

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2024-03-26 18:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-22 17:49 [Buildroot] [PATCH 1/1] package/libdrm: disable tests Fabrice Fontaine
2024-03-23 20:33 ` Arnout Vandecappelle via buildroot
2024-03-25  7:56 ` Peter Korsgaard
2024-03-26 15:01   ` Peter Korsgaard
     [not found]   ` <87frwd9gvf.fsf__26724.073598028$1711465329$gmane$org@48ers.dk>
2024-03-26 18:37     ` Bernd Kuhls

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.