Without libevent, bitcoind and bitcoin-cli cannot be built, and bitcoin-qt no longer supports -server, -rest, or -torcontrol features (although the debug window still works).
Support building without libevent #7339
pull luke-jr wants to merge 6 commits into bitcoin:master from luke-jr:opt_libevent changing 6 files +161 −42-
luke-jr commented at 11:24 PM on January 13, 2016: member
-
configure: Make it possible to build only one of bitcoin-cli or bitcoin-tx 2b66034f19
-
Merge branch 'separate_utils-0.10.x' into separate_utils aca0433e41
-
Merge branch 'separate_utils-0.11.x' into separate_utils b81ce0bb10
-
6aed5e66ae
Support building without libevent
Without libevent, bitcoind and bitcoin-cli cannot be built, and bitcoin-qt no longer supports -server, -rest, or -torcontrol features (although the debug window still works).
- luke-jr force-pushed on Jan 13, 2016
-
in configure.ac:None in d6275ae821 outdated
758 | @@ -742,6 +759,77 @@ else 759 | fi 760 | fi 761 | 762 | +dnl libevent check
jonasschnelli commented at 8:24 AM on January 14, 2016:would using a m4 marco make sense here. Something like https://github.com/digitalbitbox/dbb-app/blob/master/build-aux/m4/ax_libevent.m4?
luke-jr commented at 3:31 PM on January 14, 2016:Probably, but IMO outside the scope of this PR.
jonasschnelli commented at 8:29 AM on January 14, 2016: contributorConcept ACK.
IMO the only use cases that makes sense:
- Building bitcoin-qt without the -server option and therefore without the libevent dependency.
Not sure if building bitcoind without a RPC server results in something people could use. Building bitcoin-tx without bitcoind is probably an edge case.
jonasschnelli added the label Build system on Jan 14, 2016luke-jr commented at 3:34 PM on January 14, 2016: memberNot sure if building bitcoind without a RPC server results in something people could use.
Right now, this PR has the following behaviour:
- --without-libevent --enable-daemon: error
- --without-libevent: do not build bitcoind
- --disable-daemon: use libevent if available
- (neither flag): error if libevent is not available
Building bitcoin-tx without bitcoind is probably an edge case.
It is the typical case for at least Gentoo users.
doc: Move libevent from required to optional 78b6762209luke-jr force-pushed on Jan 15, 2016Bugfix: Work with explicit --enable-utils f1f73e93a4laanwj commented at 10:29 AM on January 27, 2016: memberI just realized: don't forget that work is underway to use libevent for the P2P code. So this would only be a short-lived change.
luke-jr commented at 5:34 AM on January 28, 2016: memberHmm, good point. I'd still appreciate review on this, even if it doesn't get merged, since I plan to include it in Bitcoin LJR 0.12.
laanwj commented at 1:53 PM on February 1, 2016: memberThe code changes look OK to me
laanwj closed this on Feb 3, 2016luke-jr commented at 3:59 PM on March 1, 2016: memberPlease reopen this. It occurs to me that libbitcoinconsensus and bitcoin-tx will never need libevent.
jtimon commented at 4:23 PM on March 1, 2016: contributorWhether libconsensus needs to support concurrency internally or not (like libsecp256k1 doesn't ) is purely a design choice. My preferred choice is that concurrency is implemented by the caller (I highly doubt libbitcoin would use it otherwise, for example ). See #7566 compared to #7575 for what I mean by decoupling libconsensus from concurrency and storage.
jtimon commented at 8:07 PM on September 7, 2016: contributorSorry for the previous comment. It was not relevant to this PR at all. Please ignore it for this PR.
MarcoFalke locked this on Sep 8, 2021ContributorsLabels
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 15:15 UTC
More mirrored repositories can be found on mirror.b10c.me