1 |
commit: 1b957e3983c5b664df340102d7311e266244f019 |
2 |
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 23 20:31:22 2018 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 23 20:38:26 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b957e39 |
7 |
|
8 |
net-p2p/bitcoin-qt: remove old and vulnerable |
9 |
|
10 |
Bug: https://bugs.gentoo.org/666669 |
11 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
13 |
|
14 |
net-p2p/bitcoin-qt/Manifest | 2 - |
15 |
net-p2p/bitcoin-qt/bitcoin-qt-0.15.1.ebuild | 255 --------------------- |
16 |
.../files/bitcoin-qt-0.15.1-test-build-fix.patch | 24 -- |
17 |
.../files/bitcoin-qt-0.15.1-test-util-fix.patch | 15 -- |
18 |
net-p2p/bitcoin-qt/metadata.xml | 2 - |
19 |
5 files changed, 298 deletions(-) |
20 |
|
21 |
diff --git a/net-p2p/bitcoin-qt/Manifest b/net-p2p/bitcoin-qt/Manifest |
22 |
index 8c6c2a5d72d..443491598dd 100644 |
23 |
--- a/net-p2p/bitcoin-qt/Manifest |
24 |
+++ b/net-p2p/bitcoin-qt/Manifest |
25 |
@@ -1,4 +1,2 @@ |
26 |
-DIST bitcoin-0.15.1.knots20171111.patches.tar.xz 443024 BLAKE2B 5010c8d0f6a0bc8cd22ca7d7c73d9e4e689e369f0ba39b59f62fa6b6af3dcf938dfc87d33d3fe595a6e54d99734277a34af068dc29a6e984c76d529fbbe2f383 SHA512 455fadeac6ad57be111104680ec6939d6bf235eb49cde89b9716d36f6914c255b1b69cdea459d89b1bbca56099e793be0c8d7aacf592a9d78495068297bb5890 |
27 |
DIST bitcoin-0.16.3.knots20180918.patches.tar.xz 466344 BLAKE2B c45b96513e4b6317e6a2a55cc3b47302fbe56fb87717ae0197010694013331b5d071b85a11a73c76f08f39e9f0294d3475e89ee63272047df83893de4dbaa390 SHA512 2c3540acc668aeef4b8f01774219736d95395201ddeaccaf70e0bad4a89f05cdd5ffaf630bae0577656efb3580fae92ce0ee4bb1a720ea757ca59e3fd66e1893 |
28 |
-DIST bitcoin-v0.15.1.tar.gz 7550228 BLAKE2B 0cbb7d0e9d0e5e8eb33502a28289c3f9c86b7c531ed179f7e3e8b601a69a423fa736238a2caae890fd8850eb505533995e578e676860a4014922fbc238185ebb SHA512 a09b6cb64a1649d11e3fd6deeb13a07b1bf4bed504a2fc1c585919459ca8ac1af8e5ecc89dee487359e831a8f12625d54f408f95bb341033d6380b82c290c0d9 |
29 |
DIST bitcoin-v0.16.3.tar.gz 6658712 BLAKE2B 2c20b32ea30aed264115d1bd336b62fa28de69cbf116385508718efd7ff22537c3bd402c0965e0f6ddd8e79fc8b51f388f52f885847d36207a24523e927ca63e SHA512 2da25f56fe9b1f5a81815c14e70ff1a69ec15f742424e2c24d71303a71d57c8050dea5d5ba57425bbe0a01a3995ad9b30f0beea5dbafd1632a627cd3fd9a984d |
30 |
|
31 |
diff --git a/net-p2p/bitcoin-qt/bitcoin-qt-0.15.1.ebuild b/net-p2p/bitcoin-qt/bitcoin-qt-0.15.1.ebuild |
32 |
deleted file mode 100644 |
33 |
index 3e86deab6af..00000000000 |
34 |
--- a/net-p2p/bitcoin-qt/bitcoin-qt-0.15.1.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,255 +0,0 @@ |
37 |
-# Copyright 2010-2018 Gentoo Foundation |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=6 |
41 |
- |
42 |
-DB_VER="4.8" |
43 |
-inherit autotools bash-completion-r1 db-use gnome2-utils xdg-utils |
44 |
- |
45 |
-MyPV="${PV/_/}" |
46 |
-MyPN="bitcoin" |
47 |
-MyP="${MyPN}-${MyPV}" |
48 |
-BITCOINCORE_COMMITHASH="7b57bc998f334775b50ebc8ca5e78ca728db4c58" |
49 |
-KNOTS_PV="${PV}.knots20171111" |
50 |
-KNOTS_P="${MyPN}-${KNOTS_PV}" |
51 |
- |
52 |
-IUSE="+asm +bip70 +bitcoin_policy_rbf dbus kde +libevent knots libressl +qrcode +http test +tor upnp +wallet zeromq" |
53 |
-LANGS="af af:af_ZA am ar be:be_BY bg bg:bg_BG bn bs ca ca@valencia ca:ca_ES cs cy da de de:de_DE el el:el_GR en en_AU en_GB en_US eo es es_419 es_AR es_CL es_CO es_DO es_ES es_MX es_UY es_VE et et:et_EE eu:eu_ES fa fa:fa_IR fi fr fr_CA fr:fr_FR gl he he:he_IL hi:hi_IN hr hu hu:hu_HU id id:id_ID is it it:it_IT ja ja:ja_JP ka kk:kk_KZ ko:ko_KR ku:ku_IQ ky la lt lv:lv_LV mk:mk_MK mn ms ms:ms_MY my nb nb:nb_NO ne nl nl:nl_NL pam pl pl:pl_PL pt pt_BR pt_PT ro ro:ro_RO ru ru:ru_RU si sk sl:sl_SI sn sq sr sr-Latn:sr@latin sv ta te th th:th_TH tr tr:tr_TR uk ur_PK uz@Cyrl vi vi:vi_VN zh zh_CN zh_HK zh_TW" |
54 |
-KNOTS_LANGS="am hu_HU is ms pl_PL pt sn" |
55 |
- |
56 |
-DESCRIPTION="An end-user Qt GUI for the Bitcoin crypto-currency" |
57 |
-HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/" |
58 |
-LICENSE="MIT" |
59 |
-SLOT="0" |
60 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc x86 ~amd64-linux ~x86-linux" |
61 |
- |
62 |
-SRC_URI=" |
63 |
- https://github.com/${MyPN}/${MyPN}/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> ${MyPN}-v${PV}.tar.gz |
64 |
- https://bitcoinknots.org/files/0.15.x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz |
65 |
-" |
66 |
-CORE_DESC="https://bitcoincore.org/en/2017/11/11/release-${PV}/" |
67 |
-KNOTS_DESC="https://bitcoinknots.org/files/0.15.x/${KNOTS_PV}/${KNOTS_P}.desc.html" |
68 |
- |
69 |
-RDEPEND=" |
70 |
- !libressl? ( dev-libs/openssl:0=[-bindist] ) |
71 |
- libressl? ( dev-libs/libressl:0= ) |
72 |
- libevent? ( dev-libs/libevent ) |
73 |
- >=dev-libs/libsecp256k1-0.0.0_pre20151118[recovery] |
74 |
- dev-libs/univalue |
75 |
- >=dev-libs/boost-1.52.0:=[threads(+)] |
76 |
- upnp? ( >=net-libs/miniupnpc-1.9.20150916 ) |
77 |
- wallet? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx] ) |
78 |
- zeromq? ( net-libs/zeromq ) |
79 |
- virtual/bitcoin-leveldb |
80 |
- bip70? ( dev-libs/protobuf ) |
81 |
- qrcode? ( |
82 |
- media-gfx/qrencode |
83 |
- ) |
84 |
- dev-qt/qtcore:5 |
85 |
- dev-qt/qtgui:5 |
86 |
- dev-qt/qtnetwork:5 |
87 |
- dev-qt/qtwidgets:5 |
88 |
- dbus? ( |
89 |
- dev-qt/qtdbus:5 |
90 |
- ) |
91 |
-" |
92 |
-DEPEND="${RDEPEND} |
93 |
- dev-qt/linguist-tools:5 |
94 |
- knots? ( |
95 |
- gnome-base/librsvg |
96 |
- media-gfx/imagemagick[png] |
97 |
- ) |
98 |
-" |
99 |
-REQUIRED_USE=" |
100 |
- http? ( libevent ) tor? ( libevent ) libevent? ( http tor ) |
101 |
-" |
102 |
- |
103 |
-declare -A LANG2USE USE2LANGS |
104 |
-bitcoin_langs_prep() { |
105 |
- local lang l10n |
106 |
- for lang in ${LANGS}; do |
107 |
- l10n="${lang/:*/}" |
108 |
- l10n="${l10n/[@_]/-}" |
109 |
- lang="${lang/*:/}" |
110 |
- LANG2USE["${lang}"]="${l10n}" |
111 |
- USE2LANGS["${l10n}"]+=" ${lang}" |
112 |
- done |
113 |
-} |
114 |
-bitcoin_langs_prep |
115 |
- |
116 |
-bitcoin_lang2use() { |
117 |
- local l |
118 |
- for l; do |
119 |
- echo l10n_${LANG2USE["${l}"]} |
120 |
- done |
121 |
-} |
122 |
- |
123 |
-IUSE+=" $(bitcoin_lang2use ${!LANG2USE[@]})" |
124 |
- |
125 |
-bitcoin_lang_requireduse() { |
126 |
- local lang l10n knots_exclusive |
127 |
- for l10n in ${!USE2LANGS[@]}; do |
128 |
- for lang in ${USE2LANGS["${l10n}"]}; do |
129 |
- if ! has $lang $KNOTS_LANGS; then |
130 |
- continue 2 |
131 |
- fi |
132 |
- done |
133 |
- echo "l10n_${l10n}? ( knots )" |
134 |
- done |
135 |
-} |
136 |
-REQUIRED_USE+=" $(bitcoin_lang_requireduse)" |
137 |
- |
138 |
-DOCS=( doc/bips.md doc/files.md doc/release-notes.md ) |
139 |
- |
140 |
-S="${WORKDIR}/${MyPN}-${BITCOINCORE_COMMITHASH}" |
141 |
- |
142 |
-pkg_pretend() { |
143 |
- if use knots; then |
144 |
- einfo "You are building ${PN} from Bitcoin Knots." |
145 |
- einfo "For more information, see ${KNOTS_DESC}" |
146 |
- else |
147 |
- einfo "You are building ${PN} from Bitcoin Core." |
148 |
- einfo "For more information, see ${CORE_DESC}" |
149 |
- fi |
150 |
- if use bitcoin_policy_rbf; then |
151 |
- einfo "Replace By Fee policy is enabled: Your node will preferentially mine and relay transactions paying the highest fee, regardless of receive order." |
152 |
- else |
153 |
- einfo "Replace By Fee policy is disabled: Your node will only accept the first transaction seen consuming a conflicting input, regardless of fee offered by later ones." |
154 |
- fi |
155 |
-} |
156 |
- |
157 |
-KNOTS_PATCH() { echo "${WORKDIR}/${KNOTS_P}.patches/${KNOTS_P}.$@.patch"; } |
158 |
- |
159 |
-src_prepare() { |
160 |
- sed -i 's/^\(complete -F _bitcoind \)bitcoind \(bitcoin-qt\)$/\1\2/' contrib/bitcoind.bash-completion || die |
161 |
- |
162 |
- eapply "$(KNOTS_PATCH syslibs)" |
163 |
- eapply "${FILESDIR}/${PN}-0.15.1-test-util-fix.patch" |
164 |
- |
165 |
- if use knots; then |
166 |
- eapply "$(KNOTS_PATCH f)" |
167 |
- eapply "$(KNOTS_PATCH branding)" |
168 |
- eapply "$(KNOTS_PATCH ts)" |
169 |
- eapply "${FILESDIR}/${PN}-0.15.1-test-build-fix.patch" |
170 |
- fi |
171 |
- |
172 |
- eapply_user |
173 |
- |
174 |
- if ! use bitcoin_policy_rbf; then |
175 |
- sed -i 's/\(DEFAULT_ENABLE_REPLACEMENT = \)true/\1false/' src/validation.h || die |
176 |
- fi |
177 |
- |
178 |
- echo '#!/bin/true' >share/genbuild.sh || die |
179 |
- mkdir -p src/obj || die |
180 |
- echo "#define BUILD_SUFFIX gentoo${PVR#${PV}}" >src/obj/build.h || die |
181 |
- |
182 |
- sed -i 's/^\(Icon=\).*$/\1bitcoin-qt/;s/^\(Categories=.*\)$/\1P2P;Network;Qt;/' contrib/debian/bitcoin-qt.desktop || die |
183 |
- |
184 |
- local filt= yeslang= nolang= lan ts x |
185 |
- |
186 |
- for lan in $LANGS; do |
187 |
- lan="${lan/*:/}" |
188 |
- if [ ! -e src/qt/locale/bitcoin_$lan.ts ]; then |
189 |
- if has $lan $KNOTS_LANGS && ! use knots; then |
190 |
- # Expected |
191 |
- continue |
192 |
- fi |
193 |
- die "Language '$lan' no longer supported. Ebuild needs update." |
194 |
- fi |
195 |
- done |
196 |
- |
197 |
- for ts in src/qt/locale/*.ts |
198 |
- do |
199 |
- x="${ts/*bitcoin_/}" |
200 |
- x="${x/.ts/}" |
201 |
- if ! use "$(bitcoin_lang2use "$x")"; then |
202 |
- nolang="$nolang $x" |
203 |
- rm "$ts" || die |
204 |
- filt="$filt\\|$x" |
205 |
- else |
206 |
- yeslang="$yeslang $x" |
207 |
- fi |
208 |
- done |
209 |
- filt="bitcoin_\\(${filt:2}\\)\\.\(qm\|ts\)" |
210 |
- sed "/${filt}/d" -i 'src/qt/bitcoin_locale.qrc' || die |
211 |
- sed "s/locale\/${filt}/bitcoin.qrc/" -i 'src/Makefile.qt.include' || die |
212 |
- einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang" |
213 |
- |
214 |
- eautoreconf |
215 |
- rm -r src/leveldb src/secp256k1 || die |
216 |
-} |
217 |
- |
218 |
-src_configure() { |
219 |
- local my_econf=( |
220 |
- $(use_enable asm experimental-asm) |
221 |
- $(use_enable bip70) |
222 |
- $(use_with dbus qtdbus) |
223 |
- $(use_with libevent) |
224 |
- $(use_with qrcode qrencode) |
225 |
- $(use_with upnp miniupnpc) |
226 |
- $(use_enable upnp upnp-default) |
227 |
- $(use_enable test tests) |
228 |
- $(use_enable wallet) |
229 |
- $(use_enable zeromq zmq) |
230 |
- --with-gui=qt5 |
231 |
- --disable-util-cli |
232 |
- --disable-util-tx |
233 |
- --disable-bench |
234 |
- --without-libs |
235 |
- --without-daemon |
236 |
- --disable-ccache |
237 |
- --disable-static |
238 |
- --with-system-leveldb |
239 |
- --with-system-libsecp256k1 |
240 |
- --with-system-univalue |
241 |
- ) |
242 |
- econf "${my_econf[@]}" |
243 |
-} |
244 |
- |
245 |
-src_install() { |
246 |
- default |
247 |
- |
248 |
- rm -f "${ED%/}/usr/bin/test_bitcoin" || die |
249 |
- |
250 |
- insinto /usr/share/pixmaps |
251 |
- if use knots; then |
252 |
- newins "src/qt/res/rendered_icons/bitcoin.ico" "${PN}.ico" |
253 |
- else |
254 |
- newins "share/pixmaps/bitcoin.ico" "${PN}.ico" |
255 |
- fi |
256 |
- insinto /usr/share/applications |
257 |
- doins "contrib/debian/bitcoin-qt.desktop" |
258 |
- |
259 |
- use libevent && dodoc doc/REST-interface.md doc/tor.md |
260 |
- |
261 |
- use zeromq && dodoc doc/zmq.md |
262 |
- |
263 |
- newbashcomp contrib/bitcoind.bash-completion ${PN} |
264 |
- |
265 |
- if use kde; then |
266 |
- insinto /usr/share/kde4/services |
267 |
- doins contrib/debian/bitcoin-qt.protocol |
268 |
- dosym "../kde4/services/bitcoin-qt.protocol" "/usr/share/kservices5/bitcoin-qt.protocol" |
269 |
- fi |
270 |
-} |
271 |
- |
272 |
-pkg_preinst() { |
273 |
- gnome2_icon_savelist |
274 |
-} |
275 |
- |
276 |
-update_caches() { |
277 |
- gnome2_icon_cache_update |
278 |
- xdg_desktop_database_update |
279 |
-} |
280 |
- |
281 |
-pkg_postinst() { |
282 |
- update_caches |
283 |
- |
284 |
- if use tor; then |
285 |
- einfo "To have ${PN} automatically use Tor when it's running, be sure your 'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup correctly, and add your that user to the 'tor' user group" |
286 |
- fi |
287 |
-} |
288 |
- |
289 |
-pkg_postrm() { |
290 |
- update_caches |
291 |
-} |
292 |
|
293 |
diff --git a/net-p2p/bitcoin-qt/files/bitcoin-qt-0.15.1-test-build-fix.patch b/net-p2p/bitcoin-qt/files/bitcoin-qt-0.15.1-test-build-fix.patch |
294 |
deleted file mode 100644 |
295 |
index 3d953d9c0a9..00000000000 |
296 |
--- a/net-p2p/bitcoin-qt/files/bitcoin-qt-0.15.1-test-build-fix.patch |
297 |
+++ /dev/null |
298 |
@@ -1,24 +0,0 @@ |
299 |
-commit 91976ef251bbb693db8c4e36b62ceca1f6417413 (HEAD) |
300 |
-Author: Luke Dashjr <luke-jr+git@×××××××.org> |
301 |
-Date: Tue Jan 23 03:37:10 2018 +0000 |
302 |
- |
303 |
- Bugfix: script_tests: Only define debugger_cbs if HAVE_CONSENSUS_LIB |
304 |
- |
305 |
-diff --git a/src/test/script_tests.cpp b/src/test/script_tests.cpp |
306 |
-index 7826cdc1b3..013846811b 100644 |
307 |
---- a/src/test/script_tests.cpp |
308 |
-+++ b/src/test/script_tests.cpp |
309 |
-@@ -186,11 +186,13 @@ static void script_tests_debugger_ScriptEOF(void *userdata, struct bitcoinconsen |
310 |
- ++data->eof; |
311 |
- } |
312 |
- |
313 |
-+#if defined(HAVE_CONSENSUS_LIB) |
314 |
- static const struct bitcoinconsensus_script_debugger_callbacks debugger_cbs = { |
315 |
- .ScriptBegin = script_tests_debugger_ScriptBegin, |
316 |
- .ScriptPreStep = script_tests_debugger_ScriptPreStep, |
317 |
- .ScriptEOF = script_tests_debugger_ScriptEOF, |
318 |
- }; |
319 |
-+#endif |
320 |
- |
321 |
- void DoTest(const CScript& scriptPubKey, const CScript& scriptSig, const CScriptWitness& scriptWitness, int flags, const std::string& message, int scriptError, CAmount nValue = 0) |
322 |
- { |
323 |
|
324 |
diff --git a/net-p2p/bitcoin-qt/files/bitcoin-qt-0.15.1-test-util-fix.patch b/net-p2p/bitcoin-qt/files/bitcoin-qt-0.15.1-test-util-fix.patch |
325 |
deleted file mode 100644 |
326 |
index 60fc9d84905..00000000000 |
327 |
--- a/net-p2p/bitcoin-qt/files/bitcoin-qt-0.15.1-test-util-fix.patch |
328 |
+++ /dev/null |
329 |
@@ -1,15 +0,0 @@ |
330 |
-diff --git a/src/Makefile.test.include b/src/Makefile.test.include |
331 |
-index 147add3eb5..308b1c88c0 100644 |
332 |
---- a/src/Makefile.test.include |
333 |
-+++ b/src/Makefile.test.include |
334 |
-@@ -151,8 +151,10 @@ bitcoin_test_clean : FORCE |
335 |
- rm -f $(CLEAN_BITCOIN_TEST) $(test_test_bitcoin_OBJECTS) $(TEST_BINARY) |
336 |
- |
337 |
- check-local: |
338 |
-+if BUILD_BITCOIN_TX |
339 |
- @echo "Running test/util/bitcoin-util-test.py..." |
340 |
- $(PYTHON) $(top_builddir)/test/util/bitcoin-util-test.py |
341 |
-+endif |
342 |
- if EMBEDDED_LIBSECP256K1 |
343 |
- $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C secp256k1 check |
344 |
- endif |
345 |
|
346 |
diff --git a/net-p2p/bitcoin-qt/metadata.xml b/net-p2p/bitcoin-qt/metadata.xml |
347 |
index c3c11c51b20..f88446cdbbe 100644 |
348 |
--- a/net-p2p/bitcoin-qt/metadata.xml |
349 |
+++ b/net-p2p/bitcoin-qt/metadata.xml |
350 |
@@ -13,11 +13,9 @@ |
351 |
<flag name="asm">Enable assembly for optimization</flag> |
352 |
<flag name="bip70">Enable support for the BIP70 payment protocol</flag> |
353 |
<flag name="bitcoin_policy_rbf">Replace By Fee policy: Your node will preferentially mine and relay transactions paying the highest fee, regardless of receive order</flag> |
354 |
- <flag name="http">Enable support for the JSON-RPC and REST HTTP server (builtin net-p2p/bitcoind)</flag> |
355 |
<flag name="knots">Build enhanced Bitcoin Knots version, rather than Bitcoin Core</flag> |
356 |
<flag name="libevent">Use dev-libs/libevent (needed for JSON-RPC, REST, and Tor auto-configuration</flag> |
357 |
<flag name="qrcode">Enable generation of QR Codes for receiving payments</flag> |
358 |
- <flag name="tor">Enable automatic configuration of a Tor hidden service</flag> |
359 |
<flag name="upnp">Enable Universal Plug and Play</flag> |
360 |
<flag name="wallet">Enable wallet support</flag> |
361 |
<flag name="zeromq">Report blocks and transactions via zeromq</flag> |