-
Notifications
You must be signed in to change notification settings - Fork 968
Libbase58 as git submodule #103
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
Pointing to the latest release (0.1.4)
|
CI reports some of the test binaries breaking: |
The object file should not be built inside the submodule, as that can confuse git. Not everything depends on the libbase58 header (CCAN doesn't), so move that to the everything-else depends line. The BITCOIN_SRC etc should also move to bitcoin/Makefile, but that's a bigger change. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
Lucas Betschart <notifications@github.com> writes:
This PR adds a git submodule for libbase58, pointing to the last tagged release (0.1.4, same as in the Ubuntu repo), as suggested in the comments by @cdecker in #64.
Should fix #64 & make building on various systems easier (atm probably everything that is not Ubuntu) and the dependency version required/supported more clear.
I’m not very familiar with plain make files, so please let me know what I need to do different.
I would also write a cmake build system over Christmas / New Year if you're interested.
Please don't, at least for now. I am happy to maintain the Makefiles
for Unix-like systems, and there are a lot of other things we need to
change if we want to support non-Unix systems.
Your changes were neat, but there were a few twists I had to add;
git submodules are a little tricky. I've pushed them to:
https://github.com/ElementsProject/lightning/tree/pr-103
Let's see if that makes the CI happy :)
Thanks!
Rusty.
|
|
Finally figured out how to push onto a PR created by another user 😉 I took the liberty of pushing the changes by @rustyrussell and me onto your branch @lclc, I'll try to get the CI to accept this. It was complaining about the unit tests. |
Trailing whitespace and include ordering was broken.
|
Ok great, thanks! |
|
If @rustyrussell is ok with this I'll marge it 😄 |
rustyrussell
left a comment
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.
Sorry for the delay. Rebased and merged.
This PR adds a git submodule for libbase58, pointing to the last tagged release (0.1.4, same as in the Ubuntu repo), as suggested in the comments by @cdecker in #64.
Should fix #64 & make building on various systems easier (atm probably everything that is not Ubuntu) and the dependency version required/supported more clear.
I’m not very familiar with plain make files, so please let me know what I need to do different.
I would also write a cmake build system over Christmas / New Year if you're interested.
A list of some of the advantages of CMake: https://cmake.org/Wiki/Really_Cool_CMake_Features
I especially like the ootb creation of Debian and RPM packages.
Also cross-compiling gets much easier: http://www.vtk.org/Wiki/CMake_Cross_Compiling
It's very easy to read & understand and well documented.
I've already done the same for the Open Transactions library (https://raw.githubusercontent.com/lclc/opentxs/develop/CMakeLists.txt) and the Digital Bitbox hardware wallet code (https://raw.githubusercontent.com/digitalbitbox/mcu/master/CMakeLists.txt).