From 6ea5d0fd9d951ed0994c3ed285e54569dd0f8784 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 4 Apr 2019 20:49:56 -0400 Subject: [PATCH] libxml2: Fix usage on GCC2. --- dev-libs/libxml2/libxml2-2.9.9.recipe | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-libs/libxml2/libxml2-2.9.9.recipe b/dev-libs/libxml2/libxml2-2.9.9.recipe index bc58dfc73..c3af48e59 100644 --- a/dev-libs/libxml2/libxml2-2.9.9.recipe +++ b/dev-libs/libxml2/libxml2-2.9.9.recipe @@ -10,7 +10,7 @@ available in other environments." HOMEPAGE="http://www.xmlsoft.org/" COPYRIGHT="1998-2013 Daniel Veillard. All Rights Reserved." LICENSE="MIT" -REVISION="2" +REVISION="3" SOURCE_URI="ftp://xmlsoft.org/libxml2/libxml2-$portVersion.tar.gz" CHECKSUM_SHA256="94fb70890143e3c6549f265cee93ec064c80a84c42ad0f23e85ee1fd6540a871" PATCHES="libxml2-$portVersion.patchset" @@ -97,6 +97,10 @@ PATCH() doc/devhelp/Makefile.am sed -i "s,%{_datadir}/gtk-doc/html/libxml2,${developDocDir},g" \ libxml.spec.in + + # treat __GNUC__ as true only if >= 4 in some files + sed -i "s/def __GNUC__/ defined\\(__GNUC__\\) \\&\\& __GNUC__ > 3/g" \ + timsort.h } BUILD()