From patchwork Tue Dec 11 11:10:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnout Vandecappelle X-Patchwork-Id: 205174 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 922BC2C0087 for ; Tue, 11 Dec 2012 22:10:32 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3BE5489A2D; Tue, 11 Dec 2012 11:10:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EvbUryw1+LeS; Tue, 11 Dec 2012 11:10:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 5B12388AF2; Tue, 11 Dec 2012 11:10:18 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id DA2518F74B for ; Tue, 11 Dec 2012 11:10:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6C6F3818B5 for ; Tue, 11 Dec 2012 11:10:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZrGTDgbMAjKn for ; Tue, 11 Dec 2012 11:10:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from viper.mind.be (132.79-246-81.adsl-static.isp.belgacom.be [81.246.79.132]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4D27F81CB1 for ; Tue, 11 Dec 2012 11:10:16 +0000 (UTC) Received: from [172.16.2.6] (helo=vandecaa-laptop) by viper.mind.be with esmtp (Exim 4.69) (envelope-from ) id 1TiNj2-0004Xr-Ai; Tue, 11 Dec 2012 12:10:14 +0100 Received: from arnout by vandecaa-laptop with local (Exim 4.80) (envelope-from ) id 1TiNiz-0005fK-M4; Tue, 11 Dec 2012 12:10:09 +0100 From: "Arnout Vandecappelle (Essensium/Mind)" To: buildroot@busybox.net Date: Tue, 11 Dec 2012 12:10:07 +0100 Message-Id: <1355224207-21745-1-git-send-email-arnout@mind.be> X-Mailer: git-send-email 1.7.10.4 Subject: [Buildroot] [PATCH v2] host-libxml2: enable debug for mesa3d X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net 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. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- 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(+) diff --git a/package/libxml2/libxml2.mk b/package/libxml2/libxml2.mk index fde3735..0c84652 100644 --- a/package/libxml2/libxml2.mk +++ b/package/libxml2/libxml2.mk @@ -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