All of lore.kernel.org
 help / color / mirror / Atom feed
* mx6q: fix virtual/libgl dependencies
@ 2013-07-18 12:03 Simon Braunschmidt
  2013-07-18 12:03 ` [meta-fsl-arm][PATCH] " Simon Braunschmidt
  2013-07-18 12:28 ` Otavio Salvador
  0 siblings, 2 replies; 9+ messages in thread
From: Simon Braunschmidt @ 2013-07-18 12:03 UTC (permalink / raw)
  To: meta-freescale

Hi

I am still new to Yocto, so bear with me if some of the following
is not correct, you are welcome to open my eyes though ;-)

I have observed a problem to compile libglu in a configuration
for cgtqmx6 (imx6, from meta-fsl-arm-extra).
For a completely clean rebuild, sometimes compilation succeeds,
but sometimes it fails, not finding libGL for linking:

/home/devel/yocto/ ... /arm-poky-linux-gnueabi/4.8.1/ld: cannot find -lGL
collect2: error: ld returned 1 exit status

It looks like a race condition, sometimes the package/task providing
libGL is ready when libglu is compiled, sometimes not.

Some findings:

- meta-fsl-arm/recipes-graphics/mesa/mesa_9.1.3.bbappend is used to
  delete libGL.* after compilation of mesa

- ./recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_3.0.35-4.0.0.bb, via
  gpu-viv-bin-mx6q.inc, provides its own version of libGL

- gpu-viv-bin-mx6q does not advertise "virtual/libgl" in "PROVIDES +="

- but mesa (via mesa.inc) does:
  PROVIDES = "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl"

- so the statement in imx-base.inc
   PREFERRED_PROVIDER_virtual/libgl_mx6 ?= "gpu-viv-bin-mx6q"
  does not have effect, because mesa is still the only provider of virtual/libgl

- packages depending on virtual/libgl only get mesa, which will not contain
  the libGL library

- in fact, we still use the gl headers from mesa, but the binary blob library
  from gpu-viv-bin-mx6q (i have no words to describe this ...),
        so a package compiling against GL needs both mesa and gpu-viv-bin-mx6q

- so i suggest having gpu-viv-bin-mx6q depend on mesa to draw in the
  gl header package, advertising "virtual/libgl" for gpu-viv-bin-mx6q
  via "PROVIDES +=" and not advertising virtual/libgl for mesa via the
  .bbappend file


Would the following patch be appropriate?

Kindest Regards,
Simon
-- 
Simon Braunschmidt, emlix GmbH, http://www.emlix.com Maxfeldstraße 9,
90409 Nürnberg, Germany Fon +49 911 / 36 77 11 - 7, Fax -8 
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160
Geschäftsführer: Dr. Uwe Kracke, Ust-IdNr.: DE 205 198 055



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

end of thread, other threads:[~2013-07-18 18:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-18 12:03 mx6q: fix virtual/libgl dependencies Simon Braunschmidt
2013-07-18 12:03 ` [meta-fsl-arm][PATCH] " Simon Braunschmidt
2013-07-18 12:28 ` Otavio Salvador
2013-07-18 12:32   ` Otavio Salvador
2013-07-18 13:19     ` Simon Braunschmidt
2013-07-18 13:19       ` [PATCH] gpu-viv-bin-mx6q, mesa: " Simon Braunschmidt
2013-07-18 13:26         ` Eric Bénard
2013-07-18 13:29           ` Otavio Salvador
2013-07-18 18:42       ` mx6q: " John Weber

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.