public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH 1/2] linux-mod-r1.eclass: Require the compression to succeed
@ 2023-12-30  5:07 Michał Górny
  2023-12-30  5:07 ` [gentoo-dev] [PATCH 2/2] linux-mod-r1.eclass: Explicitly check for missing zstd Michał Górny
  2023-12-30 10:34 ` [gentoo-dev] [PATCH 1/2] linux-mod-r1.eclass: Require the compression to succeed Ulrich Mueller
  0 siblings, 2 replies; 6+ messages in thread
From: Michał Górny @ 2023-12-30  5:07 UTC (permalink / raw)
  To: gentoo-dev; +Cc: Michał Górny

Now that the module compression is conditional to USE=modules-compress,
we no longer need to allow it to fail gracefully.  If user enabled
the compression explicitly, they expect it to succeed.  If they don't
have the tools, they can always flip it off again.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
 eclass/linux-mod-r1.eclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/eclass/linux-mod-r1.eclass b/eclass/linux-mod-r1.eclass
index 67a4b64eb481..b6be4ba8a16d 100644
--- a/eclass/linux-mod-r1.eclass
+++ b/eclass/linux-mod-r1.eclass
@@ -860,9 +860,8 @@ _modules_process_compress() {
 		die "USE=modules-compress enabled but no MODULE_COMPRESS* configured"
 	fi
 
-	# could fail, assumes have commands that were needed for the kernel
 	einfo "Compressing modules (matching the kernel configuration) ..."
-	edob "${compress[@]}" -- "${@}"
+	edob "${compress[@]}" -- "${@}" || die
 }
 
 # @FUNCTION: _modules_process_depmod.d
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-30 16:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-30  5:07 [gentoo-dev] [PATCH 1/2] linux-mod-r1.eclass: Require the compression to succeed Michał Górny
2023-12-30  5:07 ` [gentoo-dev] [PATCH 2/2] linux-mod-r1.eclass: Explicitly check for missing zstd Michał Górny
2023-12-30 15:27   ` Ionen Wolkens
2023-12-30 16:15     ` Michał Górny
2023-12-30 10:34 ` [gentoo-dev] [PATCH 1/2] linux-mod-r1.eclass: Require the compression to succeed Ulrich Mueller
2023-12-30 12:58   ` Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox