From: Sergei Trofimovich Date: Mon, 3 Feb 2020 07:49:06 +0000 (+0000) Subject: dev-embedded/u-boot-tools: tweak for gcc-10 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a47d7b0377791cebee6fb09cad667fc13df7362a;p=gentoo.git dev-embedded/u-boot-tools: tweak for gcc-10 Package-Manager: Portage-2.3.87, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich --- diff --git a/dev-embedded/u-boot-tools/files/u-boot-tools-2020.01-gcc-10.patch b/dev-embedded/u-boot-tools/files/u-boot-tools-2020.01-gcc-10.patch new file mode 100644 index 000000000000..321559761517 --- /dev/null +++ b/dev-embedded/u-boot-tools/files/u-boot-tools-2020.01-gcc-10.patch @@ -0,0 +1,11 @@ +--- a/scripts/dtc/dtc-lexer.l ++++ b/scripts/dtc/dtc-lexer.l +@@ -38,7 +38,7 @@ LINECOMMENT "//".*\n + #include "srcpos.h" + #include "dtc-parser.tab.h" + +-YYLTYPE yylloc; ++extern YYLTYPE yylloc; + extern bool treesource_error; + + /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2020.01.ebuild b/dev-embedded/u-boot-tools/u-boot-tools-2020.01.ebuild index 6deafb7f05c9..798ff7a240bc 100644 --- a/dev-embedded/u-boot-tools/u-boot-tools-2020.01.ebuild +++ b/dev-embedded/u-boot-tools/u-boot-tools-2020.01.ebuild @@ -20,6 +20,10 @@ DEPEND=" sys-devel/bison " +PATCHES=( + "${FILESDIR}"/${P}-gcc-10.patch +) + S=${WORKDIR}/${MY_P} src_compile() {