diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-02-03 07:49:06 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-02-03 07:49:43 +0000 |
commit | a47d7b0377791cebee6fb09cad667fc13df7362a (patch) | |
tree | 2014ec8974c308dee835f9c9c2986ba388be1919 /dev-embedded | |
parent | dev-python/sphinx-epytext: new package (diff) | |
download | gentoo-a47d7b0377791cebee6fb09cad667fc13df7362a.tar.gz gentoo-a47d7b0377791cebee6fb09cad667fc13df7362a.tar.bz2 gentoo-a47d7b0377791cebee6fb09cad667fc13df7362a.zip |
dev-embedded/u-boot-tools: tweak for gcc-10
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-embedded')
-rw-r--r-- | dev-embedded/u-boot-tools/files/u-boot-tools-2020.01-gcc-10.patch | 11 | ||||
-rw-r--r-- | dev-embedded/u-boot-tools/u-boot-tools-2020.01.ebuild | 4 |
2 files changed, 15 insertions, 0 deletions
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() { |