dev-embedded/u-boot-tools: tweak for gcc-10
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 3 Feb 2020 07:49:06 +0000 (07:49 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Mon, 3 Feb 2020 07:49:43 +0000 (07:49 +0000)
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
dev-embedded/u-boot-tools/files/u-boot-tools-2020.01-gcc-10.patch [new file with mode: 0644]
dev-embedded/u-boot-tools/u-boot-tools-2020.01.ebuild

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 (file)
index 0000000..3215597
--- /dev/null
@@ -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() */
index 6deafb7f05c9d1f8e1002fd3748a02cccdd4b9c2..798ff7a240bce767eb7af8fd79bdcd3f17977bcd 100644 (file)
@@ -20,6 +20,10 @@ DEPEND="
        sys-devel/bison
 "
 
+PATCHES=(
+       "${FILESDIR}"/${P}-gcc-10.patch
+)
+
 S=${WORKDIR}/${MY_P}
 
 src_compile() {