From 09fc9aa7f2dec0c546e980c0cb18ae2a23dba942 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 29 Mar 2026 01:00:00 +0100 Subject: [PATCH] gnu: bcachefs-linux-module: Fix build with linux-libre-6.18. Previously, the actual bcachefs.ko.zst was missing. * gnu/packages/file-systems.scm (bcachefs-linux-module)[arguments]: Set #:make-flags and honour them in the 'prepare-build-directory phase (renamed to avd. p'ntless abbr.). Fixes: #6601 Change-Id: I9df0396bda73421bf1233491a6e7eace40073c51 --- gnu/packages/file-systems.scm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index 82d29668dc..0caa977ece 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -982,7 +982,8 @@ minimal bcachefs-tools package. It is meant to be used in initrds.") (build-system linux-module-build-system) (arguments (list - #:tests? #f ;no 'check' target + #:make-flags #~(list "BCACHEFS_DKMS=1") + #:tests? #f ;no 'check' target #:source-directory "build/src/fs/bcachefs" #:phases #~(modify-phases %standard-phases @@ -997,11 +998,13 @@ minimal bcachefs-tools package. It is meant to be used in initrds.") ;; Remove unnecessary dependencies (("^.*PKG_CONFIG.*$") "")))) - (add-before 'configure 'prepare-build-dir - (lambda _ - (invoke "make" "install_dkms" - (string-append "DESTDIR=" - (getcwd) "/") "DKMSDIR=build/")))))) + (add-before 'configure 'prepare-build-directory + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" "install_dkms" + (string-append "DESTDIR=" + (getcwd) "/") + "DKMSDIR=build/" + make-flags)))))) (home-page (package-home-page bcachefs-tools-minimal/static)) (synopsis "Bcachefs Linux kernel module") (description