GNU bug report logs -
#55369
[PATCH 1/2] gnu: zfs: Use new package style.
Previous Next
Reported by: Brian Cully <bjc <at> spork.org>
Date: Wed, 11 May 2022 13:38:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 55369 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Brian Cully via Guix-patches via schreef op wo 11-05-2022 om 09:37 [-
0400]:
> - (add-after 'unpack 'patch-source
> - (lambda* (#:key inputs outputs #:allow-other-keys)
> - (let ((out (assoc-ref outputs "out"))
> - (src (assoc-ref outputs "src"))
> - (util-linux (assoc-ref inputs "util-linux"))
> - (nfs-utils (assoc-ref inputs "nfs-utils"))
> - (kmod (assoc-ref inputs "kmod-runtime")))
[...]
> + (add-after 'unpack 'patch-source
> + (lambda _ [...]
> + (substitute* "lib/libzfs/os/linux/libzfs_util_os.c"
> + ;; Use path to /gnu/store/*-kmod in actual path that is exec'ed.
> + (("\"/sbin/modprobe\"")
> + (string-append "\"" #$kmod "/bin/modprobe" "\""))
This breaks package transformations -- now the 'kmod' from (gnu
packages linux) is hardcoded, it cannot be replaced by something else
with --with-input or (package (inherit ...) (inputs (list custom-kmod
...)) or the like. (Currently no mechanism exists to rewrite G-exps.)
Instead, do
(lambda* (#:key inputs #:allow-other-keys)
[...]
(string-append "\"" (search-input-file inputs "bin/modprobe))
[...])
Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 3 years and 2 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.