Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 00/15] unpacker.eclass: Tests, bugfixes and GPKG support
Date: Sun, 25 Sep 2022 18:23:26
Message-Id: 20220925182317.1559529-1-mgorny@gentoo.org
1 Hi,
2
3 Here's a patch series for unpacker.eclass that does the following:
4
5 - add tests for unpacking various file formats
6 - fix handling broken/invalid `.zst` and `.7z` files
7 - use lowercase suffixes everywhere consistently
8 - add support for `.lz4` and `.lzo`
9 - add support for on-the-fly unpacking of the image archive from `.gpkg.tar`
10 - use parallel xz decompression (by @thesamesam)
11 - support lbzip2 if available
12 - fix handling `.deb` that use GNU ar format
13 - unpack `.deb` on-the-fly (i.e. without temporary files)
14
15 Also available as PR: https://github.com/gentoo/gentoo/pull/27431
16
17 Please review.
18
19
20 Michał Górny (14):
21 eclass/tests: Add tests for unpacker.eclass
22 unpacker.eclass: Remove `-f` from zstd arguments
23 unpacker.eclass: Fix unpack_7z to respect the exit status
24 unpacker.eclass: Remove support for EAPI 5
25 unpacker.eclass: Use bash substitution instead of tr for lowercase
26 unpacker.eclass: Use lowercase in unpacker_src_uri_depends
27 unpacker.eclass: Remove uppercase RAR/LHA variants
28 unpacker.eclass: Move decompressor recognition into a function
29 unpacker.eclass: Add support for .lz4 and .lzo compression
30 unpacker.eclass: Add on-the-fly .gpkg.tar unpacking support
31 sys-kernel/gentoo-kernel-bin: Use unpacker.eclass for .gpkg.tar
32 unpacker.eclass: Support lbzip2 as parallel bz2 decompressor
33 unpacker.eclass: Fix handling GNU ar archives in hand-weaved impl
34 unpacker.eclass: Unpack .deb packages on-the-fly as well
35
36 Sam James (1):
37 unpacker.eclass: decompress xz in parallel
38
39 eclass/tests/tests-common.sh | 7 +
40 eclass/tests/unpacker.sh | 291 ++++++++++++++++++
41 eclass/unpacker.eclass | 179 +++++++----
42 .../gentoo-kernel-bin-5.19.11.ebuild | 17 +-
43 4 files changed, 428 insertions(+), 66 deletions(-)
44 create mode 100755 eclass/tests/unpacker.sh
45
46 --
47 2.37.3

Replies

Subject Author
[gentoo-dev] [PATCH 01/15] eclass/tests: Add tests for unpacker.eclass "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 02/15] unpacker.eclass: Remove `-f` from zstd arguments "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 03/15] unpacker.eclass: Fix unpack_7z to respect the exit status "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 04/15] unpacker.eclass: Remove support for EAPI 5 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 05/15] unpacker.eclass: Use bash substitution instead of tr for lowercase "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 06/15] unpacker.eclass: Use lowercase in unpacker_src_uri_depends "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 07/15] unpacker.eclass: Remove uppercase RAR/LHA variants "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 08/15] unpacker.eclass: Move decompressor recognition into a function "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 09/15] unpacker.eclass: Add support for .lz4 and .lzo compression "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 10/15] unpacker.eclass: Add on-the-fly .gpkg.tar unpacking support "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 11/15] sys-kernel/gentoo-kernel-bin: Use unpacker.eclass for .gpkg.tar "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 12/15] unpacker.eclass: decompress xz in parallel "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 13/15] unpacker.eclass: Support lbzip2 as parallel bz2 decompressor "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 14/15] unpacker.eclass: Fix handling GNU ar archives in hand-weaved impl "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 15/15] unpacker.eclass: Unpack .deb packages on-the-fly as well "Michał Górny" <mgorny@g.o>