Now that we can build a bdb-only depends prefix (#26833), there is no need to maintain a bdb-building bash script, that does the same thing as depends, except worse, as it’s missing patches and workarounds. i.e #26623.
Someone that wants to compile bdb themselves, but doesn’t want to use other depends built libs, can do:
0make -C depends NO_BOOST=1 NO_LIBEVENT=1 NO_QT=1 NO_SQLITE=1 NO_NATPMP=1 NO_UPNP=1 NO_ZMQ=1 NO_USDT=1
1...
2to: /path/to/bitcoin/depends/x86_64-pc-linux-gnu
which gives them a BDB only prefix, and then compile using:
0export BDB_PREFIX="/path/to/bitcoin/depends/x86_64-pc-linux-gnu"
1./autogen.sh
2./configure \
3 BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
4 BDB_CFLAGS="-I${BDB_PREFIX}/include"
Wondering if we should extract the build bdb/legacy wallet docs somewhere, to avoid the repetition?