From 5095b1a1460425473137531dfbc85af1cdbc2a99 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Tue, 21 Jan 2020 22:51:01 +0100 Subject: app-text/xml2doc: Add patch for GCC 10 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: David Seifert --- .../files/xml2doc-20030510-gcc10-no-common.patch | 18 ++++++++++++++++++ app-text/xml2doc/xml2doc-20030510-r1.ebuild | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 app-text/xml2doc/files/xml2doc-20030510-gcc10-no-common.patch diff --git a/app-text/xml2doc/files/xml2doc-20030510-gcc10-no-common.patch b/app-text/xml2doc/files/xml2doc-20030510-gcc10-no-common.patch new file mode 100644 index 000000000000..17965c946abe --- /dev/null +++ b/app-text/xml2doc/files/xml2doc-20030510-gcc10-no-common.patch @@ -0,0 +1,18 @@ +--- a/src/defs.h ++++ b/src/defs.h +@@ -18,13 +18,13 @@ + + /* Global vars */ + +-enum ++enum align + { + ALIGN_RIGHT, + ALIGN_LEFT, + ALIGN_JUSTIFY, + ALIGN_CENTER +-} align; ++}; + + typedef struct + { diff --git a/app-text/xml2doc/xml2doc-20030510-r1.ebuild b/app-text/xml2doc/xml2doc-20030510-r1.ebuild index 3c962351552f..e4a387e503a4 100644 --- a/app-text/xml2doc/xml2doc-20030510-r1.ebuild +++ b/app-text/xml2doc/xml2doc-20030510-r1.ebuild @@ -23,6 +23,8 @@ PATCHES=( "${FILESDIR}"/${PN}-pointer_fix.patch # Don't strip symbols from binary (bug #152266) "${FILESDIR}"/${P}-makefile.patch + # fix GCC 10 -fno-common change + "${FILESDIR}"/${P}-gcc10-no-common.patch ) src_configure() { -- cgit v1.2.3-65-gdbad