Skip to contentSkip to conversation

host-libxml2: enable debug for mesa3d

PATCH New Arnout Vandecappelle (Essensium/Mind) 2 participants 2 messages Dec 11, 2012 – Dec 16, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 host-libxml2: enable debug for mesa3d

The API generation script in mesa3d requires libxml2 to be built with debug, because it uses the lsCountNode function which is only available in debug mode.

Note that this is the second "temporary" hack to make mesa3d work. See http://lists.busybox.net/pipermail/buildroot/2012-November/061936.html
for possible more fundamental solutions.

---
I'm very surprised there are not autobuilder failures for mesa3d, since this fails consistently for me on all configs that have python enabled.

v2: Added reference to mesa3d discussion in commit message.

 package/libxml2/libxml2.mk |    5 +++++
 1 file changed, 5 insertions(+)
package/libxml2/libxml2.mk +5 -0
index fde3735..0c84652 100644
@@ -26,7 +26,12 @@ LIBXML2_POST_INSTALL_STAGING_HOOKS += LIBXML2_STAGING_LIBXML2_CONFIG_FIXUP
 
 HOST_LIBXML2_DEPENDENCIES = host-pkgconf
 
+# mesa3d uses functions that are only available with debug
+ifeq ($(BR2_PACKAGE_MESA3D),y)
+HOST_LIBXML2_CONF_OPT = --with-debug
+else
 HOST_LIBXML2_CONF_OPT = --without-debug
+endif
 
 ifeq ($(BR2_PACKAGE_HOST_LIBXML2_PYTHON),y)
 HOST_LIBXML2_DEPENDENCIES += host-python
Signature · 1 line
tg: (c93ba9d..) t/host-libxml2-for-mesa (depends on: p/boost)
#1 lore raw

PATCH v2 1/1 host-libxml2: enable debug for mesa3d

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:

Arnout> The API generation script in mesa3d requires libxml2 to be built with Arnout> debug, because it uses the lsCountNode function which is only available Arnout> in debug mode.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard