1 |
commit: 45de522eb99a6a1cc619ffb1f69b748133da347b |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Mon Dec 28 14:15:33 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 14:15:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45de522e |
7 |
|
8 |
dev-embedded/openocd: Fix build with gcc-10 |
9 |
|
10 |
* Drop unused eclasses |
11 |
|
12 |
Closes: https://bugs.gentoo.org/722640 |
13 |
Package-Manager: Portage-3.0.9, Repoman-3.0.1 |
14 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
15 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
16 |
|
17 |
.../openocd/files/openocd-0.10.0-fno-common.patch | 11 ++ |
18 |
dev-embedded/openocd/openocd-0.10.0-r1.ebuild | 125 +++++++-------------- |
19 |
2 files changed, 52 insertions(+), 84 deletions(-) |
20 |
|
21 |
diff --git a/dev-embedded/openocd/files/openocd-0.10.0-fno-common.patch b/dev-embedded/openocd/files/openocd-0.10.0-fno-common.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..c924b2f8fec |
24 |
--- /dev/null |
25 |
+++ b/dev-embedded/openocd/files/openocd-0.10.0-fno-common.patch |
26 |
@@ -0,0 +1,11 @@ |
27 |
+--- a/src/jtag/drivers/bitbang.h |
28 |
++++ b/src/jtag/drivers/bitbang.h |
29 |
+@@ -35,7 +35,7 @@ struct bitbang_interface { |
30 |
+ void (*swdio_drive)(bool on); |
31 |
+ }; |
32 |
+ |
33 |
+-const struct swd_driver bitbang_swd; |
34 |
++extern const struct swd_driver bitbang_swd; |
35 |
+ |
36 |
+ extern bool swd_mode; |
37 |
+ |
38 |
|
39 |
diff --git a/dev-embedded/openocd/openocd-0.10.0-r1.ebuild b/dev-embedded/openocd/openocd-0.10.0-r1.ebuild |
40 |
index 1934a0ba1a0..14fbf084e90 100644 |
41 |
--- a/dev-embedded/openocd/openocd-0.10.0-r1.ebuild |
42 |
+++ b/dev-embedded/openocd/openocd-0.10.0-r1.ebuild |
43 |
@@ -1,14 +1,13 @@ |
44 |
-# Copyright 1999-2019 Gentoo Authors |
45 |
+# Copyright 1999-2020 Gentoo Authors |
46 |
# Distributed under the terms of the GNU General Public License v2 |
47 |
|
48 |
-EAPI="7" |
49 |
+EAPI=7 |
50 |
|
51 |
-inherit eutils multilib flag-o-matic toolchain-funcs udev |
52 |
+inherit udev |
53 |
|
54 |
-# One ebuild to rule them all |
55 |
if [[ ${PV} == *9999 ]] ; then |
56 |
inherit autotools git-r3 |
57 |
- EGIT_REPO_URI="https://git.code.sf.net/p/${PN}/code" |
58 |
+ EGIT_REPO_URI=" https://repo.or.cz/openocd.git" |
59 |
else |
60 |
MY_PV="${PV/_/-}" |
61 |
MY_P="${PN}-${MY_PV}" |
62 |
@@ -36,9 +35,10 @@ RDEPEND=" |
63 |
) |
64 |
ftdi? ( dev-embedded/libftdi:= )" |
65 |
|
66 |
-DEPEND="${RDEPEND} |
67 |
- virtual/pkgconfig" |
68 |
-[[ ${PV} == "9999" ]] && DEPEND+=" >=sys-apps/texinfo-5" #549946 |
69 |
+DEPEND="${RDEPEND}" |
70 |
+BDEPEND="virtual/pkgconfig" |
71 |
+ |
72 |
+PATCHES=( "${FILESDIR}"/${P}-fno-common.patch ) |
73 |
|
74 |
PATCHES=( |
75 |
"${FILESDIR}/${P}-gcc10.patch" |
76 |
@@ -47,99 +47,56 @@ PATCHES=( |
77 |
src_prepare() { |
78 |
default |
79 |
|
80 |
- if [[ ${PV} == "9999" ]] ; then |
81 |
+ if [[ ${PV} == *9999 ]] ; then |
82 |
AT_NO_RECURSIVE=yes eautoreconf |
83 |
fi |
84 |
} |
85 |
|
86 |
src_configure() { |
87 |
- # Here are some defaults |
88 |
local myconf=( |
89 |
- --enable-buspirate |
90 |
- --disable-werror |
91 |
- --disable-internal-jimtcl |
92 |
- --disable-internal-libjaylink |
93 |
--enable-amtjtagaccel |
94 |
- --enable-ep93xx |
95 |
+ --enable-arm-jtag-ew |
96 |
--enable-at91rm9200 |
97 |
+ --enable-bcm2835gpio |
98 |
+ --enable-buspirate |
99 |
+ --enable-ep93xx |
100 |
--enable-gw16012 |
101 |
- --enable-arm-jtag-ew |
102 |
--enable-sysfsgpio |
103 |
- --enable-bcm2835gpio |
104 |
+ --disable-internal-jimtcl |
105 |
+ --disable-internal-libjaylink |
106 |
+ --disable-werror |
107 |
+ $(use_enable cmsis-dap) |
108 |
+ $(use_enable dummy) |
109 |
+ $(use_enable ftdi openjtag) |
110 |
+ $(use_enable ftdi presto) |
111 |
+ $(use_enable ftdi usb-blaster) |
112 |
+ $(use_enable jlink) |
113 |
+ $(use_enable parport) |
114 |
+ $(use_enable parport parport_ppdev) |
115 |
+ $(use_enable usb aice) |
116 |
+ $(use_enable usb armjtagew) |
117 |
+ $(use_enable usb ftdi) |
118 |
+ $(use_enable usb osbdm) |
119 |
+ $(use_enable usb opendous) |
120 |
+ $(use_enable usb rlink) |
121 |
+ $(use_enable usb stlink) |
122 |
+ $(use_enable usb ti-icdi) |
123 |
+ $(use_enable usb usbprog) |
124 |
+ $(use_enable usb usb-blaster-2) |
125 |
+ $(use_enable usb ulink) |
126 |
+ $(use_enable usb vsllink) |
127 |
+ $(use_enable verbose-io verbose-jtag-io) |
128 |
+ $(use_enable verbose-io verbose-usb-io) |
129 |
+ $(use_enable verbose-io verbose_usb_comms) |
130 |
) |
131 |
|
132 |
- # Adapters requiring usb/libusb-1.X support |
133 |
- if use usb; then |
134 |
- myconf+=( |
135 |
- --enable-aice |
136 |
- --enable-usb-blaster-2 |
137 |
- --enable-ftdi |
138 |
- --enable-ti-icdi |
139 |
- --enable-ulink |
140 |
- --enable-osbdm |
141 |
- --enable-opendous |
142 |
- --enable-usbprog |
143 |
- --enable-rlink |
144 |
- --enable-stlink |
145 |
- --enable-vsllink |
146 |
- --enable-armjtagew |
147 |
- $(use_enable verbose-io verbose-usb-io) |
148 |
- $(use_enable verbose-io verbose_usb_comms) |
149 |
- ) |
150 |
- else |
151 |
- myconf+=( |
152 |
- --disable-aice |
153 |
- --disable-usb-blaster-2 |
154 |
- --disable-ftdi |
155 |
- --disable-ti-icdi |
156 |
- --disable-ulink |
157 |
- --disable-osbdm |
158 |
- --disable-opendous |
159 |
- --disable-usbprog |
160 |
- --disable-rlink |
161 |
- --disable-stlink |
162 |
- --disable-vsllink |
163 |
- --disable-armjtagew |
164 |
- ) |
165 |
- fi |
166 |
- |
167 |
- if use jlink; then |
168 |
- myconf+=( |
169 |
- --enable-jlink |
170 |
- ) |
171 |
- else |
172 |
- myconf+=( |
173 |
- --disable-jlink |
174 |
- ) |
175 |
- fi |
176 |
- |
177 |
- if use ftdi; then |
178 |
- myconf+=( |
179 |
- --enable-usb-blaster |
180 |
- --enable-openjtag |
181 |
- --enable-presto |
182 |
- ) |
183 |
- else |
184 |
- myconf+=( |
185 |
- --disable-openjtag |
186 |
- --disable-presto |
187 |
- --disable-usb-blaster |
188 |
- ) |
189 |
- fi |
190 |
- |
191 |
- econf \ |
192 |
- $(use_enable dummy) \ |
193 |
- $(use_enable cmsis-dap) \ |
194 |
- $(use_enable parport) \ |
195 |
- $(use_enable parport parport_ppdev) \ |
196 |
- $(use_enable verbose-io verbose-jtag-io) \ |
197 |
- "${myconf[@]}" |
198 |
+ econf "${myconf[@]}" |
199 |
} |
200 |
|
201 |
src_install() { |
202 |
default |
203 |
dostrip /usr/bin |
204 |
- udev_dorules "${D}"/usr/share/${PN}/contrib/*.rules |
205 |
+ udev_dorules "${ED}"/usr/share/${PN}/contrib/*.rules |
206 |
} |
207 |
|
208 |
pkg_postinst() { |