All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v1] libdrm: disable nouveau test for static build
@ 2019-11-25 15:12 Peter Seiderer
  2019-11-25 17:16 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Seiderer @ 2019-11-25 15:12 UTC (permalink / raw)
  To: buildroot

Fixes:

  [46/66] Compiling C object 'tests/nouveau/e47a46e@@threaded at exe/threaded.c.o'.
  FAILED: tests/nouveau/e47a46e@@threaded at exe/threaded.c.o
  ./tests/nouveau/threaded.c:24:10: fatal error: dlfcn.h: No such file or directory
  #include <dlfcn.h>

[1] http://autobuild.buildroot.net/results/3042637f54d2d232904ea009455cae82e159ea2e

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
 ...d-disable-nouveau-tests-for-static-b.patch | 43 +++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 package/libdrm/0005-tests-meson.build-disable-nouveau-tests-for-static-b.patch

diff --git a/package/libdrm/0005-tests-meson.build-disable-nouveau-tests-for-static-b.patch b/package/libdrm/0005-tests-meson.build-disable-nouveau-tests-for-static-b.patch
new file mode 100644
index 0000000000..e2e18e122b
--- /dev/null
+++ b/package/libdrm/0005-tests-meson.build-disable-nouveau-tests-for-static-b.patch
@@ -0,0 +1,43 @@
+From c9036706b9f724f09ac6288f82b53f2e76264ec7 Mon Sep 17 00:00:00 2001
+From: Peter Seiderer <ps.report@gmx.net>
+Date: Mon, 25 Nov 2019 15:59:15 +0100
+Subject: [PATCH] tests/meson.build: disable nouveau tests for static build
+
+Signed-off-by: Peter Seiderer <ps.report@gmx.net>
+---
+Notes:
+
+  - the existing test/check for static build in meson.build does not
+    catch this case because e.g. the buildroot toolchain
+    br-arm-full-static-2019.05.1 provides an empty libdl.a
+
+  169 # Among others FreeBSD does not have a separate dl library.
+  170 if not cc.has_function('dlsym')
+  171   dep_dl = cc.find_library('dl', required : with_nouveau)
+  172 else
+  173   dep_dl = []
+  174 endif
+---
+ tests/meson.build | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/tests/meson.build b/tests/meson.build
+index 6c8ddd9..f7cb5f0 100644
+--- a/tests/meson.build
++++ b/tests/meson.build
+@@ -44,8 +44,11 @@ endif
+ if with_etnaviv
+   subdir('etnaviv')
+ endif
++lib_type = get_option('default_library')
+ if with_nouveau
+-  subdir('nouveau')
++  if lib_type != 'static'
++    subdir('nouveau')
++  endif
+ endif
+ 
+ drmsl = executable(
+-- 
+2.24.0
+
-- 
2.24.0

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

* [Buildroot] [PATCH v1] libdrm: disable nouveau test for static build
  2019-11-25 15:12 [Buildroot] [PATCH v1] libdrm: disable nouveau test for static build Peter Seiderer
@ 2019-11-25 17:16 ` Thomas Petazzoni
  2019-11-26 22:34   ` Peter Seiderer
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2019-11-25 17:16 UTC (permalink / raw)
  To: buildroot

On Mon, 25 Nov 2019 16:12:29 +0100
Peter Seiderer <ps.report@gmx.net> wrote:

> Fixes:
> 
>   [46/66] Compiling C object 'tests/nouveau/e47a46e@@threaded at exe/threaded.c.o'.
>   FAILED: tests/nouveau/e47a46e@@threaded at exe/threaded.c.o
>   ./tests/nouveau/threaded.c:24:10: fatal error: dlfcn.h: No such file or directory
>   #include <dlfcn.h>
> 
> [1] http://autobuild.buildroot.net/results/3042637f54d2d232904ea009455cae82e159ea2e
> 
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
>  ...d-disable-nouveau-tests-for-static-b.patch | 43 +++++++++++++++++++
>  1 file changed, 43 insertions(+)
>  create mode 100644 package/libdrm/0005-tests-meson.build-disable-nouveau-tests-for-static-b.patch

Applied to master, thanks. Could you submit the patch upstream ?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH v1] libdrm: disable nouveau test for static build
  2019-11-25 17:16 ` Thomas Petazzoni
@ 2019-11-26 22:34   ` Peter Seiderer
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Seiderer @ 2019-11-26 22:34 UTC (permalink / raw)
  To: buildroot

Hello Thomas,

On Mon, 25 Nov 2019 18:16:48 +0100, Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:

> On Mon, 25 Nov 2019 16:12:29 +0100
> Peter Seiderer <ps.report@gmx.net> wrote:
>
> > Fixes:
> >
> >   [46/66] Compiling C object 'tests/nouveau/e47a46e@@threaded at exe/threaded.c.o'.
> >   FAILED: tests/nouveau/e47a46e@@threaded at exe/threaded.c.o
> >   ./tests/nouveau/threaded.c:24:10: fatal error: dlfcn.h: No such file or directory
> >   #include <dlfcn.h>
> >
> > [1] http://autobuild.buildroot.net/results/3042637f54d2d232904ea009455cae82e159ea2e
> >
> > Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> > ---
> >  ...d-disable-nouveau-tests-for-static-b.patch | 43 +++++++++++++++++++
> >  1 file changed, 43 insertions(+)
> >  create mode 100644 package/libdrm/0005-tests-meson.build-disable-nouveau-tests-for-static-b.patch
>
> Applied to master, thanks. Could you submit the patch upstream ?

Done, see [1]...

Regards,
Peter

[1] https://gitlab.freedesktop.org/mesa/drm/merge_requests/29

>
> Thanks,
>
> Thomas

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

end of thread, other threads:[~2019-11-26 22:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-25 15:12 [Buildroot] [PATCH v1] libdrm: disable nouveau test for static build Peter Seiderer
2019-11-25 17:16 ` Thomas Petazzoni
2019-11-26 22:34   ` Peter Seiderer

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.