-
Notifications
You must be signed in to change notification settings - Fork 37.7k
build: add support for NetBSD in depends #23955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
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. |
d1ea46e
to
65ae79c
Compare
…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
65ae79c
to
63c1706
Compare
…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
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. |
63c1706
to
d28dbbf
Compare
Rebased and added Guix build to PR description. |
d28dbbf
to
d25f3d5
Compare
Tested d25f3d5 in fresh installation of NetBSD 9.2. Packages that were required to build depends:
Building depends:
Building Bitcoin Core:
|
Tested #24254 with this PR, and it fixes this error. |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
d25f3d5
to
28efee6
Compare
There was a problem hiding this 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
Guix builds:
|
There was a problem hiding this 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.
28efee6
to
ea2a120
Compare
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. |
ea2a120
to
1f33d92
Compare
1f33d92
to
bcd36e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK bcd36e1
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
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: