commit: 5095b1a1460425473137531dfbc85af1cdbc2a99
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 21 21:51:01 2020 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Jan 21 21:51:01 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5095b1a1
app-text/xml2doc: Add patch for GCC 10
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: David Seifert <soap <AT> gentoo.org>
.../files/xml2doc-20030510-gcc10-no-common.patch | 18 ++++++++++++++++++
app-text/xml2doc/xml2doc-20030510-r1.ebuild | 2 ++
2 files changed, 20 insertions(+)
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 00000000000..17965c946ab
--- /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 3c962351552..e4a387e503a 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() {