From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#39643: (Out-of-tree) system kernel modules only found in :out Date: Tue, 18 Feb 2020 18:26:46 +0100 Message-ID: <87eeur6c2x.fsf@devup.no> References: <87blpx6zmn.fsf@nckx> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53387) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j46eF-0003Wy-L7 for bug-guix@gnu.org; Tue, 18 Feb 2020 12:27:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j46eE-0006Bn-MB for bug-guix@gnu.org; Tue, 18 Feb 2020 12:27:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35247) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j46eE-0006Bf-IJ for bug-guix@gnu.org; Tue, 18 Feb 2020 12:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j46eE-0007Un-FM for bug-guix@gnu.org; Tue, 18 Feb 2020 12:27:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87blpx6zmn.fsf@nckx> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Tobias Geerinckx-Rice , 39643@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Tobias Geerinckx-Rice via Bug reports for GNU Guix writes: > Guix, > > After adding (specification->package+output "zfs:module") to my=20 > system packages, it's still missing from current-system: > > $ guix system reconfigure =E2=80=A6 > > $ ls /run/current-system/profile/lib/modules/ > 5.4.0-pf7-4-ed26-M88 > > That's my horrible custom Linux fork/version/abomination.=20 > Apologies. The ZFS package simply compiles against Guix's default=20 > linux-libre-5.4.20-gnu package. To build out-of-tree modules with a custom kernel I would expect that you have to rebuild them against your kernel: (define my-kernel (package/inherit linux-libre ...)) (define with-custom-kernel (package-input-rewriting `((,linux-libre . ,my-kernel)))) (define zfs-with-custom-kernel (with-custom-kernel zfs)) Alternatively, I see that 'linux-module-build-system' takes a #:linux argument: (define zfs-with-my-kernel (package/inherit zfs (arguments (substitute-keyword-arguments (package-arguments zfs)) ((#:linux _ #f) my-kernel)))) Will these options work for you, or am I misunderstanding something? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl5MHlYACgkQoqBt8qM6 VPoDEgf/U7lFOJVU7f6BZdfp/Mu1IixfVL1cHrtMyu3Slpl657bsGZraaoG0DoeO UPk/u5I2u7bKD9pR0f9hv6KOl5IDWSTlT/XM41M2uk9xywCrnTw+s/FpjLAmWYRy f1Gzw6c4Lk7IRQs64q42Bb2voyEoeD40LhbQazBB1u14qY6L5iuSltQzlul2KNul GAz1yVWHUuXQG2t3p7+EUS6EhcjD+SLL5Ku4tWiezdm8wMdfITnl9rHy1LsS7Jqs d5DCbC1/nQhyFxVSyVqo+oc1F61RD9sKiiyP16ctelqhoH7XgZ0eYuUs9Vku0v00 ybPgW7LN+Z5/P/0F/bVv8sOPFwAuCA== =TAZg -----END PGP SIGNATURE----- --=-=-=--