Hi,
Here's next part of GLEP 74 updates, this time I think it qualifiers
as 100% editorial. Ulrich Müller noticed that we don't specify how
to express sizes and checksums. I've partially solved the latter while
adding the hash algorithm table and these patches should clarify
the matters even further.
Notably, they:
1) clarify that DIST entries are relevant to package managers only
2) specify that size is an unsigned decimal, and checksums consist
of name-value pairs
3) clarify that 'Hex' encoding of hashes means lowercase hex without
any prefix or suffix
Perhaps the most controversial part is requiring lowercase -- but (drumroll...) Portage reports hash mismatch if you use uppercase.
Michał Górny (3):
glep-0074: Clarify that DIST entries are specific to PMs
glep-0074: Specify the format of size and checksum fields
glep-0074: Clarify the hex encoding of hash values
glep-0074.rst | 26 +++++++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
--
2.37.3
On Fri, 23 Sep 2022, Sheng Yu wrote:
The hash does not need to be lowercase. It can be a quick fix in
portage to accept any case.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
glep-0074.rst | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/glep-0074.rst b/glep-0074.rst
index 54bf216..bfbe092 100644
--- a/glep-0074.rst
+++ b/glep-0074.rst
@@ -191,6 +191,19 @@ The encoding can be used for other characters as well. In particular,
escaping non-printable characters might be desirable.
+Size and checksum fields
+------------------------
+
+The Manifest entries used to describe files list the file size and one
+or more checksums. The size is expressed as an unsigned decimal integer.
+The checksums are expressed using pairs of fields, with the first field
+in every pair specifying the hash name and the second field its value.
+The names of hashes and the encoding of their values are specified
+in the `checksum algorithms`_ section.
+
+It is invalid to specify a hash name without a value.
+
+
File verification
-----------------
--
2.37.3
On Fri, Sep 23, 2022 at 04:03:54PM +0200, Michał Górny wrote:
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
glep-0074.rst | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/glep-0074.rst b/glep-0074.rst
index 54bf216..bfbe092 100644
--- a/glep-0074.rst
+++ b/glep-0074.rst
@@ -191,6 +191,19 @@ The encoding can be used for other characters as well. In particular,
escaping non-printable characters might be desirable.
+Size and checksum fields
+------------------------
+
+The Manifest entries used to describe files list the file size and one
+or more checksums. The size is expressed as an unsigned decimal integer.
"an unsigned decimal integer" representing the file's size in bytes
(rather than bits, or nibbles, or $UNIT), right?
Hi,
The hash does not need to be lowercase. It can be a quick fix in portage to accept any case.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 399 |
Nodes: | 16 (2 / 14) |
Uptime: | 101:50:19 |
Calls: | 8,363 |
Calls today: | 2 |
Files: | 13,165 |
Messages: | 5,898,006 |