Skip to content

Commit

Permalink
contrib: remove install_db4.sh
Browse files Browse the repository at this point in the history
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 bitcoin#26623.
  • Loading branch information
fanquake committed Jan 18, 2023
1 parent 14ce843 commit 44f3c7d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 271 deletions.
259 changes: 0 additions & 259 deletions contrib/install_db4.sh

This file was deleted.

8 changes: 5 additions & 3 deletions doc/build-openbsd.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,18 @@ pkg_add sqlite3
BerkeleyDB is only required to support legacy wallets.

It is recommended to use Berkeley DB 4.8. You cannot use the BerkeleyDB library
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.
from ports. However you can build it yourself, [using depends](/depends).

```bash
./contrib/install_db4.sh `pwd`
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
...
to: /path/to/bitcoin/depends/x86_64-unknown-openbsd
```

Then set `BDB_PREFIX`:

```bash
export BDB_PREFIX="$PWD/db4"
export BDB_PREFIX="/path/to/bitcoin/depends/x86_64-unknown-openbsd"
```

#### GUI Dependencies
Expand Down
22 changes: 13 additions & 9 deletions doc/build-unix.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,17 +197,21 @@ Berkeley DB
-----------

The legacy wallet uses Berkeley DB. To ensure backwards compatibility it is
recommended to use Berkeley DB 4.8. If you have to build it yourself, you can
use [the installation script included in contrib/](/contrib/install_db4.sh)
like so:

```shell
./contrib/install_db4.sh `pwd`
recommended to use Berkeley DB 4.8. If you have to build it yourself, and don't
want to use any other libraries built in depends, you can do:
```bash
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
...
to: /path/to/bitcoin/depends/x86_64-pc-linux-gnu
```
and configure using the following:
```bash
export BDB_PREFIX="/path/to/bitcoin/depends/x86_64-pc-linux-gnu"

from the root of the repository.

Otherwise, you can build Bitcoin Core from self-compiled [depends](/depends/README.md).
./configure \
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
BDB_CFLAGS="-I${BDB_PREFIX}/include"
```

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

Expand Down

0 comments on commit 44f3c7d

Please sign in to comment.