Skip to content

Commit 44f3c7d

Browse files
committed
contrib: remove install_db4.sh
Now that we can build a bdb-only depends prefix, there is no need to maintain a bdb-building bash script, that does the same things as depends, except worse, as it's missing patches and workarounds. i.e #26623.
1 parent 14ce843 commit 44f3c7d

File tree

3 files changed

+18
-271
lines changed

3 files changed

+18
-271
lines changed

contrib/install_db4.sh

Lines changed: 0 additions & 259 deletions
This file was deleted.

doc/build-openbsd.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,18 @@ pkg_add sqlite3
4141
BerkeleyDB is only required to support legacy wallets.
4242

4343
It is recommended to use Berkeley DB 4.8. You cannot use the BerkeleyDB library
44-
from ports. However you can build it yourself, [using the installation script included in contrib/](/contrib/install_db4.sh), like so, from the root of the repository.
44+
from ports. However you can build it yourself, [using depends](/depends).
4545

4646
```bash
47-
./contrib/install_db4.sh `pwd`
47+
gmake -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
48+
...
49+
to: /path/to/bitcoin/depends/x86_64-unknown-openbsd
4850
```
4951

5052
Then set `BDB_PREFIX`:
5153

5254
```bash
53-
export BDB_PREFIX="$PWD/db4"
55+
export BDB_PREFIX="/path/to/bitcoin/depends/x86_64-unknown-openbsd"
5456
```
5557

5658
#### GUI Dependencies

doc/build-unix.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,17 +197,21 @@ Berkeley DB
197197
-----------
198198

199199
The legacy wallet uses Berkeley DB. To ensure backwards compatibility it is
200-
recommended to use Berkeley DB 4.8. If you have to build it yourself, you can
201-
use [the installation script included in contrib/](/contrib/install_db4.sh)
202-
like so:
203-
204-
```shell
205-
./contrib/install_db4.sh `pwd`
200+
recommended to use Berkeley DB 4.8. If you have to build it yourself, and don't
201+
want to use any other libraries built in depends, you can do:
202+
```bash
203+
make -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
204+
...
205+
to: /path/to/bitcoin/depends/x86_64-pc-linux-gnu
206206
```
207+
and configure using the following:
208+
```bash
209+
export BDB_PREFIX="/path/to/bitcoin/depends/x86_64-pc-linux-gnu"
207210

208-
from the root of the repository.
209-
210-
Otherwise, you can build Bitcoin Core from self-compiled [depends](/depends/README.md).
211+
./configure \
212+
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
213+
BDB_CFLAGS="-I${BDB_PREFIX}/include"
214+
```
211215

212216
**Note**: You only need Berkeley DB if the legacy wallet is enabled (see [*Disable-wallet mode*](#disable-wallet-mode)).
213217

0 commit comments

Comments
 (0)