Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/bitcoind/files/, net-p2p/bitcoind/
Date: Tue, 23 Oct 2018 20:38:59
Message-Id: 1540327107.3c847a77d54b0910d52d4852859651fa49510eb3.vdupras@gentoo
1 commit: 3c847a77d54b0910d52d4852859651fa49510eb3
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 23 20:35:00 2018 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 23 20:38:27 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c847a77
7
8 net-p2p/bitcoind: 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/bitcoind/Manifest | 2 -
15 net-p2p/bitcoind/bitcoind-0.15.1.ebuild | 167 ---------------------
16 .../files/bitcoind-0.15.1-test-build-fix.patch | 24 ---
17 .../files/bitcoind-0.15.1-test-util-fix.patch | 15 --
18 4 files changed, 208 deletions(-)
19
20 diff --git a/net-p2p/bitcoind/Manifest b/net-p2p/bitcoind/Manifest
21 index 8c6c2a5d72d..443491598dd 100644
22 --- a/net-p2p/bitcoind/Manifest
23 +++ b/net-p2p/bitcoind/Manifest
24 @@ -1,4 +1,2 @@
25 -DIST bitcoin-0.15.1.knots20171111.patches.tar.xz 443024 BLAKE2B 5010c8d0f6a0bc8cd22ca7d7c73d9e4e689e369f0ba39b59f62fa6b6af3dcf938dfc87d33d3fe595a6e54d99734277a34af068dc29a6e984c76d529fbbe2f383 SHA512 455fadeac6ad57be111104680ec6939d6bf235eb49cde89b9716d36f6914c255b1b69cdea459d89b1bbca56099e793be0c8d7aacf592a9d78495068297bb5890
26 DIST bitcoin-0.16.3.knots20180918.patches.tar.xz 466344 BLAKE2B c45b96513e4b6317e6a2a55cc3b47302fbe56fb87717ae0197010694013331b5d071b85a11a73c76f08f39e9f0294d3475e89ee63272047df83893de4dbaa390 SHA512 2c3540acc668aeef4b8f01774219736d95395201ddeaccaf70e0bad4a89f05cdd5ffaf630bae0577656efb3580fae92ce0ee4bb1a720ea757ca59e3fd66e1893
27 -DIST bitcoin-v0.15.1.tar.gz 7550228 BLAKE2B 0cbb7d0e9d0e5e8eb33502a28289c3f9c86b7c531ed179f7e3e8b601a69a423fa736238a2caae890fd8850eb505533995e578e676860a4014922fbc238185ebb SHA512 a09b6cb64a1649d11e3fd6deeb13a07b1bf4bed504a2fc1c585919459ca8ac1af8e5ecc89dee487359e831a8f12625d54f408f95bb341033d6380b82c290c0d9
28 DIST bitcoin-v0.16.3.tar.gz 6658712 BLAKE2B 2c20b32ea30aed264115d1bd336b62fa28de69cbf116385508718efd7ff22537c3bd402c0965e0f6ddd8e79fc8b51f388f52f885847d36207a24523e927ca63e SHA512 2da25f56fe9b1f5a81815c14e70ff1a69ec15f742424e2c24d71303a71d57c8050dea5d5ba57425bbe0a01a3995ad9b30f0beea5dbafd1632a627cd3fd9a984d
29
30 diff --git a/net-p2p/bitcoind/bitcoind-0.15.1.ebuild b/net-p2p/bitcoind/bitcoind-0.15.1.ebuild
31 deleted file mode 100644
32 index c4ed72826f0..00000000000
33 --- a/net-p2p/bitcoind/bitcoind-0.15.1.ebuild
34 +++ /dev/null
35 @@ -1,167 +0,0 @@
36 -# Copyright 2010-2018 Gentoo Foundation
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=6
40 -
41 -DB_VER="4.8"
42 -inherit autotools bash-completion-r1 db-use systemd user
43 -
44 -MyPV="${PV/_/}"
45 -MyPN="bitcoin"
46 -MyP="${MyPN}-${MyPV}"
47 -BITCOINCORE_COMMITHASH="7b57bc998f334775b50ebc8ca5e78ca728db4c58"
48 -KNOTS_PV="${PV}.knots20171111"
49 -KNOTS_P="${MyPN}-${KNOTS_PV}"
50 -
51 -IUSE="+asm +bitcoin_policy_rbf examples knots libressl test upnp +wallet zeromq"
52 -
53 -DESCRIPTION="Original Bitcoin crypto-currency wallet for automated services"
54 -HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/"
55 -LICENSE="MIT"
56 -SLOT="0"
57 -KEYWORDS="amd64 arm ~arm64 ~ppc x86 ~amd64-linux ~x86-linux"
58 -
59 -SRC_URI="
60 - https://github.com/${MyPN}/${MyPN}/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> ${MyPN}-v${PV}.tar.gz
61 - https://bitcoinknots.org/files/0.15.x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz
62 -"
63 -CORE_DESC="https://bitcoincore.org/en/2017/11/11/release-${PV}/"
64 -KNOTS_DESC="https://bitcoinknots.org/files/0.15.x/${KNOTS_PV}/${KNOTS_P}.desc.html"
65 -
66 -RDEPEND="
67 - !libressl? ( dev-libs/openssl:0=[-bindist] )
68 - libressl? ( dev-libs/libressl:0= )
69 - dev-libs/libevent
70 - >=dev-libs/libsecp256k1-0.0.0_pre20151118[recovery]
71 - dev-libs/univalue
72 - >=dev-libs/boost-1.52.0:=[threads(+)]
73 - upnp? ( >=net-libs/miniupnpc-1.9.20150916 )
74 - wallet? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx] )
75 - zeromq? ( net-libs/zeromq )
76 - virtual/bitcoin-leveldb
77 -"
78 -DEPEND="${RDEPEND}"
79 -
80 -DOCS=( doc/bips.md doc/files.md doc/reduce-traffic.md doc/release-notes.md )
81 -
82 -S="${WORKDIR}/${MyPN}-${BITCOINCORE_COMMITHASH}"
83 -
84 -pkg_pretend() {
85 - if use knots; then
86 - einfo "You are building ${PN} from Bitcoin Knots."
87 - einfo "For more information, see ${KNOTS_DESC}"
88 - else
89 - einfo "You are building ${PN} from Bitcoin Core."
90 - einfo "For more information, see ${CORE_DESC}"
91 - fi
92 - if use bitcoin_policy_rbf; then
93 - einfo "Replace By Fee policy is enabled: Your node will preferentially mine and relay transactions paying the highest fee, regardless of receive order."
94 - else
95 - 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."
96 - fi
97 -}
98 -
99 -pkg_setup() {
100 - enewgroup bitcoin
101 - enewuser bitcoin -1 -1 /var/lib/bitcoin bitcoin
102 -}
103 -
104 -KNOTS_PATCH() { echo "${WORKDIR}/${KNOTS_P}.patches/${KNOTS_P}.$@.patch"; }
105 -
106 -src_prepare() {
107 - sed -i 's/runscript/openrc-run/' contrib/init/${PN}.openrc || die
108 -
109 - sed -i 's/^\(complete -F _bitcoind bitcoind\) bitcoin-qt$/\1/' contrib/${PN}.bash-completion || die
110 -
111 - eapply "$(KNOTS_PATCH syslibs)"
112 - eapply "${FILESDIR}/${PN}-0.15.1-test-util-fix.patch"
113 -
114 - if use knots; then
115 - eapply "$(KNOTS_PATCH f)"
116 - eapply "$(KNOTS_PATCH branding)"
117 - eapply "$(KNOTS_PATCH ts)"
118 - eapply "${FILESDIR}/${PN}-0.15.1-test-build-fix.patch"
119 - fi
120 -
121 - eapply_user
122 -
123 - if ! use bitcoin_policy_rbf; then
124 - sed -i 's/\(DEFAULT_ENABLE_REPLACEMENT = \)true/\1false/' src/validation.h || die
125 - fi
126 -
127 - echo '#!/bin/true' >share/genbuild.sh || die
128 - mkdir -p src/obj || die
129 - echo "#define BUILD_SUFFIX gentoo${PVR#${PV}}" >src/obj/build.h || die
130 -
131 - eautoreconf
132 - rm -r src/leveldb src/secp256k1 || die
133 -}
134 -
135 -src_configure() {
136 - local my_econf=(
137 - $(use_enable asm experimental-asm)
138 - --without-qtdbus
139 - --with-libevent
140 - --without-qrencode
141 - $(use_with upnp miniupnpc)
142 - $(use_enable upnp upnp-default)
143 - $(use_enable test tests)
144 - $(use_enable wallet)
145 - $(use_enable zeromq zmq)
146 - --with-daemon
147 - --disable-util-cli
148 - --disable-util-tx
149 - --disable-bench
150 - --without-libs
151 - --without-gui
152 - --disable-ccache
153 - --disable-static
154 - --with-system-leveldb
155 - --with-system-libsecp256k1
156 - --with-system-univalue
157 - )
158 - econf "${my_econf[@]}"
159 -}
160 -
161 -src_install() {
162 - default
163 -
164 - rm -f "${ED%/}/usr/bin/test_bitcoin" || die
165 -
166 - insinto /etc/bitcoin
167 - newins "${FILESDIR}/bitcoin.conf" bitcoin.conf
168 - fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf
169 - fperms 600 /etc/bitcoin/bitcoin.conf
170 -
171 - newconfd "contrib/init/bitcoind.openrcconf" ${PN}
172 - newinitd "contrib/init/bitcoind.openrc" ${PN}
173 - systemd_newunit "${FILESDIR}/bitcoind.service-r1" "bitcoind.service"
174 -
175 - keepdir /var/lib/bitcoin/.bitcoin
176 - fperms 700 /var/lib/bitcoin
177 - fowners bitcoin:bitcoin /var/lib/bitcoin/
178 - fowners bitcoin:bitcoin /var/lib/bitcoin/.bitcoin
179 - dosym ../../../../etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf
180 -
181 - dodoc doc/REST-interface.md doc/tor.md
182 - doman "${FILESDIR}/bitcoin.conf.5"
183 -
184 - use zeromq && dodoc doc/zmq.md
185 -
186 - newbashcomp contrib/${PN}.bash-completion ${PN}
187 -
188 - if use examples; then
189 - docinto examples
190 - dodoc -r contrib/{linearize,qos,tidy_datadir.sh}
191 - use zeromq && dodoc -r contrib/zmq
192 - fi
193 -
194 - insinto /etc/logrotate.d
195 - newins "${FILESDIR}/bitcoind.logrotate-r1" bitcoind
196 -}
197 -
198 -pkg_postinst() {
199 - einfo "To have ${PN} automatically use Tor when it's running, be sure your 'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup correctly, and:"
200 - einfo "- if using the init script: add the 'bitcoin' user to the 'tor' user group"
201 - einfo" - if running bitcoind directly: add that user to the 'tor' user group"
202 -}
203
204 diff --git a/net-p2p/bitcoind/files/bitcoind-0.15.1-test-build-fix.patch b/net-p2p/bitcoind/files/bitcoind-0.15.1-test-build-fix.patch
205 deleted file mode 100644
206 index 3d953d9c0a9..00000000000
207 --- a/net-p2p/bitcoind/files/bitcoind-0.15.1-test-build-fix.patch
208 +++ /dev/null
209 @@ -1,24 +0,0 @@
210 -commit 91976ef251bbb693db8c4e36b62ceca1f6417413 (HEAD)
211 -Author: Luke Dashjr <luke-jr+git@×××××××.org>
212 -Date: Tue Jan 23 03:37:10 2018 +0000
213 -
214 - Bugfix: script_tests: Only define debugger_cbs if HAVE_CONSENSUS_LIB
215 -
216 -diff --git a/src/test/script_tests.cpp b/src/test/script_tests.cpp
217 -index 7826cdc1b3..013846811b 100644
218 ---- a/src/test/script_tests.cpp
219 -+++ b/src/test/script_tests.cpp
220 -@@ -186,11 +186,13 @@ static void script_tests_debugger_ScriptEOF(void *userdata, struct bitcoinconsen
221 - ++data->eof;
222 - }
223 -
224 -+#if defined(HAVE_CONSENSUS_LIB)
225 - static const struct bitcoinconsensus_script_debugger_callbacks debugger_cbs = {
226 - .ScriptBegin = script_tests_debugger_ScriptBegin,
227 - .ScriptPreStep = script_tests_debugger_ScriptPreStep,
228 - .ScriptEOF = script_tests_debugger_ScriptEOF,
229 - };
230 -+#endif
231 -
232 - void DoTest(const CScript& scriptPubKey, const CScript& scriptSig, const CScriptWitness& scriptWitness, int flags, const std::string& message, int scriptError, CAmount nValue = 0)
233 - {
234
235 diff --git a/net-p2p/bitcoind/files/bitcoind-0.15.1-test-util-fix.patch b/net-p2p/bitcoind/files/bitcoind-0.15.1-test-util-fix.patch
236 deleted file mode 100644
237 index 60fc9d84905..00000000000
238 --- a/net-p2p/bitcoind/files/bitcoind-0.15.1-test-util-fix.patch
239 +++ /dev/null
240 @@ -1,15 +0,0 @@
241 -diff --git a/src/Makefile.test.include b/src/Makefile.test.include
242 -index 147add3eb5..308b1c88c0 100644
243 ---- a/src/Makefile.test.include
244 -+++ b/src/Makefile.test.include
245 -@@ -151,8 +151,10 @@ bitcoin_test_clean : FORCE
246 - rm -f $(CLEAN_BITCOIN_TEST) $(test_test_bitcoin_OBJECTS) $(TEST_BINARY)
247 -
248 - check-local:
249 -+if BUILD_BITCOIN_TX
250 - @echo "Running test/util/bitcoin-util-test.py..."
251 - $(PYTHON) $(top_builddir)/test/util/bitcoin-util-test.py
252 -+endif
253 - if EMBEDDED_LIBSECP256K1
254 - $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C secp256k1 check
255 - endif