Summary: | verify-sig.eclass: can't handle 'openssl dgst'-style checksums | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sam James <sam> |
Component: | Eclasses | Assignee: | Michał Górny <mgorny> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PullRequest |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/32575 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sam James
![]() ![]() ![]() ![]() Can you figure out what tool was used to generate that, or if that format has a name? (In reply to Michał Górny from comment #1) > Can you figure out what tool was used to generate that, or if that format > has a name? Quoting upstream's reply: ``` The SIGNATURES-x.y.z.txt files are generated using Python script. The hash file format is similar to the output of `openssl dgst`, except we omit the space after the "=" in order to avoid word wrapping. For example, we print SHA256(/dev/null)=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 instead of SHA256(/dev/null)= e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ``` Could you prepare a PR with wireshark port and key package for me to work on? I'll handle the eclass part then. I wonder how to parse the format from bash. So far my best idea is to split on "(" and ")=". I suppose I could either read the whole line and play with variable subst to split it, or set IFS="()=" and let read split it. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=641ec528b58922e5be1af2cc8516a90510232a7f commit 641ec528b58922e5be1af2cc8516a90510232a7f Author: Sam James <sam@gentoo.org> AuthorDate: 2021-04-16 05:31:03 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2023-09-14 05:30:13 +0000 net-analyzer/wireshark: add support for verify-sig Bug: https://bugs.gentoo.org/913394 Closes: https://github.com/gentoo/gentoo/pull/20401 Closes: https://github.com/gentoo/gentoo/pull/32575 Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org> net-analyzer/wireshark/Manifest | 1 + net-analyzer/wireshark/wireshark-4.1.0.ebuild | 25 +++++++++++++++++++++++++ net-analyzer/wireshark/wireshark-9999.ebuild | 25 +++++++++++++++++++++++++ 3 files changed, 51 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd33dd0699ca0a4c47e67cdd56035ce14436d84a commit cd33dd0699ca0a4c47e67cdd56035ce14436d84a Author: Sam James <sam@gentoo.org> AuthorDate: 2021-04-16 05:14:27 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2023-09-14 05:30:13 +0000 sec-keys/openpgp-keys-wireshark: initial import Bug: https://bugs.gentoo.org/913394 Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org> sec-keys/openpgp-keys-wireshark/Manifest | 1 + sec-keys/openpgp-keys-wireshark/metadata.xml | 9 +++++++++ .../openpgp-keys-wireshark-20230903.ebuild | 20 ++++++++++++++++++++ 3 files changed, 30 insertions(+) |