1 |
commit: a47d7b0377791cebee6fb09cad667fc13df7362a |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 3 07:49:06 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 3 07:49:43 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a47d7b03 |
7 |
|
8 |
dev-embedded/u-boot-tools: tweak for gcc-10 |
9 |
|
10 |
Package-Manager: Portage-2.3.87, Repoman-2.3.20 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
.../u-boot-tools/files/u-boot-tools-2020.01-gcc-10.patch | 11 +++++++++++ |
14 |
dev-embedded/u-boot-tools/u-boot-tools-2020.01.ebuild | 4 ++++ |
15 |
2 files changed, 15 insertions(+) |
16 |
|
17 |
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 |
18 |
new file mode 100644 |
19 |
index 00000000000..32155976151 |
20 |
--- /dev/null |
21 |
+++ b/dev-embedded/u-boot-tools/files/u-boot-tools-2020.01-gcc-10.patch |
22 |
@@ -0,0 +1,11 @@ |
23 |
+--- a/scripts/dtc/dtc-lexer.l |
24 |
++++ b/scripts/dtc/dtc-lexer.l |
25 |
+@@ -38,7 +38,7 @@ LINECOMMENT "//".*\n |
26 |
+ #include "srcpos.h" |
27 |
+ #include "dtc-parser.tab.h" |
28 |
+ |
29 |
+-YYLTYPE yylloc; |
30 |
++extern YYLTYPE yylloc; |
31 |
+ extern bool treesource_error; |
32 |
+ |
33 |
+ /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ |
34 |
|
35 |
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 |
36 |
index 6deafb7f05c..798ff7a240b 100644 |
37 |
--- a/dev-embedded/u-boot-tools/u-boot-tools-2020.01.ebuild |
38 |
+++ b/dev-embedded/u-boot-tools/u-boot-tools-2020.01.ebuild |
39 |
@@ -20,6 +20,10 @@ DEPEND=" |
40 |
sys-devel/bison |
41 |
" |
42 |
|
43 |
+PATCHES=( |
44 |
+ "${FILESDIR}"/${P}-gcc-10.patch |
45 |
+) |
46 |
+ |
47 |
S=${WORKDIR}/${MY_P} |
48 |
|
49 |
src_compile() { |