Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/bitcoin-tx/files/
Date: Thu, 13 Oct 2016 09:00:43
Message-Id: 1476349121.608170290e846fdf2066a8f969c5f67da91dd31b.blueness@gentoo
1 commit: 608170290e846fdf2066a8f969c5f67da91dd31b
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Fri Oct 7 16:16:42 2016 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 13 08:58:41 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60817029
7
8 dev-util/bitcoin-tx: remove unused patches
9
10 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
11
12 .../bitcoin-tx/files/9999-sys_libsecp256k1.patch | 80 -------
13 dev-util/bitcoin-tx/files/9999-syslibs.patch | 253 ---------------------
14 2 files changed, 333 deletions(-)
15
16 diff --git a/dev-util/bitcoin-tx/files/9999-sys_libsecp256k1.patch b/dev-util/bitcoin-tx/files/9999-sys_libsecp256k1.patch
17 deleted file mode 100644
18 index 77ed106..00000000
19 --- a/dev-util/bitcoin-tx/files/9999-sys_libsecp256k1.patch
20 +++ /dev/null
21 @@ -1,80 +0,0 @@
22 -diff --git a/configure.ac b/configure.ac
23 -index 6784521..3598bab 100644
24 ---- a/configure.ac
25 -+++ b/configure.ac
26 -@@ -634,6 +634,12 @@ AC_ARG_WITH([daemon],
27 -
28 - BITCOIN_QT_INIT
29 -
30 -+PKG_CHECK_MODULES([libsecp256k1],[libsecp256k1],,[true])
31 -+AC_ARG_WITH([libsecp256k1-verify],[],[use_libsecp256k1=$withval],[use_libsecp256k1=yes])
32 -+if test "x$use_libsecp256k1" = "xyes"; then
33 -+ AC_DEFINE(USE_SECP256K1,1,[USE_SECP256K1])
34 -+fi
35 -+
36 - if test x$use_pkgconfig = xyes; then
37 -
38 - if test x"$PKG_CONFIG" = "x"; then
39 -@@ -869,9 +875,6 @@ PKGCONFIG_LIBDIR_TEMP="$PKG_CONFIG_LIBDIR"
40 - unset PKG_CONFIG_LIBDIR
41 - PKG_CONFIG_LIBDIR="$PKGCONFIG_LIBDIR_TEMP"
42 -
43 --ac_configure_args="${ac_configure_args} --disable-shared --with-pic"
44 --AC_CONFIG_SUBDIRS([src/secp256k1])
45 --
46 - AC_OUTPUT
47 -
48 - dnl Taken from https://wiki.debian.org/RpathIssue
49 -diff --git a/src/Makefile.am b/src/Makefile.am
50 -index 0d45203..3a44a16 100644
51 ---- a/src/Makefile.am
52 -+++ b/src/Makefile.am
53 -@@ -1,4 +1,3 @@
54 --DIST_SUBDIRS = secp256k1
55 - AM_LDFLAGS = $(PTHREAD_CFLAGS) $(LIBTOOL_LDFLAGS)
56 -
57 -
58 -@@ -20,7 +19,7 @@ endif
59 - BITCOIN_CONFIG_INCLUDES=-I$(builddir)/config
60 - BITCOIN_INCLUDES=-I$(builddir) -I$(builddir)/obj $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS) $(CRYPTO_CFLAGS) $(SSL_CFLAGS)
61 -
62 --BITCOIN_INCLUDES += -I$(srcdir)/secp256k1/include
63 -+BITCOIN_INCLUDES += $(libsecp256k1_CFLAGS)
64 -
65 - LIBBITCOIN_SERVER=libbitcoin_server.a
66 - LIBBITCOIN_WALLET=libbitcoin_wallet.a
67 -@@ -30,10 +29,7 @@ LIBBITCOIN_UTIL=libbitcoin_util.a
68 - LIBBITCOIN_CRYPTO=crypto/libbitcoin_crypto.a
69 - LIBBITCOIN_UNIVALUE=univalue/libbitcoin_univalue.a
70 - LIBBITCOINQT=qt/libbitcoinqt.a
71 --LIBSECP256K1=secp256k1/libsecp256k1.la
72 --
73 --$(LIBSECP256K1): $(wildcard secp256k1/src/*) $(wildcard secp256k1/include/*)
74 -- $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
75 -+LIBSECP256K1=$(libsecp256k1_LIBS)
76 -
77 - # Make is not made aware of per-object dependencies to avoid limiting building parallelization
78 - # But to build the less dependent modules first, we manually select their order here:
79 -@@ -364,7 +360,7 @@ libbitcoinconsensus_la_LDFLAGS = -no-undefined $(RELDFLAGS)
80 - libbitcoinconsensus_la_LIBADD = $(CRYPTO_LIBS)
81 - libbitcoinconsensus_la_CPPFLAGS = $(CRYPTO_CFLAGS) -I$(builddir)/obj -DBUILD_BITCOIN_INTERNAL
82 - if USE_LIBSECP256K1
83 --libbitcoinconsensus_la_LIBADD += secp256k1/libsecp256k1.la
84 -+libbitcoinconsensus_la_LIBADD += $(LIBSECP256K1)
85 - endif
86 - endif
87 -
88 -diff --git a/src/Makefile.test.include b/src/Makefile.test.include
89 -index 5fd2afe..014092a 100644
90 ---- a/src/Makefile.test.include
91 -+++ b/src/Makefile.test.include
92 -@@ -104,9 +104,6 @@ bitcoin_test_check: $(TEST_BINARY) FORCE
93 - bitcoin_test_clean : FORCE
94 - rm -f $(CLEAN_BITCOIN_TEST) $(test_test_bitcoin_OBJECTS) $(TEST_BINARY)
95 -
96 --check-local:
97 -- $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C secp256k1 check
98 --
99 - %.json.h: %.json
100 - @$(MKDIR_P) $(@D)
101 - @echo "namespace json_tests{" > $@
102
103 diff --git a/dev-util/bitcoin-tx/files/9999-syslibs.patch b/dev-util/bitcoin-tx/files/9999-syslibs.patch
104 deleted file mode 100644
105 index c594c54..00000000
106 --- a/dev-util/bitcoin-tx/files/9999-syslibs.patch
107 +++ /dev/null
108 @@ -1,253 +0,0 @@
109 -diff --git a/build-aux/m4/bitcoin_subdir_to_include.m4 b/build-aux/m4/bitcoin_subdir_to_include.m4
110 -index 66f106c..5f0a3b1 100644
111 ---- a/build-aux/m4/bitcoin_subdir_to_include.m4
112 -+++ b/build-aux/m4/bitcoin_subdir_to_include.m4
113 -@@ -5,7 +5,7 @@ AC_DEFUN([BITCOIN_SUBDIR_TO_INCLUDE],[
114 - AC_MSG_RESULT([default])
115 - else
116 - echo "#include <$2$3.h>" >conftest.cpp
117 -- newinclpath=`${CXXCPP} ${CPPFLAGS} -M conftest.cpp 2>/dev/null | [ tr -d '\\n\\r\\\\' | sed -e 's/^.*[[:space:]:]\(\/[^[:space:]]*\)]$3[\.h[[:space:]].*$/\1/' -e t -e d`]
118 -+ newinclpath=$(${CXXCPP} ${CPPFLAGS} -M conftest.cpp 2>/dev/null | sed [-E -e ':a' -e '/\\$/!b b' -e N -e 's/\\\n/ /' -e 't a' -e ':b' -e 's/^[^:]*:[[:space:]]*(([^[:space:]\]|\\.)*[[:space:]])*(([^[:space:]\]|\\.)*)]$3\.h[([[:space:]].*)?$/\3/' -e 't' -e d])
119 - AC_MSG_RESULT([${newinclpath}])
120 - if test "x${newinclpath}" != "x"; then
121 - eval "$1=\"\$$1\"' -I${newinclpath}'"
122 -diff --git a/configure.ac b/configure.ac
123 -index 939dfea..6c9acb3 100644
124 ---- a/configure.ac
125 -+++ b/configure.ac
126 -@@ -200,6 +200,18 @@ AC_ARG_WITH([utils],
127 - [build_bitcoin_utils=$withval],
128 - [build_bitcoin_utils=yes])
129 -
130 -+AC_ARG_ENABLE([util-cli],
131 -+ [AS_HELP_STRING([--enable-util-cli],
132 -+ [build bitcoin-cli])],
133 -+ [build_bitcoin_cli=$enableval],
134 -+ [build_bitcoin_cli=$build_bitcoin_utils])
135 -+
136 -+AC_ARG_ENABLE([util-tx],
137 -+ [AS_HELP_STRING([--enable-util-tx],
138 -+ [build bitcoin-tx])],
139 -+ [build_bitcoin_tx=$enableval],
140 -+ [build_bitcoin_tx=$build_bitcoin_utils])
141 -+
142 - AC_ARG_WITH([libs],
143 - [AS_HELP_STRING([--with-libs],
144 - [build libraries (default=yes)])],
145 -@@ -531,14 +543,65 @@ if test x$use_reduce_exports = xyes; then
146 - [AC_MSG_ERROR([Cannot set default symbol visibility. Use --disable-reduce-exports.])])
147 - fi
148 -
149 -+dnl Check for leveldb, only if explicitly requested
150 - LEVELDB_CPPFLAGS=
151 - LIBLEVELDB=
152 - LIBMEMENV=
153 --AM_CONDITIONAL([EMBEDDED_LEVELDB],[true])
154 -+AC_ARG_WITH([system-leveldb],
155 -+ [AS_HELP_STRING([--with-system-leveldb],
156 -+ [Build with system LevelDB (default is no; DANGEROUS; NOT SUPPORTED)])],
157 -+ [system_leveldb=$withval],
158 -+ [system_leveldb=no]
159 -+)
160 -+if test x$system_leveldb != xno; then
161 -+ LEVELDB_CPPFLAGS=
162 -+ AC_CHECK_LIB([leveldb],[main],[
163 -+ LIBLEVELDB=-lleveldb
164 -+ ],[
165 -+ AC_MSG_ERROR([leveldb library not found; using --with-system-leveldb is not supported anyway])
166 -+ ])
167 -+ TEMP_LIBS="$LIBS"
168 -+ LIBS="$LIBS $LIBLEVELDB"
169 -+ AC_CHECK_LIB([memenv],[main],[
170 -+ LIBMEMENV=-lmemenv
171 -+ ],[
172 -+ AC_MSG_ERROR([LevelDB's memenv library not found; using --with-system-leveldb is not supported anyway])
173 -+ ])
174 -+ LIBS="$TEMP_LIBS"
175 -+ AC_CHECK_HEADER([leveldb/filter_policy.h],[],[
176 -+ AC_MSG_ERROR([LevelDB headers not found; using --with-system-leveldb is not supported anyway])
177 -+ ])
178 -+ AC_CHECK_HEADER([leveldb/helpers/memenv.h],[
179 -+ AC_MSG_CHECKING([for memenv.h path])
180 -+ BITCOIN_SUBDIR_TO_INCLUDE([LEVELDB_CPPFLAGS],[leveldb/helpers/],[memenv])
181 -+ ],[
182 -+ AC_CHECK_HEADER([memenv.h],[],[
183 -+ AC_MSG_ERROR([LevelDB headers not found; using --with-system-leveldb is not supported anyway])
184 -+ ])
185 -+ ])
186 -+fi
187 -+AM_CONDITIONAL([EMBEDDED_LEVELDB],[test x$system_leveldb = xno])
188 - AC_SUBST(LEVELDB_CPPFLAGS)
189 - AC_SUBST(LIBLEVELDB)
190 - AC_SUBST(LIBMEMENV)
191 -
192 -+dnl Check for libsecp256k1, only if explicitly requested
193 -+AC_ARG_WITH([system-libsecp256k1],
194 -+ [AS_HELP_STRING([--with-system-libsecp256k1],
195 -+ [Build with system libsecp256k1 (default is no; DANGEROUS; NOT SUPPORTED)])],
196 -+ [system_libsecp256k1=$withval],
197 -+ [system_libsecp256k1=no]
198 -+)
199 -+if test x$system_libsecp256k1 != xno; then
200 -+ PKG_CHECK_MODULES([libsecp256k1],[libsecp256k1],,[true])
201 -+else
202 -+ libsecp256k1_CFLAGS='-I$(srcdir)/secp256k1/include'
203 -+ libsecp256k1_LIBS='secp256k1/libsecp256k1.la'
204 -+fi
205 -+AM_CONDITIONAL([EMBEDDED_LIBSECP256K1],[test x$system_libsecp256k1 = xno])
206 -+AC_SUBST(libsecp256k1_CFLAGS)
207 -+AC_SUBST(libsecp256k1_LIBS)
208 -+
209 - if test x$enable_wallet != xno; then
210 - dnl Check for libdb_cxx only if wallet enabled
211 - BITCOIN_FIND_BDB48
212 -@@ -558,7 +621,7 @@ BITCOIN_QT_INIT
213 - dnl sets $bitcoin_enable_qt, $bitcoin_enable_qt_test, $bitcoin_enable_qt_dbus
214 - BITCOIN_QT_CONFIGURE([$use_pkgconfig], [qt5])
215 -
216 --if test x$build_bitcoin_utils$build_bitcoind$bitcoin_enable_qt$use_tests = xnononono; then
217 -+if test x$build_bitcoin_cli$build_bitcoin_tx$build_bitcoind$bitcoin_enable_qt$use_tests = xnonononono; then
218 - use_boost=no
219 - else
220 - use_boost=yes
221 -@@ -848,9 +911,13 @@ AC_MSG_CHECKING([whether to build bitcoind])
222 - AM_CONDITIONAL([BUILD_BITCOIND], [test x$build_bitcoind = xyes])
223 - AC_MSG_RESULT($build_bitcoind)
224 -
225 --AC_MSG_CHECKING([whether to build utils (bitcoin-cli bitcoin-tx)])
226 --AM_CONDITIONAL([BUILD_BITCOIN_UTILS], [test x$build_bitcoin_utils = xyes])
227 --AC_MSG_RESULT($build_bitcoin_utils)
228 -+AC_MSG_CHECKING([whether to build bitcoin-cli])
229 -+AM_CONDITIONAL([BUILD_BITCOIN_CLI], [test x$build_bitcoin_cli = xyes])
230 -+AC_MSG_RESULT($build_bitcoin_cli)
231 -+
232 -+AC_MSG_CHECKING([whether to build bitcoin-tx])
233 -+AM_CONDITIONAL([BUILD_BITCOIN_TX], [test x$build_bitcoin_tx = xyes])
234 -+AC_MSG_RESULT($build_bitcoin_tx)
235 -
236 - AC_MSG_CHECKING([whether to build libraries])
237 - AM_CONDITIONAL([BUILD_BITCOIN_LIBS], [test x$build_bitcoin_libs = xyes])
238 -@@ -975,7 +1042,7 @@ else
239 - AC_MSG_RESULT([no])
240 - fi
241 -
242 --if test x$build_bitcoin_utils$build_bitcoin_libs$build_bitcoind$bitcoin_enable_qt$use_tests = xnonononono; then
243 -+if test x$build_bitcoin_cli$build_bitcoin_tx$build_bitcoin_libs$build_bitcoind$bitcoin_enable_qt$use_tests = xnononononono; then
244 - AC_MSG_ERROR([No targets! Please specify at least one of: --with-utils --with-libs --with-daemon --with-gui or --enable-tests])
245 - fi
246 -
247 -@@ -1062,8 +1129,10 @@ if test x$system_univalue = xno; then
248 - AC_CONFIG_SUBDIRS([src/univalue])
249 - fi
250 -
251 -+if test x$system_libsecp256k1 = xno; then
252 - ac_configure_args="${ac_configure_args} --disable-shared --with-pic --with-bignum=no --enable-module-recovery"
253 - AC_CONFIG_SUBDIRS([src/secp256k1])
254 -+fi
255 -
256 - AC_OUTPUT
257 -
258 -diff --git a/qa/pull-tester/rpc-tests.py b/qa/pull-tester/rpc-tests.py
259 -index 7649c11..978419b 100755
260 ---- a/qa/pull-tester/rpc-tests.py
261 -+++ b/qa/pull-tester/rpc-tests.py
262 -@@ -36,8 +36,8 @@ if not vars().has_key('ENABLE_WALLET'):
263 - ENABLE_WALLET=0
264 - if not vars().has_key('ENABLE_BITCOIND'):
265 - ENABLE_BITCOIND=0
266 --if not vars().has_key('ENABLE_UTILS'):
267 -- ENABLE_UTILS=0
268 -+if not vars().has_key('ENABLE_CLI'):
269 -+ ENABLE_CLI=0
270 - if not vars().has_key('ENABLE_ZMQ'):
271 - ENABLE_ZMQ=0
272 -
273 -@@ -141,7 +141,7 @@ def runtests():
274 - coverage = RPCCoverage()
275 - print("Initializing coverage directory at %s\n" % coverage.dir)
276 -
277 -- if(ENABLE_WALLET == 1 and ENABLE_UTILS == 1 and ENABLE_BITCOIND == 1):
278 -+ if(ENABLE_WALLET == 1 and ENABLE_CLI == 1 and ENABLE_BITCOIND == 1):
279 - rpcTestDir = buildDir + '/qa/rpc-tests/'
280 - run_extended = '-extended' in opts
281 - cov_flag = coverage.flag if coverage else ''
282 -@@ -187,7 +187,7 @@ def runtests():
283 - coverage.cleanup()
284 -
285 - else:
286 -- print "No rpc tests to run. Wallet, utils, and bitcoind must all be enabled"
287 -+ print "No rpc tests to run. Wallet, cli, and bitcoind must all be enabled"
288 -
289 -
290 - class RPCCoverage(object):
291 -diff --git a/qa/pull-tester/tests_config.py.in b/qa/pull-tester/tests_config.py.in
292 -index 937b423..71a917c 100644
293 ---- a/qa/pull-tester/tests_config.py.in
294 -+++ b/qa/pull-tester/tests_config.py.in
295 -@@ -8,7 +8,7 @@ EXEEXT="@EXEEXT@"
296 -
297 - # These will turn into comments if they were disabled when configuring.
298 - @ENABLE_WALLET_TRUE@ENABLE_WALLET=1
299 --@BUILD_BITCOIN_UTILS_TRUE@ENABLE_UTILS=1
300 -+@BUILD_BITCOIN_CLI_TRUE@ENABLE_CLI=1
301 - @BUILD_BITCOIND_TRUE@ENABLE_BITCOIND=1
302 - @ENABLE_ZMQ_TRUE@ENABLE_ZMQ=1
303 -
304 -diff --git a/src/Makefile.am b/src/Makefile.am
305 -index fa7a78f..cc2f2ca 100644
306 ---- a/src/Makefile.am
307 -+++ b/src/Makefile.am
308 -@@ -31,7 +31,7 @@ endif
309 - BITCOIN_CONFIG_INCLUDES=-I$(builddir)/config
310 - BITCOIN_INCLUDES=-I$(builddir) -I$(builddir)/obj $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS) $(CRYPTO_CFLAGS) $(SSL_CFLAGS)
311 -
312 --BITCOIN_INCLUDES += -I$(srcdir)/secp256k1/include
313 -+BITCOIN_INCLUDES += $(libsecp256k1_CFLAGS)
314 - BITCOIN_INCLUDES += $(UNIVALUE_CFLAGS)
315 -
316 - LIBBITCOIN_SERVER=libbitcoin_server.a
317 -@@ -42,10 +42,16 @@ LIBBITCOIN_CLI=libbitcoin_cli.a
318 - LIBBITCOIN_UTIL=libbitcoin_util.a
319 - LIBBITCOIN_CRYPTO=crypto/libbitcoin_crypto.a
320 - LIBBITCOINQT=qt/libbitcoinqt.a
321 -+if EMBEDDED_LIBSECP256K1
322 - LIBSECP256K1=secp256k1/libsecp256k1.la
323 -+else
324 -+LIBSECP256K1=$(libsecp256k1_LIBS)
325 -+endif
326 -
327 -+if EMBEDDED_LIBSECP256K1
328 - $(LIBSECP256K1): $(wildcard secp256k1/src/*) $(wildcard secp256k1/include/*)
329 - $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
330 -+endif
331 -
332 - # Make is not made aware of per-object dependencies to avoid limiting building parallelization
333 - # But to build the less dependent modules first, we manually select their order here:
334 -@@ -79,8 +85,11 @@ if BUILD_BITCOIND
335 - bin_PROGRAMS += bitcoind
336 - endif
337 -
338 --if BUILD_BITCOIN_UTILS
339 -- bin_PROGRAMS += bitcoin-cli bitcoin-tx
340 -+if BUILD_BITCOIN_CLI
341 -+ bin_PROGRAMS += bitcoin-cli
342 -+endif
343 -+if BUILD_BITCOIN_TX
344 -+ bin_PROGRAMS += bitcoin-tx
345 - endif
346 -
347 - .PHONY: FORCE check-symbols check-security
348 -diff --git a/src/Makefile.test.include b/src/Makefile.test.include
349 -index 6ef6a69..1b6e759 100644
350 ---- a/src/Makefile.test.include
351 -+++ b/src/Makefile.test.include
352 -@@ -127,7 +127,9 @@ bitcoin_test_clean : FORCE
353 - check-local:
354 - @echo "Running test/bitcoin-util-test.py..."
355 - $(AM_V_at)srcdir=$(srcdir) PYTHONPATH=$(builddir)/test $(srcdir)/test/bitcoin-util-test.py
356 -+if EMBEDDED_LIBSECP256K1
357 - $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C secp256k1 check
358 -+endif
359 - if EMBEDDED_UNIVALUE
360 - $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C univalue check
361 - endif