Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921284 - verify-sig.eclass: verify-sig_verify_unsigned_checksums: ERROR when checksum file does not end with a newline character
Summary: verify-sig.eclass: verify-sig_verify_unsigned_checksums: ERROR when checksum ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-03 13:09 UTC by firewar.88
Modified: 2024-01-07 01:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
error log, emerge info, verify-sig fix patch (msgattach.txz,6.66 KB, application/x-xz-compressed-tar)
2024-01-03 13:09 UTC, firewar.88
Details

Note You need to log in before you can comment on or make changes to this bug.
Description firewar.88 2024-01-03 13:09:42 UTC
Created attachment 881370 [details]
error log, emerge info, verify-sig fix patch

Function `verify-sig_verify_unsigned_checksums' does not work with checksum files that consist of a single line that does not end with a newline character.

For example. In my ebuild i need to check the rpm file with this checksum file: https://github.com/brave/brave-browser/releases/download/v1.61.104/brave-browser-1.61.104-1.x86_64.rpm.sha256

ERROR: www-client/brave-browser-1.61.104::homerepo failed (unpack phase):
verify-sig_verify_unsigned_checksums: checksums for some of the specified files were missing

But if i add a newline character to the end of checksum file everything works perfectly.

I think you need to mention this in the function comment, because it's hard to guess what the problem is. Or fix verify-sig.eclass: line 311: done < "${checksum_file}" with this one: done <<< "$( cat "${checksum_file}" )"