Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/webkit: Fix OpenGL-related dependencies
@ 2014-05-19 18:49 Bernd Kuhls
  2014-05-19 20:14 ` Bernd Kuhls
  2014-05-19 20:37 ` Peter Korsgaard
  0 siblings, 2 replies; 6+ messages in thread
From: Bernd Kuhls @ 2014-05-19 18:49 UTC (permalink / raw)
  To: buildroot

fixes
http://autobuild.buildroot.net/results/27a/27a674c6a19a729fae5cc33de0360b2a061930c1/

This patch indeed fixes two problems based on the autobuilder-defconfig used.

1) Add missing dependencies when opengl is detected by webkit to satisfy autobuilder:

checking which GPU acceleration backend to use... opengl
checking for XCOMPOSITE... yes
checking for XDAMAGE... no
configure: error: Package requirements (xdamage) were not met:

2) ... but opengl should not have been detected with the used defconfig:
$ grep MESA .config
BR2_PACKAGE_MESA3D=y

which will lead to a link error although webkit configure found all dependencies:

/home/br2/output/host/opt/ext-toolchain/bin/../lib/gcc/mips-linux-gnu/4.7.3/../../../../mips-linux-gnu/bin/ld: cannot find -lGL

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

diff --git a/package/webkit/webkit.mk b/package/webkit/webkit.mk
index 21b535f..c693de7 100644
--- a/package/webkit/webkit.mk
+++ b/package/webkit/webkit.mk
@@ -48,4 +48,11 @@ WEBKIT_CONF_OPT += \
 WEBKIT_CONF_OPT += --with-target=x11
 WEBKIT_DEPENDENCIES += xlib_libXt
 
+ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
+WEBKIT_CONF_OPT += --with-acceleration-backend=opengl
+WEBKIT_DEPENDENCIES += xlib_libXcomposite xlib_libXdamage
+else
+WEBKIT_CONF_OPT += --with-acceleration-backend=none
+endif
+
 $(eval $(autotools-package))
-- 
1.7.10.4

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

end of thread, other threads:[~2014-05-19 21:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-19 18:49 [Buildroot] [PATCH 1/1] package/webkit: Fix OpenGL-related dependencies Bernd Kuhls
2014-05-19 20:14 ` Bernd Kuhls
2014-05-19 20:36   ` Peter Korsgaard
2014-05-19 20:37 ` Peter Korsgaard
2014-05-19 20:42   ` Yann E. MORIN
2014-05-19 21:07     ` Peter Korsgaard

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