From 671c9465b45394bc65c99c66e4eec15018ba37df Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 27 Dec 2018 18:05:09 +0100 Subject: [PATCH] app-text/xmlto: fix compilation on Solaris Fix a macro conflict where expansion results in incorrect code. Signed-off-by: Fabian Groffen Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- app-text/xmlto/xmlto-0.0.28-r1.ebuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app-text/xmlto/xmlto-0.0.28-r1.ebuild b/app-text/xmlto/xmlto-0.0.28-r1.ebuild index 6b8cf6a7ec39..f85deee63e78 100644 --- a/app-text/xmlto/xmlto-0.0.28-r1.ebuild +++ b/app-text/xmlto/xmlto-0.0.28-r1.ebuild @@ -30,6 +30,11 @@ DOCS="AUTHORS ChangeLog FAQ NEWS README THANKS" src_prepare() { epatch "${FILESDIR}"/${PN}-0.0.22-format_fo_passivetex_check.patch + + # fix symbol clash on Solaris + if [[ ${CHOST} == *-solaris* ]] ; then + sed -i -e 's/\(attrib\|val\)/XMLTO\1/g' xmlif/xmlif.l || die + fi } src_configure() { -- 2.26.2