From ed87352ee1e4d1ba93bbd88eb2eff2b2a218fe02 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Wed, 3 Apr 2019 18:30:55 +0200 Subject: [PATCH] libxml2: fix gcc2 build --- dev-libs/libxml2/libxml2-2.9.9.recipe | 2 +- .../libxml2/patches/libxml2-2.9.9.patchset | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/dev-libs/libxml2/libxml2-2.9.9.recipe b/dev-libs/libxml2/libxml2-2.9.9.recipe index ba61e5eaf..bc58dfc73 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="1" +REVISION="2" SOURCE_URI="ftp://xmlsoft.org/libxml2/libxml2-$portVersion.tar.gz" CHECKSUM_SHA256="94fb70890143e3c6549f265cee93ec064c80a84c42ad0f23e85ee1fd6540a871" PATCHES="libxml2-$portVersion.patchset" diff --git a/dev-libs/libxml2/patches/libxml2-2.9.9.patchset b/dev-libs/libxml2/patches/libxml2-2.9.9.patchset index 81ed11a10..22093ad81 100644 --- a/dev-libs/libxml2/patches/libxml2-2.9.9.patchset +++ b/dev-libs/libxml2/patches/libxml2-2.9.9.patchset @@ -187,3 +187,31 @@ index 5773db3..1065298 100644 -- 2.2.2 +From 607d388f8f591239695762da33231670d9c2f325 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Wed, 3 Apr 2019 18:27:19 +0200 +Subject: [PATCH] Remove options unknown to gcc2 + +--- + configure.ac | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 974d292..35e972d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -769,9 +769,9 @@ else + fi + + # warnings we'd like to see +- EXTRA_CFLAGS="${EXTRA_CFLAGS} -pedantic -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls" ++ EXTRA_CFLAGS="${EXTRA_CFLAGS} -pedantic -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls" + # warnings we'd like to supress +- EXTRA_CFLAGS="${EXTRA_CFLAGS} -Wno-long-long -Wno-format-extra-args -Wno-array-bounds" ++ EXTRA_CFLAGS="${EXTRA_CFLAGS} -Wno-long-long -Wno-format-extra-args" + case "${host}" in + alpha*-*-linux* ) + EXTRA_CFLAGS="${EXTRA_CFLAGS} -mieee" +-- +2.19.1 +