-
Notifications
You must be signed in to change notification settings - Fork 5
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
cmake: Keep RPATH for the bitcoin-chainstate
target in the build tree
#242
Conversation
1. Keep RPATH for the `bitcoin-chainstate` target in the build tree, which is useful for the shared `libbitcoinkernel`. 2. Document future improvements.
cc:
|
@@ -355,6 +355,15 @@ if(BUILD_UTIL_CHAINSTATE) | |||
add_executable(bitcoin-chainstate | |||
bitcoin-chainstate.cpp | |||
) | |||
# TODO: The `SKIP_BUILD_RPATH` property setting can be deleted |
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 don't understand this. Don't we always want the BUILD_RPATH for bitcoin-chainstate so that it works with a shared kernel in the build tree? Then it's stripped for the INSTALL_RPATH binary and everyone's happy?
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.
Don't we always want the BUILD_RPATH for bitcoin-chainstate so that it works with a shared kernel in the build tree?
We do, of course.
I mean, in the future, this code:
Lines 606 to 607 in 02d9f7f
set(CMAKE_SKIP_BUILD_RPATH TRUE) | |
set(CMAKE_SKIP_INSTALL_RPATH TRUE) |
set(CMAKE_SKIP_INSTALL_RPATH TRUE)
which effectively makes set_target_properties(bitcoin-chainstate PROPERTIES SKIP_BUILD_RPATH OFF)
redundant.
Or do you mean always keep it for the purpose of explicitness?
Add a new "ubuntu-chainstate" job, which builds and runs the `bitcoin-chainstate` binary with static and shared `libbitcoinkernel`.
ACK f39a181 |
I guess I'm just having trouble understanding the goal here at a high-level. I've verified (locally) that the runpath now exists in the build-tree, and thus |
But the |
Ah, ok, that's the part I was missing. Thanks. Seems it should be added, as part of the upstream guix changes to check the install tree. |
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 f39a181
Sorry, but I have to clarify. The |
This is a follow-up of bitcoin#30312 and #236.
On staging branch @ 8b80c1a:
This PR fixes this issue and adds a new CI job to check it.