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 79A8B158015 for ; Sat, 30 Dec 2023 05:07:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C9A482BC067; Sat, 30 Dec 2023 05:07:24 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8032E2BC064 for ; Sat, 30 Dec 2023 05:07:24 +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 2/2] linux-mod-r1.eclass: Explicitly check for missing zstd Date: Sat, 30 Dec 2023 06:07:16 +0100 Message-ID: <20231230050716.127184-2-mgorny@gentoo.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231230050716.127184-1-mgorny@gentoo.org> References: <20231230050716.127184-1-mgorny@gentoo.org> 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: 6b664192-910b-4c36-a558-06369429be69 X-Archives-Hash: 3e755d75e1b6002c53dde7448aa9e580 Signed-off-by: Michał Górny --- eclass/linux-mod-r1.eclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eclass/linux-mod-r1.eclass b/eclass/linux-mod-r1.eclass index b6be4ba8a16d..4de2e3f89995 100644 --- a/eclass/linux-mod-r1.eclass +++ b/eclass/linux-mod-r1.eclass @@ -855,6 +855,9 @@ _modules_process_compress() { compress=(gzip) fi elif linux_chkconfig_present MODULE_COMPRESS_ZSTD; then + if ! type -P zstd &>/dev/null; then + die "zstd not found, please install app-arch/zstd or disable USE=modules-compress" + fi compress=(zstd -qT"$(makeopts_jobs)" --rm) else die "USE=modules-compress enabled but no MODULE_COMPRESS* configured" -- 2.43.0