Skip to content

Commit 7d0e42a

Browse files
committed
Merge bitcoin/bitcoin#24658: doc: mention that BDB is for the legacy wallet in build-netbsd.md
7ac7198 doc: mention that BDB is for the legacy wallet in build-netbsd.md (fanquake) Pull request description: Re-order legacy and descriptor wallet section. Add an additional configure example. NetBSD version of #23446. ACKs for top commit: shaavan: ACK 7ac7198 Tree-SHA512: 5c8218424a6b12e9eee00b44dd93f9fe95fd9afa468563167feb255663720a84b55e75850985cfae3ca288a6a76e17c00ccce60b8180f92875eeaee2c9afa843
2 parents 053499f + 7ac7198 commit 7d0e42a

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

doc/build-netbsd.md

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,33 @@ git clone https://github.com/bitcoin/bitcoin.git
2727

2828
See [dependencies.md](dependencies.md) for a complete overview.
2929

30-
### Building BerkeleyDB
30+
### Building Bitcoin Core
31+
32+
**Important**: Use `gmake` (the non-GNU `make` will exit with an error).
33+
34+
#### With descriptor wallet:
35+
36+
The descriptor wallet uses `sqlite3`. You can install it using:
37+
```bash
38+
pkgin install sqlite3
39+
```
40+
41+
```bash
42+
./autogen.sh
43+
./configure --with-gui=no --without-bdb \
44+
CPPFLAGS="-I/usr/pkg/include" \
45+
LDFLAGS="-L/usr/pkg/lib" \
46+
BOOST_CPPFLAGS="-I/usr/pkg/include" \
47+
MAKE=gmake
48+
```
3149

32-
BerkeleyDB is only necessary for the wallet functionality. To skip this, pass
33-
`--disable-wallet` to `./configure` and skip to the next section.
50+
#### With legacy wallet:
51+
52+
BerkeleyDB is use for legacy wallet functionality.
3453

3554
It is recommended to use Berkeley DB 4.8. You cannot use the BerkeleyDB library
36-
from ports, for the same reason as boost above (g++/libstd++ incompatibility).
37-
If you have to build it yourself, you can use [the installation script included
38-
in contrib/](/contrib/install_db4.sh) like so:
55+
from ports.
56+
You can use [the installation script included in contrib/](/contrib/install_db4.sh) like so:
3957

4058
```bash
4159
./contrib/install_db4.sh `pwd`
@@ -47,11 +65,6 @@ from the root of the repository. Then set `BDB_PREFIX` for the next section:
4765
export BDB_PREFIX="$PWD/db4"
4866
```
4967

50-
### Building Bitcoin Core
51-
52-
**Important**: Use `gmake` (the non-GNU `make` will exit with an error).
53-
54-
With wallet:
5568
```bash
5669
./autogen.sh
5770
./configure --with-gui=no CPPFLAGS="-I/usr/pkg/include" \
@@ -62,7 +75,7 @@ With wallet:
6275
MAKE=gmake
6376
```
6477

65-
Without wallet:
78+
#### Without wallet:
6679
```bash
6780
./autogen.sh
6881
./configure --with-gui=no --disable-wallet \

0 commit comments

Comments
 (0)