doc: Improve test suite dependencies documentation #35395

Manually merged
hebasto merged 3 commits from 260527-ft-needed into master 2026-10-22 15:53:18 +00:00 AGit
hebasto commented 2026-05-27 13:28:24 +00:00 (Migrated from github.com)

The current documentation has multiple issues:

  1. OS-specific notes are missing for the pycapnp module.
  2. python3-zmq is a package name in some Linux distros, rather than a Unix-wide convention.
  3. Installing pyzmq from PyPI works in general, not only on macOS.

This PR resolves these issues. Additionally, two minor improvements have been added (see commit messages).

The current documentation has multiple issues: 1. OS-specific notes are missing for the `pycapnp` module. 2. `python3-zmq` is a package name in some Linux distros, rather than a Unix-wide convention. 3. Installing `pyzmq` from PyPI works in general, not only on macOS. This PR resolves these issues. Additionally, two minor improvements have been added (see commit messages).
DrahtBot commented 2026-05-27 13:28:31 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK sedited, maflcko
Concept ACK l0rinc

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #35762 (test: optionally run functional tests via CTest by willcl-ark)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/35395 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/35395.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/35395#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [sedited](https://github.com/bitcoin/bitcoin/pull/35395#pullrequestreview-5567545753), [maflcko](https://github.com/bitcoin/bitcoin/pull/35395#issuecomment-6340396267) | | Concept ACK | [l0rinc](https://github.com/bitcoin/bitcoin/pull/35395#issuecomment-4582814883) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#35762](https://github.com/bitcoin/bitcoin/pull/35762) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35762.svg"></sub> (test: optionally run functional tests via CTest by willcl-ark) If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. <!--5faf32d7da4f0f540f40219e4f7537a3-->
fanquake commented 2026-05-27 13:34:06 +00:00 (Migrated from github.com)

Looks like you've just removed immediately usable OS specific instructions, and replaced them with general ones, just forcing devs to go and find the same info? i.e currently a FreeBSD dev could just copy pkg install python3 databases/py-sqlite3 net/py-pyzmq, now they'd have to go and find the package names themselves?

Looks like you've just removed immediately usable OS specific instructions, and replaced them with general ones, just forcing devs to go and find the same info? i.e currently a FreeBSD dev could just copy `pkg install python3 databases/py-sqlite3 net/py-pyzmq`, now they'd have to go and find the package names themselves?
hebasto commented 2026-05-27 14:40:51 +00:00 (Migrated from github.com)

Looks like you've just removed immediately usable OS specific instructions, and replaced them with general ones, just forcing devs to go and find the same info? i.e currently a FreeBSD dev could just copy pkg install python3 databases/py-sqlite3 net/py-pyzmq, now they'd have to go and find the package names themselves?

That's correct, it is a trade-off. While it does require a quick search from the developer, the alternative is duplicating every dependency instruction across all OS-specific notes, e.g., pkg install lsof or pip3 install pycapnp. As we saw with recent updates (#33201 and #34256), trying to maintain exact, OS-specific package names quickly becomes a fragile approach.

> Looks like you've just removed immediately usable OS specific instructions, and replaced them with general ones, just forcing devs to go and find the same info? i.e currently a FreeBSD dev could just copy `pkg install python3 databases/py-sqlite3 net/py-pyzmq`, now they'd have to go and find the package names themselves? That's correct, it is a trade-off. While it does require a quick search from the developer, the alternative is duplicating every dependency instruction across all OS-specific notes, e.g., `pkg install lsof` or `pip3 install pycapnp`. As we saw with recent updates (#33201 and #34256), trying to maintain exact, OS-specific package names quickly becomes a fragile approach.
fanquake commented 2026-05-28 09:28:53 +00:00 (Migrated from github.com)

trying to maintain exact, OS-specific package names quickly becomes a fragile approach.

Not sure I agree. That's what we do in the rest of the build documentation, and it seems to work fine.

> trying to maintain exact, OS-specific package names quickly becomes a fragile approach. Not sure I agree. That's what we do in the rest of the build documentation, and it seems to work fine.
maflcko commented 2026-05-28 10:37:23 +00:00 (Migrated from github.com)

I haven't looked, but are the bsd docs largely different? if not, maybe they can be merged into a single build-bsd.md in the style of build-unix.md from https://github.com/bitcoin/bitcoin/pull/35402?

Going further, maybe we can just merge build-bsd.md and build-unix.md into a single build.md (and only keep build-osx and build-windows), or possibly merge even them into a separate section in a general build.md file?

I haven't looked, but are the bsd docs largely different? if not, maybe they can be merged into a single `build-bsd.md` in the style of `build-unix.md` from https://github.com/bitcoin/bitcoin/pull/35402? Going further, maybe we can just merge build-bsd.md and build-unix.md into a single `build.md` (and only keep build-osx and build-windows), or possibly merge even them into a separate section in a general build.md file?
l0rinc commented 2026-05-30 12:28:20 +00:00 (Migrated from github.com)

Thanks for documenting these, concept ACK

Thanks for documenting these, concept ACK
maflcko (Migrated from github.com) reviewed 2026-06-10 14:49:50 +00:00
maflcko (Migrated from github.com) left a comment

lgtm, just some nits

review ACK 61226c09c137cc552976cbc86fb69da3c12fc295 🐡

Show signature

Signature:

untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}"
RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM=
trusted comment: review ACK 61226c09c137cc552976cbc86fb69da3c12fc295 🐡
sGJAuu2CrT3orY5rhqcct7ih5+h56G7KQYBzbPy1/WlHTDbf5BUktHfI2CcZB/tFBpFEXYbMTBukQf2RhFZLDQ==
lgtm, just some nits review ACK 61226c09c137cc552976cbc86fb69da3c12fc295 🐡 <details><summary>Show signature</summary> Signature: ``` untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}" RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM= trusted comment: review ACK 61226c09c137cc552976cbc86fb69da3c12fc295 🐡 sGJAuu2CrT3orY5rhqcct7ih5+h56G7KQYBzbPy1/WlHTDbf5BUktHfI2CcZB/tFBpFEXYbMTBukQf2RhFZLDQ== ``` </details>
maflcko (Migrated from github.com) commented 2026-06-10 14:44:58 +00:00

nit in 807b77cc978d44a4b22267473283b4de6c43b62f: When adding those to *bsd.md, why not add them to *unix.md as well?

nit in 807b77cc978d44a4b22267473283b4de6c43b62f: When adding those to *bsd.md, why not add them to *unix.md as well?
maflcko (Migrated from github.com) commented 2026-06-10 14:34:43 +00:00

Maybe add a sentence that the docs here only mention the pip package names, which can be installed via the system package manager (if they are offered), or via pip in a venv, or uv, or any other choice the user prefers?

Maybe add a sentence that the docs here only mention the pip package names, which can be installed via the system package manager (if they are offered), or via pip in a venv, or uv, or any other choice the user prefers?
maflcko (Migrated from github.com) commented 2026-06-10 14:30:18 +00:00

If FreeBSD is the only one sticking out here, it would be fine to briefly mention databases/py-sqlite3 for FreeBSD, but not strong opinion.

If FreeBSD is the only one sticking out here, it would be fine to briefly mention `databases/py-sqlite3` for FreeBSD, but not strong opinion.
maflcko (Migrated from github.com) commented 2026-06-10 14:37:48 +00:00

Do we recall why this was needed and if it is still needed? If not, it can be removed?

Do we recall why this was needed and if it is still needed? If not, it can be removed?
maflcko (Migrated from github.com) commented 2026-06-10 14:43:19 +00:00

Can be removed after 8bfb422de8 ?

Can be removed after 8bfb422de83654c18cd341de8eb8e5351959d998 ?
DrahtBot commented 2026-06-15 14:20:09 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
maflcko (Migrated from github.com) reviewed 2026-06-15 15:15:53 +00:00
maflcko (Migrated from github.com) commented 2026-06-15 15:15:53 +00:00

(Happy to address the nits here in a separate pull, as they are somewhat unrelated)

(Happy to address the nits here in a separate pull, as they are somewhat unrelated)
hebasto (Migrated from github.com) reviewed 2026-06-15 15:23:25 +00:00
hebasto (Migrated from github.com) commented 2026-06-15 15:23:25 +00:00

(Happy to address the nits here in a separate pull, as they are somewhat unrelated)

Go for it :)

> (Happy to address the nits here in a separate pull, as they are somewhat unrelated) Go for it :)
maflcko (Migrated from github.com) reviewed 2026-06-16 08:35:59 +00:00
maflcko (Migrated from github.com) commented 2026-06-16 08:35:59 +00:00

Actually, I think this refers to running tests individually, not to running the tests with the test_runner, so the docs here still apply and can be kept for now.

Feel free to resolve this thread and push your rebase, with or without the other nits. Happy to re-ack either way.

Actually, I think this refers to running tests individually, not to running the tests with the test_runner, so the docs here still apply and can be kept for now. Feel free to resolve this thread and push your rebase, with or without the other nits. Happy to re-ack either way.
maflcko commented 2026-06-26 09:27:15 +00:00 (Migrated from github.com)

rebase ping 🙏

rebase ping :pray:
maflcko commented 2026-07-06 09:54:48 +00:00 (Migrated from github.com)

@hebasto rebase ping 🙏

@hebasto rebase ping :pray:
hebasto commented 2026-07-06 12:26:59 +00:00 (Migrated from github.com)

Rebased and addressed some of the feedback.

Rebased and addressed some of the feedback.
hebasto (Migrated from github.com) reviewed 2026-07-06 12:27:25 +00:00
hebasto (Migrated from github.com) commented 2026-07-06 12:27:25 +00:00

Done.

[Done](https://github.com/bitcoin/bitcoin/pull/35395#issuecomment-4892765036).
hebasto (Migrated from github.com) reviewed 2026-07-06 12:28:59 +00:00
hebasto (Migrated from github.com) commented 2026-07-06 12:28:59 +00:00

Would you mind suggesting the exact wording?

Would you mind suggesting the exact wording?
hebasto (Migrated from github.com) reviewed 2026-07-06 12:29:34 +00:00
hebasto (Migrated from github.com) commented 2026-07-06 12:29:34 +00:00

I'm going to test a few platforms.

I'm going to test a few platforms.
hebasto (Migrated from github.com) reviewed 2026-07-06 12:30:45 +00:00
hebasto (Migrated from github.com) commented 2026-07-06 12:30:45 +00:00

Thanks! Done.

Thanks! [Done](https://github.com/bitcoin/bitcoin/pull/35395#issuecomment-4892765036).
maflcko (Migrated from github.com) reviewed 2026-07-06 15:42:45 +00:00
maflcko (Migrated from github.com) left a comment

only change is rebase.

re-ACK 0e1e0d1d8573a581b7d0a61a5d9fef1525723425 🗨

Show signature

Signature:

untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}"
RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM=
trusted comment: re-ACK 0e1e0d1d8573a581b7d0a61a5d9fef1525723425 🗨
UhvUQl8X2jK/OK1ddcEmHhM2trWYI6rIKsc7KWTLBfbbzbC1t9KuP93GspZStR9Zhtln5586PX7w4dscaT2+Bw==
only change is rebase. re-ACK 0e1e0d1d8573a581b7d0a61a5d9fef1525723425 🗨 <details><summary>Show signature</summary> Signature: ``` untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}" RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM= trusted comment: re-ACK 0e1e0d1d8573a581b7d0a61a5d9fef1525723425 🗨 UhvUQl8X2jK/OK1ddcEmHhM2trWYI6rIKsc7KWTLBfbbzbC1t9KuP93GspZStR9Zhtln5586PX7w4dscaT2+Bw== ``` </details>
maflcko (Migrated from github.com) commented 2026-07-06 15:42:14 +00:00

Maybe this?

The optional modules can be installed with any suitable tool, like the system package manager, `pip` in a virtual environment, or `uv`.

Maybe this? ``` The optional modules can be installed with any suitable tool, like the system package manager, `pip` in a virtual environment, or `uv`.
maflcko (Migrated from github.com) commented 2026-07-06 15:18:54 +00:00

nit in 4f6aa41e4b4219b56842cad7120f5289dbbede40: Bad rebase?

nit in 4f6aa41e4b4219b56842cad7120f5289dbbede40: Bad rebase?
hebasto commented 2026-07-06 16:10:41 +00:00 (Migrated from github.com)

Thanks @maflcko for the review.

Your recent feedback has been addressed.

Thanks @maflcko for the review. Your recent feedback has been addressed.
hebasto (Migrated from github.com) reviewed 2026-07-06 16:10:59 +00:00
hebasto (Migrated from github.com) commented 2026-07-06 16:10:59 +00:00

Thanks! Fixed.

Thanks! [Fixed](https://github.com/bitcoin/bitcoin/pull/35395#issuecomment-4895004650).
hebasto (Migrated from github.com) reviewed 2026-07-06 16:11:25 +00:00
hebasto (Migrated from github.com) commented 2026-07-06 16:11:25 +00:00

Thanks! Reworked.

Thanks! [Reworked](https://github.com/bitcoin/bitcoin/pull/35395#issuecomment-4895004650).
maflcko commented 2026-07-07 06:17:17 +00:00 (Migrated from github.com)

Thx. Still curious about the pip error (https://github.com/bitcoin/bitcoin/pull/35395/changes/e25d9c8addd5ff489a7dac8b767e7901a5359f49#r3389204933), but this seems pre-existing and orthogonal.

review ACK c14f888996d45bc60af4a9e7023d836dff66bcb9 🏣

Show signature

Signature:

untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}"
RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM=
trusted comment: review ACK c14f888996d45bc60af4a9e7023d836dff66bcb9 🏣
TcQoY0WUul655XhC3MTHu6HevFIlTp+ndnyWgNaK6Mkrv6d/E+roJXDdFPCji6aVMYBoKpRYWQXTeEumDrVYCA==
Thx. Still curious about the pip error (https://github.com/bitcoin/bitcoin/pull/35395/changes/e25d9c8addd5ff489a7dac8b767e7901a5359f49#r3389204933), but this seems pre-existing and orthogonal. review ACK c14f888996d45bc60af4a9e7023d836dff66bcb9 🏣 <details><summary>Show signature</summary> Signature: ``` untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}" RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM= trusted comment: review ACK c14f888996d45bc60af4a9e7023d836dff66bcb9 🏣 TcQoY0WUul655XhC3MTHu6HevFIlTp+ndnyWgNaK6Mkrv6d/E+roJXDdFPCji6aVMYBoKpRYWQXTeEumDrVYCA== ``` </details>
hebasto (Migrated from github.com) reviewed 2026-07-07 15:12:20 +00:00
hebasto (Migrated from github.com) commented 2026-07-07 15:12:20 +00:00
The package installation via `pip` works flawlessly: https://github.com/hebasto/github-actions/actions/runs/28876798270.
sedited (Migrated from github.com) reviewed 2026-07-07 15:16:48 +00:00
sedited (Migrated from github.com) commented 2026-07-07 15:16:48 +00:00

Should we remove the instructions then?

Should we remove the instructions then?
maflcko (Migrated from github.com) reviewed 2026-07-07 16:11:36 +00:00
maflcko (Migrated from github.com) commented 2026-07-07 16:11:36 +00:00

Yeah, should be fine to remove in a new commit. If it is ever needed in the future, it will be trivial to revert that commit.

Yeah, should be fine to remove in a new commit. If it is ever needed in the future, it will be trivial to revert that commit.
hebasto (Migrated from github.com) reviewed 2026-07-08 10:54:50 +00:00
hebasto (Migrated from github.com) commented 2026-07-08 10:54:50 +00:00

On my local NetBSD 10.1, pip3 install pycapnp works just fine. However, on the same OS in the CI, a quirk is necessary:

CXXFLAGS="-DKJ_NO_EXCEPTIONS=0" pip3.13 install pycapnp

I'm fine with that for the following reasons:

  1. The same quirk is already used to build the capnp package.
  2. It won't be needed on NetBSD 11.0.
On my local NetBSD 10.1, `pip3 install pycapnp` works just fine. However, on the [same OS in the CI](https://github.com/hebasto/bitcoin-core-nightly/pull/300), a quirk is necessary: ```console CXXFLAGS="-DKJ_NO_EXCEPTIONS=0" pip3.13 install pycapnp ``` I'm fine with that for the following reasons: 1. The same quirk is already used to [build](https://github.com/hebasto/bitcoin-core-nightly/blob/ef17ea7ff5f0d0107c25a2313e02e7043141a654/.github/workflows/netbsd.yml#L70-L91) the `capnp` package. 2. It won't be needed on NetBSD 11.0.
maflcko (Migrated from github.com) reviewed 2026-07-08 11:01:41 +00:00
maflcko (Migrated from github.com) commented 2026-07-08 11:01:41 +00:00

Interesting. Though, I presume a NetBSD 10.1 error wasn't the reason why the section was originally added?

Also, I wonder if installing from source also requires enabling exceptions, or if this is just a pip package and NetBSD-package thing on NetBSD 10.1?

Also, I wonder what the error message is in case exceptions are disabled. If the error message literally says to set CXXFLAGS="-DKJ_NO_EXCEPTIONS=0", then it seems fine to just let the error message do the heavy lifting here instead of adding it to the docs?

Interesting. Though, I presume a NetBSD 10.1 error wasn't the reason why the section was originally added? Also, I wonder if installing from source also requires enabling exceptions, or if this is just a pip package and NetBSD-package thing on NetBSD 10.1? Also, I wonder what the error message is in case exceptions are disabled. If the error message literally says to set `CXXFLAGS="-DKJ_NO_EXCEPTIONS=0"`, then it seems fine to just let the error message do the heavy lifting here instead of adding it to the docs?
fanquake (Migrated from github.com) reviewed 2026-07-08 11:02:55 +00:00
fanquake (Migrated from github.com) commented 2026-07-08 11:02:55 +00:00

What's the point of this sentence?

What's the point of this sentence?
fanquake (Migrated from github.com) reviewed 2026-07-08 11:03:14 +00:00
fanquake (Migrated from github.com) commented 2026-07-08 11:03:14 +00:00

If FreeBSD is the only one sticking out here,

It isn't. I still don't quite understand how removing working instructions is an "improvement", especially given the rationale is that it's impossible to maintain individual package names (even though we do it everywhere else just fine).

> If FreeBSD is the only one sticking out here, It isn't. I still don't quite understand how removing working instructions is an "improvement", especially given the rationale is that it's impossible to maintain individual package names (even though we do it everywhere else just fine).
hebasto (Migrated from github.com) reviewed 2026-07-08 11:05:35 +00:00
hebasto (Migrated from github.com) commented 2026-07-08 11:05:35 +00:00

It's not available on OpenBSD.

It's not available on OpenBSD.
fanquake (Migrated from github.com) reviewed 2026-07-08 11:06:43 +00:00
fanquake (Migrated from github.com) commented 2026-07-08 11:06:43 +00:00

Now users building from source, who copy-paste the required deps from here, will get spurious warnings about a missing Python. That seems a bit worse than no warnings in the average case?

Now users building from source, who copy-paste the required deps from here, will get spurious warnings about a missing Python. That seems a bit worse than no warnings in the average case?
hebasto (Migrated from github.com) reviewed 2026-07-08 11:12:27 +00:00
hebasto (Migrated from github.com) commented 2026-07-08 11:12:27 +00:00

I still don't quite understand how removing working instructions is an "improvement", especially given the rationale is that it's impossible to maintain individual package names (even though we do it everywhere else just fine).

I'm open to alternative suggestions on how to fix the issues mentioned in the PR description in way that prevents documentation from rotting in the future.

> I still don't quite understand how removing working instructions is an "improvement", especially given the rationale is that it's impossible to maintain individual package names (even though we do it everywhere else just fine). I'm open to alternative suggestions on how to fix the issues mentioned in the PR description in way that prevents documentation from rotting in the future.
hebasto (Migrated from github.com) reviewed 2026-07-08 11:15:45 +00:00
hebasto (Migrated from github.com) commented 2026-07-08 11:15:45 +00:00

Fair point.

Fair point.
hebasto (Migrated from github.com) reviewed 2026-07-08 11:35:56 +00:00
hebasto (Migrated from github.com) commented 2026-07-08 11:35:56 +00:00
Here are more details: https://github.com/bitcoin-core/libmultiprocess/pull/196#issuecomment-3684300640.
maflcko (Migrated from github.com) reviewed 2026-07-08 12:06:00 +00:00
maflcko (Migrated from github.com) commented 2026-07-08 12:06:00 +00:00

I don't mind either way. Just listing the Pip names is fine, or listing all.

If all should be listed, it can be done with a compact markdown table, like:

| Dependency | Python | zmq | capnp | sqlite3 |
| :--- | :--- | :--- | :--- | :--- |
| **Pip** | n/a | `pyzmq` | `pycapnp` | n/a |
| **Ubuntu/Debian** | `python3` | `python3-zmq` | n/a | n/a |
| **FreeBSD** | `python3` | `net/py-pyzmq` | n/a | `databases/py-sqlite3` |
| **NetBSD** | `python313` | `py313-zmq` | n/a | n/a |
| **OpenBSD** | `python` | `py3-zmq` | n/a | n/a |

Rendered:

Test dependency Python zmq capnp sqlite3
Pip n/a pyzmq pycapnp n/a
Ubuntu/Debian python3 python3-zmq n/a n/a
FreeBSD python3 net/py-pyzmq n/a databases/py-sqlite3
NetBSD python313 py313-zmq n/a n/a
OpenBSD python py3-zmq n/a n/a
I don't mind either way. Just listing the Pip names is fine, or listing all. If all should be listed, it can be done with a compact markdown table, like: ``` | Dependency | Python | zmq | capnp | sqlite3 | | :--- | :--- | :--- | :--- | :--- | | **Pip** | n/a | `pyzmq` | `pycapnp` | n/a | | **Ubuntu/Debian** | `python3` | `python3-zmq` | n/a | n/a | | **FreeBSD** | `python3` | `net/py-pyzmq` | n/a | `databases/py-sqlite3` | | **NetBSD** | `python313` | `py313-zmq` | n/a | n/a | | **OpenBSD** | `python` | `py3-zmq` | n/a | n/a | ``` Rendered: | Test dependency | Python | zmq | capnp | sqlite3 | | :--- | :--- | :--- | :--- | :--- | | **Pip** | n/a | `pyzmq` | `pycapnp` | n/a | | **Ubuntu/Debian** | `python3` | `python3-zmq` | n/a | n/a | | **FreeBSD** | `python3` | `net/py-pyzmq` | n/a | `databases/py-sqlite3` | | **NetBSD** | `python313` | `py313-zmq` | n/a | n/a | | **OpenBSD** | `python` | `py3-zmq` | n/a | n/a |
hebasto (Migrated from github.com) reviewed 2026-07-09 14:04:21 +00:00
hebasto (Migrated from github.com) commented 2026-07-09 14:04:21 +00:00

On OpenBSD, the situation is even uglier than on NetBSD:

          # The system's `capnproto` package ships static libraries
          # built without -fPIC, causing relocation errors when linking
          # pycapnp's shared extension module.
          #
          # A two-part workaround is applied:
          #  1. Force building the bundled libcapnp, which is compiled
          #     with -fPIC.
          #  2. Override LDCXXSHARED to drop the -L/usr/local/lib/ that
          #     Python's sysconfig injects ahead of the bundled library
          #     directories, and which would otherwise resolve -lcapnp*
          #     and -lkj* to the system's static archives.
          if pkg_info -e 'capnproto-*'; then
            LDCXXSHARED="c++ -pthread -shared -fPIC" pip3 install --break-system-packages pycapnp -C force-bundled-libcapnp=True
          else
            pip3 install --break-system-packages pycapnp
          fi

However, our current docs don't seem helpful for either NetBSD or OpenBSD users.

On OpenBSD, the situation is even [uglier](https://github.com/hebasto/bitcoin-core-nightly/blob/443a32d692134943822172301636c15e77373d43/.github/workflows/openbsd.yml#L171-L186) than on NetBSD: ```yaml # The system's `capnproto` package ships static libraries # built without -fPIC, causing relocation errors when linking # pycapnp's shared extension module. # # A two-part workaround is applied: # 1. Force building the bundled libcapnp, which is compiled # with -fPIC. # 2. Override LDCXXSHARED to drop the -L/usr/local/lib/ that # Python's sysconfig injects ahead of the bundled library # directories, and which would otherwise resolve -lcapnp* # and -lkj* to the system's static archives. if pkg_info -e 'capnproto-*'; then LDCXXSHARED="c++ -pthread -shared -fPIC" pip3 install --break-system-packages pycapnp -C force-bundled-libcapnp=True else pip3 install --break-system-packages pycapnp fi ``` However, our current docs don't seem helpful for either NetBSD or OpenBSD users.
DrahtBot commented 2026-08-04 16:08:21 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
sedited commented 2026-08-27 12:21:10 +00:00 (Migrated from github.com)

@hebasto rebase ping.

@hebasto rebase ping.
hebasto (Migrated from github.com) reviewed 2026-09-02 11:53:24 +00:00
hebasto (Migrated from github.com) commented 2026-09-02 11:53:24 +00:00

Thanks! Reworked.

Thanks! Reworked.
hebasto commented 2026-09-02 11:56:00 +00:00 (Migrated from github.com)

Rebased and reworked to address the reviewers' feedback. Please let me know if I've left any comments unaddressed.

Rebased and reworked to address the reviewers' feedback. Please let me know if I've left any comments unaddressed.
First-time contributor

Base: f655a8df755330911c6c109c8b1d04ef5dd4ea09
Head: 22230f49f02b99be7077d6c52a775c322049903c

Findings

Suggestions

Preserve the NetBSD lsof OSABI caveat (test/README.md:46, head)

Could this entry retain the NetBSD lsof installation caveat or link to a NetBSD-specific note? The removed guide warned that a package built for a different point release may be refused and gave a conditional CHECK_OSABI workaround. NetBSD’s current pkg_install.conf(5) still describes sysutils/lsof as OSABI-sensitive, so contributors encountering that mismatch lose the project’s troubleshooting guidance here. (man.netbsd.org)

Full review report

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:354ac6255081609c804f0dd0791a2674af13bbfaa26ae1264d7b20beeecffad8:8595274470e74e0f2561e4fc93b78c5a1b674d22d35f0225de9dc2eb0d0c6e3b --> Base: `f655a8df755330911c6c109c8b1d04ef5dd4ea09` Head: `22230f49f02b99be7077d6c52a775c322049903c` ##### Findings **Suggestions** **Preserve the NetBSD `lsof` OSABI caveat** (test/README.md:46, head) Could this entry retain the NetBSD `lsof` installation caveat or link to a NetBSD-specific note? The removed guide warned that a package built for a different point release may be refused and gave a conditional `CHECK_OSABI` workaround. NetBSD’s current `pkg_install.conf(5)` still describes `sysutils/lsof` as OSABI-sensitive, so contributors encountering that mismatch lose the project’s troubleshooting guidance here. ([man.netbsd.org](https://man.netbsd.org/NetBSD-11.0/pkg_install.conf.5?utm_source=openai)) [Full review report](<https://review.fish.foo/traces/35395-22230f49f02b99be7077d6c52a775c322049903c-1100-2.html>)
sedited (Migrated from github.com) approved these changes 2026-10-19 06:09:41 +00:00
sedited (Migrated from github.com) left a comment
ACK 22230f49f02b99be7077d6c52a775c322049903c
maflcko commented 2026-10-22 12:10:27 +00:00 (Migrated from github.com)

review ACK 22230f49f0 🎙

Show signature

Signature:

untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}"
RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM=
trusted comment: review ACK 22230f49f02b99be7077d6c52a775c322049903c 🎙
FCK/9928a7AWuoFXbBd4NTQcWh05wshAkuwVVj/nAqNfiTTSAjpRA/davmJ0yJOhVq9QN2nteMbOm0AhQintBA==
review ACK 22230f49f02b99be7077d6c52a775c322049903c 🎙 <details><summary>Show signature</summary> Signature: ``` untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}" RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM= trusted comment: review ACK 22230f49f02b99be7077d6c52a775c322049903c 🎙 FCK/9928a7AWuoFXbBd4NTQcWh05wshAkuwVVj/nAqNfiTTSAjpRA/davmJ0yJOhVq9QN2nteMbOm0AhQintBA== ``` </details>
maflcko (Migrated from github.com) reviewed 2026-10-22 16:08:57 +00:00
maflcko (Migrated from github.com) commented 2026-10-22 16:08:57 +00:00

unrelated nit, because they were missing before as well:

plyvel<br>(DB corruption tests) | bcc<br>(USDT tests)

unrelated nit, because they were missing before as well: ``` plyvel<br>(DB corruption tests) | bcc<br>(USDT tests)
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!35395
No description provided.