New: .hash file requires newline to process correctly
https://bugs.busybox.net/show_bug.cgi?id=15976
Bug ID: 15976
Summary: .hash file requires newline to process correctly
Product: buildroot
Version: 2023.02.9
Hardware: All
OS: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]Target Milestone: ---
I have a <package-name>.hash file with
# Calculated by hand
sha256 <64 hex character hash> <downloaded package name>
I failed to put a newline at the end of the file. This caused support/download/check-hash to fail with a "No hash found" error. A quick look at the code suggests this error occurs in my case because the "read" command exits abnormally if it reaches the end of the file before encountering a newline.
I initially thought this could be addressed in the documentation but perhaps there is a simple fix.
I'm running buildroot 2023.02.9 on Ubuntu 22.04. check-hash hasn't changed since that release.
Thanks!
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 15976] .hash file requires newline to process correctly
https://bugs.busybox.net/show_bug.cgi?id=15976
Yann E. MORIN <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|[email protected] |[email protected] |.org | Status|NEW |ASSIGNED
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 15976] .hash file requires newline to process correctly
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=15976
--- Comment #1 from Yann E. MORIN <[email protected]> --- masonwardle, All,
Thanks for the report.
Quoted 2 lines
I have a <package-name>.hash file with [...]
I failed to put a newline at the end of the file.
We do have a .editorconfig file at the root of the Buildroot tree, that instructs text editors to always "insert_final_newline", as it is customary for UNIX-style text files.
What is your text editor? Can you configure it to respect the .editorconfig directives?
Quoted 1 line
this could be addressed in the documentation
Yes, it would be nice to have a patch that points to the existing .editorconfig, and points to the documentation on how to configure usual rext editors: https://editorconfig.org/#pre-installed
Would you like to send such patch, please?
Regards,
Yann E. MORIN.
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 15976] .hash file requires newline to process correctly
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=15976
Yann E. MORIN <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |MOVED
Status|ASSIGNED |RESOLVED--- Comment #2 from Yann E. MORIN <[email protected]> --- Thank you for your report.
The issue tracker for the Buildroot project has been moved to the Gitlab.com issue tracker:
https://gitlab.com/buildroot.org/buildroot/-/issues
We are taking this opportunity to close old issues in this old tracker. If you believe your issue is still relevant, please open one in the new issue tracker.
Thank you!
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot