Re: [gentoo-dev] [PATCH 06/15] unpacker.eclass: Use lowercase in unpacker_src_uri_depends

2022-09-25 Thread John Helmert III
On Sun, Sep 25, 2022 at 04:04:07PM -0500, John Helmert III wrote: > On Sun, Sep 25, 2022 at 08:23:08PM +0200, Michał Górny wrote: > > Transform the URIs to lowercase in unpacker_src_uri_depends() for > > consistency with the behavior of _unpacker(). > > > > Signed-off-by: Michał Górny > > --- >

Re: [gentoo-dev] [PATCH 06/15] unpacker.eclass: Use lowercase in unpacker_src_uri_depends

2022-09-25 Thread John Helmert III
On Sun, Sep 25, 2022 at 08:23:08PM +0200, Michał Górny wrote: > Transform the URIs to lowercase in unpacker_src_uri_depends() for > consistency with the behavior of _unpacker(). > > Signed-off-by: Michał Górny > --- > eclass/unpacker.eclass | 3 ++- > 1 file changed, 2 insertions(+), 1

[gentoo-dev] [PATCH v2 3/3] glep-0074: Clarify the hex encoding of hash values

2022-09-25 Thread Michał Górny
Signed-off-by: Michał Górny --- glep-0074.rst | 8 1 file changed, 8 insertions(+) diff --git a/glep-0074.rst b/glep-0074.rst index 16cbb67..06e961f 100644 --- a/glep-0074.rst +++ b/glep-0074.rst @@ -418,6 +418,14 @@ Checksum algorithms | ``WHIRLPOOL`` | Whirlpool [#BARRETO]_ |

[gentoo-dev] [PATCH v2 2/3] glep-0074: Specify the format of size and checksum fields

2022-09-25 Thread Michał Górny
Signed-off-by: Michał Górny --- glep-0074.rst | 13 + 1 file changed, 13 insertions(+) diff --git a/glep-0074.rst b/glep-0074.rst index 54bf216..16cbb67 100644 --- a/glep-0074.rst +++ b/glep-0074.rst @@ -191,6 +191,19 @@ The encoding can be used for other characters as well. In

[gentoo-dev] [PATCH v2 1/3] glep-0074: Clarify that DIST entries are specific to PMs

2022-09-25 Thread Michał Górny
Signed-off-by: Michał Górny --- glep-0074.rst | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/glep-0074.rst b/glep-0074.rst index 7f53302..54bf216 100644 --- a/glep-0074.rst +++ b/glep-0074.rst @@ -8,7 +8,7 @@ Type: Standards Track Status: Final Version: 1.3 Created:

[gentoo-dev] [PATCH v2 0/3] glep-0074: clarifications about size and checksum fields

2022-09-25 Thread Michał Górny
Hi, Changes in v2: clarified that size is in bytes. 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

Re: [gentoo-dev] [PATCH 2/3] glep-0074: Specify the format of size and checksum fields

2022-09-25 Thread Michał Górny
On Sat, 2022-09-24 at 18:09 -0500, John Helmert III wrote: > On Fri, Sep 23, 2022 at 04:03:54PM +0200, Michał Górny wrote: > > Signed-off-by: Michał Górny > > --- > > glep-0074.rst | 13 + > > 1 file changed, 13 insertions(+) > > > > diff --git a/glep-0074.rst b/glep-0074.rst > >

Re: [gentoo-dev] [PATCH 0/3] glep-0074: clarifications about size and checksum fields

2022-09-25 Thread Michał Górny
On Fri, 2022-09-23 at 17:58 +, Sheng Yu wrote: > Hi, > > The hash does not need to be lowercase. It can be a quick fix in portage to > accept any case. > I'm all for fixing Portage but I don't think we should be breaking backwards compatibility over this. -- Best regards, Michał Górny

[gentoo-dev] [PATCH 15/15] unpacker.eclass: Unpack .deb packages on-the-fly as well

2022-09-25 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/unpacker.eclass | 60 +++--- 1 file changed, 33 insertions(+), 27 deletions(-) diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass index 100f11428622..3d23151b636e 100644 --- a/eclass/unpacker.eclass +++

[gentoo-dev] [PATCH 14/15] unpacker.eclass: Fix handling GNU ar archives in hand-weaved impl

2022-09-25 Thread Michał Górny
Fix the hand-weaved implementation of ar unpacking that is used on Prefix to handle slash-terminated filenames of GNU ar format correctly. Signed-off-by: Michał Górny --- eclass/tests/unpacker.sh | 4 eclass/unpacker.eclass | 2 ++ 2 files changed, 6 insertions(+) diff --git

[gentoo-dev] [PATCH 13/15] unpacker.eclass: Support lbzip2 as parallel bz2 decompressor

2022-09-25 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/unpacker.eclass | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass index d96b56609869..370f00a83bba 100644 --- a/eclass/unpacker.eclass +++ b/eclass/unpacker.eclass @@ -30,7 +30,8 @@

[gentoo-dev] [PATCH 12/15] unpacker.eclass: decompress xz in parallel

2022-09-25 Thread Michał Górny
From: Sam James >= xz 5.3.3_alpha supports parallel decompression, so let's use it. As recently added to Portage (see https://github.com/gentoo/portage/commit/48d107e5c1a103d59a053aebeefa9a5aac5c32ff). Signed-off-by: Sam James --- eclass/unpacker.eclass | 4 ++-- 1 file changed, 2

[gentoo-dev] [PATCH 11/15] sys-kernel/gentoo-kernel-bin: Use unpacker.eclass for .gpkg.tar

2022-09-25 Thread Michał Górny
Signed-off-by: Michał Górny --- .../gentoo-kernel-bin-5.19.11.ebuild| 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.11.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.11.ebuild

[gentoo-dev] [PATCH 10/15] unpacker.eclass: Add on-the-fly .gpkg.tar unpacking support

2022-09-25 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/tests/unpacker.sh | 47 eclass/unpacker.eclass | 38 2 files changed, 85 insertions(+) diff --git a/eclass/tests/unpacker.sh b/eclass/tests/unpacker.sh index

[gentoo-dev] [PATCH 09/15] unpacker.eclass: Add support for .lz4 and .lzo compression

2022-09-25 Thread Michał Górny
Add support for .lz4 and .lzo formats that can be used for .tar.gpkg compression. Signed-off-by: Michał Górny --- eclass/tests/unpacker.sh | 7 +++ eclass/unpacker.eclass | 8 2 files changed, 15 insertions(+) diff --git a/eclass/tests/unpacker.sh b/eclass/tests/unpacker.sh

[gentoo-dev] [PATCH 08/15] unpacker.eclass: Move decompressor recognition into a function

2022-09-25 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/unpacker.eclass | 44 +- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass index ca6761488100..8fb1c2abd1cf 100644 --- a/eclass/unpacker.eclass +++

[gentoo-dev] [PATCH 07/15] unpacker.eclass: Remove uppercase RAR/LHA variants

2022-09-25 Thread Michał Górny
Remove the uppercase variants of RAR/LHA that were copied from Portage implementation. The functions always convert filenames to lowercase, so accounting for them is redundant. Signed-off-by: Michał Górny --- eclass/unpacker.eclass | 8 1 file changed, 4 insertions(+), 4 deletions(-)

[gentoo-dev] [PATCH 06/15] unpacker.eclass: Use lowercase in unpacker_src_uri_depends

2022-09-25 Thread Michał Górny
Transform the URIs to lowercase in unpacker_src_uri_depends() for consistency with the behavior of _unpacker(). Signed-off-by: Michał Górny --- eclass/unpacker.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass index

[gentoo-dev] [PATCH 05/15] unpacker.eclass: Use bash substitution instead of tr for lowercase

2022-09-25 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/unpacker.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass index 915a31c86437..482cf141ee1d 100644 --- a/eclass/unpacker.eclass +++ b/eclass/unpacker.eclass @@ -389,7 +389,7 @@

[gentoo-dev] [PATCH 04/15] unpacker.eclass: Remove support for EAPI 5

2022-09-25 Thread Michał Górny
There are no ebuilds using it in EAPI 5 anymore, and it is the last EAPI requiring support for bash 3.2. Signed-off-by: Michał Górny --- eclass/unpacker.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass index

[gentoo-dev] [PATCH 03/15] unpacker.eclass: Fix unpack_7z to respect the exit status

2022-09-25 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/unpacker.eclass | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass index c26523a419df..1f2f09e33ad6 100644 --- a/eclass/unpacker.eclass +++ b/eclass/unpacker.eclass @@ -344,8 +344,11 @@

[gentoo-dev] [PATCH 02/15] unpacker.eclass: Remove `-f` from zstd arguments

2022-09-25 Thread Michał Górny
Remove `-f` from zstd arguments. This option causes zstd to ignore input errors, notably causing it to pass invalid files through rather than returning an error. Closes: https://bugs.gentoo.org/872662 Signed-off-by: Michał Górny --- eclass/unpacker.eclass | 2 +- 1 file changed, 1

[gentoo-dev] [PATCH 01/15] eclass/tests: Add tests for unpacker.eclass

2022-09-25 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/tests/tests-common.sh | 7 ++ eclass/tests/unpacker.sh | 233 +++ 2 files changed, 240 insertions(+) create mode 100755 eclass/tests/unpacker.sh diff --git a/eclass/tests/tests-common.sh b/eclass/tests/tests-common.sh

[gentoo-dev] [PATCH 00/15] unpacker.eclass: Tests, bugfixes and GPKG support

2022-09-25 Thread Michał Górny
Hi, Here's a patch series for unpacker.eclass that does the following: - add tests for unpacking various file formats - fix handling broken/invalid `.zst` and `.7z` files - use lowercase suffixes everywhere consistently - add support for `.lz4` and `.lzo` - add support for on-the-fly unpacking

[gentoo-dev] Last-rites: dev-python/ssh2-python

2022-09-25 Thread Piotr Karbowski
# Piotr Karbowski (2022-09-25) # No package in tree depends on dev-python/ssh2-python. Masked for removal. # Removal on 2022-10-25. dev-python/ssh2-python