-
Notifications
You must be signed in to change notification settings - Fork 38.8k
doc: Improve dependencies documentation #31634
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. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31634. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. 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. |
|
lgtm ACK 08c74105fd65b6356fcdb9d01972fd19f160b588, otherwise |
|
Would be good to move discussion/question-type commentary out of the PR summary into its own comment as it becomes part of the commit message, regarding the "I was a bit confused ... please let me know ...". Alternatively re-word it. |
|
Not sure. Re-arranging this to put two different compilers under "required" doesn't seem less confusing. If anything, I think the tables should be left as-is, and a "developer tools" header added, if there is any confusion. |
With a "development tools" header it would still be unclear which development tools are required ( Would it make sense to add a "Compiler" header with a paragraph that one of them is required and a table containing both. And then merge the other tables as @maflcko suggested ? |
c428bdb to
ec60b6a
Compare
|
I agree that the previous version or this PR did not make sense for clearing up the confusion. I force pushed a new approach and amended the commit message / PR description. (Preview) |
ec60b6a to
d0ca5c5
Compare
hodlinator
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.
ACK d0ca5c53635916868e7d5da913faf3d9a8d706b7
Good to clarify that only one of the compilers is required, and re-introduce that section!
Thanks for updating the PR summary.
Commit message
Suggest removing repetition of initial sentence and fixing grammar of last line, + less important other changes.
-doc: improve dependencies documentation
+doc: Improve dependencies documentation
-This commit improves the dependencies documentation by:
-- moving "Clang" and "GCC" from the table to a new "Compiler" heading.
-- moving "Python" and "Cmake" into the required table.
-- merging the optional dependencies into one table. Removed sub-headers
+- Move "Clang" and "GCC" from the table to a new "Compiler" heading, indicating either is required.
+- Move "Python" and "CMake" into the required table.
+- Merge the optional dependencies into one table. Removed sub-headers
are put into parentheses behind the dependency name in the first
column.
-- replacing the whitespace in the "Minimum required" column of
+- Replace the whitespace in the "Minimum required" column of
"qrencode" with "N/A" for consistency.
-- adding missing info in for the "systemtap" dependency.
+- Add missing info for the "systemtap" dependency.d0ca5c5 to
1fcc1ce
Compare
hodlinator
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.
re-ACK 1fcc1ce0edcc8ae522ab9103ad79adf58fc0fe0e
Thanks for applying my suggestions.
doc/dependencies.md
Outdated
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.
Python isn't required.
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.
ah yes..thanks. should I move Linux Kernel to optional too then ?
1fcc1ce to
05a008c
Compare
|
added a blank line between the paragraph and the table in I think |
|
Maybe a separate table for runtime dependencies makes more sense. It is pretty clear that runtime dependencies don't have a "Version used". An alternative would be to just remove the "Runtime" column, as it can be derived from the "Version used" column. |
tbh. I don't understand what "version used" really means in this context, looked at a few linked PR's but they went over my head... but anyways I think this is out of scope for this PR / could be addressed in another PR. I only wanted to clear up some confusion I had because of the two separate tables. |
|
"Version used" means the version used in Bitcoin Core's depends system, which compiles the version and statically links it into the release binaries. |
doc/dependencies.md
Outdated
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.
Doesn't CMake dependency have a "version used"?
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.
CMake 3.24.2 is used for release binaries in the Guix environment.
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.
In thread #31634 (comment):
The plot thickens - reference to lower version than minimum under depends/:
bitcoin/depends/hosts/linux.mk
Lines 44 to 45 in df8bf65
| # Refer to doc/dependencies.md for the minimum required kernel. | |
| linux_cmake_system_version=3.17.0 |
I agree with the author in #31634 (comment) that it's fine to limit the scope of the current PR.
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.
If you imply that 3.17.0 is a CMake version, it is not. It’s CMAKE_SYSTEM_VERSION.
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.
thank you. so the PR to reference for the "version used" would be #27172 correct ?
manifest uses ((gnu packages cmake) #:select (cmake-minimal)) which is why we can find the version (relevant comment in cmake.scm)
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.
hodlinator
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.
re-ACK 05a008c1d07a38f589536661822d5450aa4e9438
- Thanks to @rkrux for spotting the formatting issue I missed.
- SQLite now categorized as
(wallet). 👍
doc/dependencies.md
Outdated
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.
In thread #31634 (comment):
The plot thickens - reference to lower version than minimum under depends/:
bitcoin/depends/hosts/linux.mk
Lines 44 to 45 in df8bf65
| # Refer to doc/dependencies.md for the minimum required kernel. | |
| linux_cmake_system_version=3.17.0 |
I agree with the author in #31634 (comment) that it's fine to limit the scope of the current PR.
- Move "Clang" and "GCC" from the table to a new "Compiler" heading, indicating either is required. - Move "CMake" into the required table. - Move "Python" into the optional table. - Merge the optional dependencies into one table. Removed sub-headers are put into parentheses behind the dependency name in the first column. - Replace the whitespace in the "Minimum required" column of "qrencode" with "N/A" for consistency. - Add missing info for the "systemtap" dependency. - Add context for "Linux Kernel" dependency in parentheses behind the dependency name.
05a008c to
a759ea3
Compare
hodlinator
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.
Initially there was a distinction between the compiler dependencies and
other required dependencies (refs #23565) but the distinction was
removed (refs #24585) which is why having two distinct tables could lead
to confusion now.