Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/mesa3d: Remove opengl headers files if opengl support is disabled
@ 2016-11-06 18:11 Bernd Kuhls
  2016-11-06 21:46 ` Thomas Petazzoni
  2016-11-13 14:09 ` Yann E. MORIN
  0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2016-11-06 18:11 UTC (permalink / raw)
  To: buildroot

Mesa3d used to install GL/gl.h & co. only if libGL.so was installed.

After this commit
https://cgit.freedesktop.org/mesa/mesa/commit/?h=13.0&id=a89faa2022fd995af2019c886b152b49a01f9392

this is no longer the case leading to misdetection of opengl support by
vlc if mesa3d was built before:

http://git.videolan.org/?p=vlc.git;a=blob;f=configure.ac;h=c8900d216540816224e872bef46fbcc93d83ca41;hb=HEAD#l3010

This patch partly re-introduces a mechanism to clean unwanted files
installed by mesa3d which was removed when bumping to 12.0.0:
https://git.buildroot.net/buildroot/commit/package/mesa3d?id=ff3e522e748925f6be5732a6e5df6553468ca0a1

Fixes
http://autobuild.buildroot.net/results/13e/13e7c0f5fc6ae8ba5e62b2597d188496c64090fd/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mesa3d/mesa3d.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index e17db5c..68df451 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -134,9 +134,15 @@ MESA3D_CONF_OPTS += --enable-opengl --enable-dri
 # we do not need libva support in mesa3d, therefore disable this option
 MESA3D_CONF_OPTS += --disable-va
 
+define MESA3D_REMOVE_OPENGL_HEADERS
+	rm -rf $(STAGING_DIR)/usr/include/GL/
+endef
+
 # libGL is only provided for a full xorg stack
 ifeq ($(BR2_PACKAGE_XORG7),y)
 MESA3D_PROVIDES += libgl
+else
+MESA3D_POST_INSTALL_STAGING_HOOKS += MESA3D_REMOVE_OPENGL_HEADERS
 endif
 
 ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
-- 
2.10.2

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

* [Buildroot] [PATCH 1/1] package/mesa3d: Remove opengl headers files if opengl support is disabled
  2016-11-06 18:11 [Buildroot] [PATCH 1/1] package/mesa3d: Remove opengl headers files if opengl support is disabled Bernd Kuhls
@ 2016-11-06 21:46 ` Thomas Petazzoni
  2016-11-13 14:09 ` Yann E. MORIN
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2016-11-06 21:46 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun,  6 Nov 2016 19:11:00 +0100, Bernd Kuhls wrote:
> Mesa3d used to install GL/gl.h & co. only if libGL.so was installed.
> 
> After this commit
> https://cgit.freedesktop.org/mesa/mesa/commit/?h=13.0&id=a89faa2022fd995af2019c886b152b49a01f9392
> 
> this is no longer the case leading to misdetection of opengl support by
> vlc if mesa3d was built before:
> 
> http://git.videolan.org/?p=vlc.git;a=blob;f=configure.ac;h=c8900d216540816224e872bef46fbcc93d83ca41;hb=HEAD#l3010
> 
> This patch partly re-introduces a mechanism to clean unwanted files
> installed by mesa3d which was removed when bumping to 12.0.0:
> https://git.buildroot.net/buildroot/commit/package/mesa3d?id=ff3e522e748925f6be5732a6e5df6553468ca0a1
> 
> Fixes
> http://autobuild.buildroot.net/results/13e/13e7c0f5fc6ae8ba5e62b2597d188496c64090fd/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

Could you report this issue upstream? I think it's not normal for
mesa3d to install the OpenGL headers if it doesn't install libGL.so.


> +define MESA3D_REMOVE_OPENGL_HEADERS
> +	rm -rf $(STAGING_DIR)/usr/include/GL/
> +endef

I've moved this...

> +
>  # libGL is only provided for a full xorg stack
>  ifeq ($(BR2_PACKAGE_XORG7),y)
>  MESA3D_PROVIDES += libgl
> +else

... here, so that it is next to where it's actually used.

> +MESA3D_POST_INSTALL_STAGING_HOOKS += MESA3D_REMOVE_OPENGL_HEADERS
>  endif

Applied to master, thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

* [Buildroot] [PATCH 1/1] package/mesa3d: Remove opengl headers files if opengl support is disabled
  2016-11-06 18:11 [Buildroot] [PATCH 1/1] package/mesa3d: Remove opengl headers files if opengl support is disabled Bernd Kuhls
  2016-11-06 21:46 ` Thomas Petazzoni
@ 2016-11-13 14:09 ` Yann E. MORIN
  1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2016-11-13 14:09 UTC (permalink / raw)
  To: buildroot

Bernd, Vicente, All,

On 2016-11-06 19:11 +0100, Bernd Kuhls spake thusly:
> Mesa3d used to install GL/gl.h & co. only if libGL.so was installed.
> 
> After this commit
> https://cgit.freedesktop.org/mesa/mesa/commit/?h=13.0&id=a89faa2022fd995af2019c886b152b49a01f9392
> 
> this is no longer the case leading to misdetection of opengl support by
> vlc if mesa3d was built before:
> 
> http://git.videolan.org/?p=vlc.git;a=blob;f=configure.ac;h=c8900d216540816224e872bef46fbcc93d83ca41;hb=HEAD#l3010
> 
> This patch partly re-introduces a mechanism to clean unwanted files
> installed by mesa3d which was removed when bumping to 12.0.0:
> https://git.buildroot.net/buildroot/commit/package/mesa3d?id=ff3e522e748925f6be5732a6e5df6553468ca0a1
> 
> Fixes
> http://autobuild.buildroot.net/results/13e/13e7c0f5fc6ae8ba5e62b2597d188496c64090fd/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

Mesa3d 13.0.0 is marked as being a "new development release". Why did we
switch to this version rather than stick to the stable 12.0.x series?

Besides, it breaks the build with wayland in various ways:

  - uses the wrong wayland-scanner:
    http://autobuild.buildroot.org/results/46c/46c179423cc18d5d17b7635f9f4e126343f9c86f/
    http://autobuild.buildroot.net/results/40a/40a8bb7c74730e41573fb15b4922340577a84860/

  - uses non-exitent wayland macros:
    http://pastebin.com/2pZ69wgQ

Care to have a look at how to fix this, please?

Thanks! :-)

Regards,
Yann E. MORIN.

> ---
>  package/mesa3d/mesa3d.mk | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
> index e17db5c..68df451 100644
> --- a/package/mesa3d/mesa3d.mk
> +++ b/package/mesa3d/mesa3d.mk
> @@ -134,9 +134,15 @@ MESA3D_CONF_OPTS += --enable-opengl --enable-dri
>  # we do not need libva support in mesa3d, therefore disable this option
>  MESA3D_CONF_OPTS += --disable-va
>  
> +define MESA3D_REMOVE_OPENGL_HEADERS
> +	rm -rf $(STAGING_DIR)/usr/include/GL/
> +endef
> +
>  # libGL is only provided for a full xorg stack
>  ifeq ($(BR2_PACKAGE_XORG7),y)
>  MESA3D_PROVIDES += libgl
> +else
> +MESA3D_POST_INSTALL_STAGING_HOOKS += MESA3D_REMOVE_OPENGL_HEADERS
>  endif
>  
>  ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
> -- 
> 2.10.2
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

end of thread, other threads:[~2016-11-13 14:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-06 18:11 [Buildroot] [PATCH 1/1] package/mesa3d: Remove opengl headers files if opengl support is disabled Bernd Kuhls
2016-11-06 21:46 ` Thomas Petazzoni
2016-11-13 14:09 ` Yann E. MORIN

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