Skip to content

Conversation

fanquake
Copy link
Member

@fanquake fanquake commented Jan 3, 2022

Similar to #23948. Doesn't build the Qt package; I haven't looked at doing that yet, but have an assumption that it's going to fail out of the box similar to the FreeBSD build.

Guix Build:

@DrahtBot
Copy link
Contributor

DrahtBot commented Jan 3, 2022

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #24301 (build: header-only Boost by fanquake)

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.

@fanquake fanquake force-pushed the depends_support_netbsd branch from d1ea46e to 65ae79c Compare January 10, 2022 00:24
fanquake added a commit to fanquake/bitcoin that referenced this pull request Jan 20, 2022
…10 build

6897c4b build: patch depends zeromq to fix building on NetBSD Current (fanquake)
ce6dd2f zeromq 4.3.4 (fanquake)

Pull request description:

  This is a prerequisite for bitcoin#23955. It updates zeromq to the latest available version, and adds a patch, [that I've sent upstream](zeromq/libzmq#4326), to fix building on NetBSD Current (10).

ACKs for top commit:
  hebasto:
    ACK 6897c4b, I have reviewed the code and it looks OK, I agree it can be merged.

Tree-SHA512: d05d9753630faebe842e1ca70c8c4af660a38e7331a9d95e84df3a3b14564c5118ca41c4fc49fb71dfee563b63e1014e5a3f8874d652e26de59e8e188a12970e
@fanquake fanquake force-pushed the depends_support_netbsd branch from 65ae79c to 63c1706 Compare January 20, 2022 01:37
@fanquake fanquake marked this pull request as ready for review January 20, 2022 01:37
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jan 20, 2022
…10 build

6897c4b build: patch depends zeromq to fix building on NetBSD Current (fanquake)
ce6dd2f zeromq 4.3.4 (fanquake)

Pull request description:

  This is a prerequisite for bitcoin#23955. It updates zeromq to the latest available version, and adds a patch, [that I've sent upstream](zeromq/libzmq#4326), to fix building on NetBSD Current (10).

ACKs for top commit:
  hebasto:
    ACK 6897c4b, I have reviewed the code and it looks OK, I agree it can be merged.

Tree-SHA512: d05d9753630faebe842e1ca70c8c4af660a38e7331a9d95e84df3a3b14564c5118ca41c4fc49fb71dfee563b63e1014e5a3f8874d652e26de59e8e188a12970e
@kristapsk
Copy link
Contributor

If some NetBSD bitcoiner is looking at this, would be cool to help wih review / test of this - JoinMarket-Org/joinmarket-clientserver#1066. None of JM developers are using NetBSD, so we can't test this ourselves.

@fanquake fanquake force-pushed the depends_support_netbsd branch from 63c1706 to d28dbbf Compare February 3, 2022 00:57
@fanquake
Copy link
Member Author

fanquake commented Feb 3, 2022

Rebased and added Guix build to PR description.

@fanquake fanquake force-pushed the depends_support_netbsd branch from d28dbbf to d25f3d5 Compare February 11, 2022 21:23
@hebasto
Copy link
Member

hebasto commented Feb 13, 2022

Tested d25f3d5 in fresh installation of NetBSD 9.2.

Packages that were required to build depends:

# pkgin install autoconf automake bash gcc8 gmake libtool pkg-config

Building depends:

$ gmake -C depends NO_QT=1 CC=/usr/pkg/gcc8/bin/gcc CXX=/usr/pkg/gcc8/bin/g++

Building Bitcoin Core:

$ ./autogen.sh
$ CONFIG_SITE=$PWD/depends/x86_64-unknown-netbsd9.2/share/config.site ./configure
$ gmake
...

Failure with Boost.Process:
VirtualBox_NetBSD 9_14_02_2022_00_24_01

@hebasto
Copy link
Member

hebasto commented Feb 13, 2022

Failure with Boost.Process

Tested #24254 with this PR, and it fixes this error.

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK d25f3d5

x86_64_netbsd_CXX=$(default_host_CXX) -m64
endif

netbsd_cmake_system=NetBSD
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, CMake docs say nothing about cross compiling for NetBSD, and about setting of the CMAKE_SYSTEM_NAME macro for such a case.

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-ACK 28efee6

Rebasing verified with

$ git range-diff master d25f3d5c0d49474321fa6ad7fac1610998a5d3a1 28efee627d4b53f1a774abdc26e5050dd32465fd

@hebasto
Copy link
Member

hebasto commented Feb 14, 2022

Guix builds:

$ find guix-build-$(git rev-parse --short=12 HEAD)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum
e122be668043a390fd8e3f07780efa0bd1498db666ff5dc37d8d771c0f0313f0  guix-build-28efee627d4b/output/aarch64-linux-gnu/SHA256SUMS.part
5beb786c0fe1c8ac7b025119e54b13a43c8d70c07bb20ae338d4082030d5689d  guix-build-28efee627d4b/output/aarch64-linux-gnu/bitcoin-28efee627d4b-aarch64-linux-gnu-debug.tar.gz
7e312af98eb7502c836e3c1fed57a51eba57eb98360d9135a92e92aad6d0626f  guix-build-28efee627d4b/output/aarch64-linux-gnu/bitcoin-28efee627d4b-aarch64-linux-gnu.tar.gz
b9835355e6908a5f1edfc422f16b280caeef0a79d40a2b6ab7789ea432cc3528  guix-build-28efee627d4b/output/arm-linux-gnueabihf/SHA256SUMS.part
6c02a731db0399561d3b6399ec26563af3614776a3a860c904f54b0c59cb5291  guix-build-28efee627d4b/output/arm-linux-gnueabihf/bitcoin-28efee627d4b-arm-linux-gnueabihf-debug.tar.gz
655f0b23b132afb12261d9b6bba22849eb8c937a0a35555742de317988265e35  guix-build-28efee627d4b/output/arm-linux-gnueabihf/bitcoin-28efee627d4b-arm-linux-gnueabihf.tar.gz
4a2ffe358a179df8a6e695826cc79663ab5a8244ea519d5ee15833779be01424  guix-build-28efee627d4b/output/arm64-apple-darwin/SHA256SUMS.part
282a59ec4768ae0f3ac5ff6fd3eea896468374cf173839f237b9540e3e1635de  guix-build-28efee627d4b/output/arm64-apple-darwin/bitcoin-28efee627d4b-arm64-apple-darwin.tar.gz
f5290b7f3ec9b748b0a909a89bfd2680f65f7aa7b7b203035aba4ecdf1b39121  guix-build-28efee627d4b/output/arm64-apple-darwin/bitcoin-28efee627d4b-osx-unsigned.dmg
79df15cb9c8d0a20a5e85e40080da5c44bd64ee70f2ec8f446c101e0643bc52f  guix-build-28efee627d4b/output/arm64-apple-darwin/bitcoin-28efee627d4b-osx-unsigned.tar.gz
fd79ce49ade14f5ae536e42fc3f258cbf310193fa694563a96b07942d47af72c  guix-build-28efee627d4b/output/dist-archive/bitcoin-28efee627d4b.tar.gz
00d04842ec7c934aec5e35f3b2aac793e95b68def39e6dc389b1e171a1787916  guix-build-28efee627d4b/output/powerpc64-linux-gnu/SHA256SUMS.part
7537a84c76c3b5e35de794ae17c77d377e514a9882c116c0b4ba565cd16ecf80  guix-build-28efee627d4b/output/powerpc64-linux-gnu/bitcoin-28efee627d4b-powerpc64-linux-gnu-debug.tar.gz
2ecafcf687717319c27f4a7091a033f2519b5b2edf995772275079259db7ce10  guix-build-28efee627d4b/output/powerpc64-linux-gnu/bitcoin-28efee627d4b-powerpc64-linux-gnu.tar.gz
1efc482c059455b56401ec004166781961a4fdedb005d683bdd5a9eb818f1803  guix-build-28efee627d4b/output/powerpc64le-linux-gnu/SHA256SUMS.part
b51888bf740bcaf3a9ceb753984c73e16772fafcc11f4926d365b3dbfde3b6b5  guix-build-28efee627d4b/output/powerpc64le-linux-gnu/bitcoin-28efee627d4b-powerpc64le-linux-gnu-debug.tar.gz
35a59b17c9432540e2f857b9ce5c0b136183614f42d2289e87b69fe9dc39dd0f  guix-build-28efee627d4b/output/powerpc64le-linux-gnu/bitcoin-28efee627d4b-powerpc64le-linux-gnu.tar.gz
5a115106d2def360f859310d4d41be044f2a9b6b1a8ed07fb485756692ddaa02  guix-build-28efee627d4b/output/riscv64-linux-gnu/SHA256SUMS.part
c5a90c83560f806dbdb4cff4e1e981d43e78d0099a6c1ab5999fe67f41462198  guix-build-28efee627d4b/output/riscv64-linux-gnu/bitcoin-28efee627d4b-riscv64-linux-gnu-debug.tar.gz
c01e23b2c5965de9839d36d8e10af567c05c6664b2b2e8f3db8214d6b02ab803  guix-build-28efee627d4b/output/riscv64-linux-gnu/bitcoin-28efee627d4b-riscv64-linux-gnu.tar.gz
f77555dde67e61b6b561ac93b07931d80bf2b85a7beb8116634487884b088725  guix-build-28efee627d4b/output/x86_64-apple-darwin/SHA256SUMS.part
e64557352683a0f45274cfa7bbd0882faf5b751cfe6a41771514431ea87e80b4  guix-build-28efee627d4b/output/x86_64-apple-darwin/bitcoin-28efee627d4b-osx-unsigned.dmg
8dcd82c98f4ba54dc0eaa872d9a341d04d5ac483267b0f3616b0ffd8c0051349  guix-build-28efee627d4b/output/x86_64-apple-darwin/bitcoin-28efee627d4b-osx-unsigned.tar.gz
ff65826155f1e574e4deb4b863ea5e6d535419250cd7d7daa183ec45f97ad013  guix-build-28efee627d4b/output/x86_64-apple-darwin/bitcoin-28efee627d4b-osx64.tar.gz
61a18c396d01b9708e71a34882027a5c94ec2802a0afbab5c41769e84b131335  guix-build-28efee627d4b/output/x86_64-linux-gnu/SHA256SUMS.part
4c8b0ead06674ac7241892c41c984cfbcf715345085312e376c5dcc71f1bbbf8  guix-build-28efee627d4b/output/x86_64-linux-gnu/bitcoin-28efee627d4b-x86_64-linux-gnu-debug.tar.gz
a7aebd05a1cbc9acdafb673572160ec1283a2cfe91cecfa2e653328ff6c2304d  guix-build-28efee627d4b/output/x86_64-linux-gnu/bitcoin-28efee627d4b-x86_64-linux-gnu.tar.gz

Copy link
Member

@theuni theuni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this is just for convenience, and not intended to be supported in any way? If so, Concept ACK

The additions look good to me other than the wonky CXXFLAGS.

My only concern is that since this isn't being tested, what happens if/when builds stop working and nobody notices or bothers to fix. Maybe explicitly describe it as unsupported somewhere? That way at least people would be hesitant to rely on it. Same goes for freebsd, I suppose.

@fanquake fanquake force-pushed the depends_support_netbsd branch from 28efee6 to ea2a120 Compare February 14, 2022 16:34
@fanquake
Copy link
Member Author

I suppose this is just for convenience, and not intended to be supported in any way?

Yes. The intention is minimal support, but enough that depends is usable on *BSD platforms. I will be testing builds irregularly, however given that we aren't supporting Qt, and the continued reduction in dependencies, I also don't expect things too break too often.

@fanquake fanquake force-pushed the depends_support_netbsd branch from ea2a120 to 1f33d92 Compare February 14, 2022 16:40
@fanquake fanquake force-pushed the depends_support_netbsd branch from 1f33d92 to bcd36e1 Compare February 14, 2022 16:52
Copy link
Member

@theuni theuni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK bcd36e1

@fanquake fanquake merged commit 9011d4d into bitcoin:master Feb 14, 2022
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Feb 15, 2022
bcd36e1 build: correct depends FreeBSD C{XX}FLAGS (fanquake)
7b06ffc build: add NetBSD support to depends (fanquake)

Pull request description:

  Similar to bitcoin#23948. Doesn't build the Qt package; I haven't looked at doing that yet, but have an assumption that it's going to fail out of the box similar to the FreeBSD build.

  Guix Build:
  ```bash
  ```

ACKs for top commit:
  theuni:
    ACK bcd36e1

Tree-SHA512: 9a0946cefbcb9a92dd730b885463f3213e304c8d4b39fea8d831fc013a73d2ef998ca84e384bf45a01fa1449cf5a35eaffaa5b57a9062c2cdda34312d33ec3fc
@fanquake fanquake deleted the depends_support_netbsd branch November 29, 2022 15:49
delta1 added a commit to delta1/elements that referenced this pull request Jun 30, 2023
@bitcoin bitcoin locked and limited conversation to collaborators Nov 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants