From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E34A1158094 for ; Sun, 25 Sep 2022 18:23:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A45272BC03A; Sun, 25 Sep 2022 18:23:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 687112BC02E for ; Sun, 25 Sep 2022 18:23:23 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 00/15] unpacker.eclass: Tests, bugfixes and GPKG support Date: Sun, 25 Sep 2022 20:23:02 +0200 Message-Id: <20220925182317.1559529-1-mgorny@gentoo.org> X-Mailer: git-send-email 2.37.3 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 5615bc2e-cfaa-4899-9964-947f91437430 X-Archives-Hash: d3faaa418ca3d68e548a22b6a0c70306 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 of the image archive from `.gpkg.tar` - use parallel xz decompression (by @thesamesam) - support lbzip2 if available - fix handling `.deb` that use GNU ar format - unpack `.deb` on-the-fly (i.e. without temporary files) Also available as PR: https://github.com/gentoo/gentoo/pull/27431 Please review. Michał Górny (14): eclass/tests: Add tests for unpacker.eclass unpacker.eclass: Remove `-f` from zstd arguments unpacker.eclass: Fix unpack_7z to respect the exit status unpacker.eclass: Remove support for EAPI 5 unpacker.eclass: Use bash substitution instead of tr for lowercase unpacker.eclass: Use lowercase in unpacker_src_uri_depends unpacker.eclass: Remove uppercase RAR/LHA variants unpacker.eclass: Move decompressor recognition into a function unpacker.eclass: Add support for .lz4 and .lzo compression unpacker.eclass: Add on-the-fly .gpkg.tar unpacking support sys-kernel/gentoo-kernel-bin: Use unpacker.eclass for .gpkg.tar unpacker.eclass: Support lbzip2 as parallel bz2 decompressor unpacker.eclass: Fix handling GNU ar archives in hand-weaved impl unpacker.eclass: Unpack .deb packages on-the-fly as well Sam James (1): unpacker.eclass: decompress xz in parallel eclass/tests/tests-common.sh | 7 + eclass/tests/unpacker.sh | 291 ++++++++++++++++++ eclass/unpacker.eclass | 179 +++++++---- .../gentoo-kernel-bin-5.19.11.ebuild | 17 +- 4 files changed, 428 insertions(+), 66 deletions(-) create mode 100755 eclass/tests/unpacker.sh -- 2.37.3