From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:36511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gn5QM-0004s8-Au for guix-patches@gnu.org; Fri, 25 Jan 2019 12:37:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gn5Ex-0003q3-Je for guix-patches@gnu.org; Fri, 25 Jan 2019 12:26:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46239) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gn5Ex-0003px-Gp for guix-patches@gnu.org; Fri, 25 Jan 2019 12:26:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gn5Ex-0001Cs-D5 for guix-patches@gnu.org; Fri, 25 Jan 2019 12:26:03 -0500 Subject: bug#34195: [PATCH v2] linux-modules: Add modules-soft-dependencies. Resent-To: guix-patches@gnu.org Resent-Message-ID: Date: Fri, 25 Jan 2019 18:25:37 +0100 From: Danny Milosavljevic Message-ID: <20190125182537.0535b710@scratchpost.org> In-Reply-To: <87bm44oedg.fsf@gnu.org> References: <20190125113032.8372-1-dannym@scratchpost.org> <20190125114838.8680-1-dannym@scratchpost.org> <87bm44oedg.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/vzV60tToxFvWL=r=qG_0EIT"; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 34195-done@debbugs.gnu.org --Sig_/vzV60tToxFvWL=r=qG_0EIT Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Ludo, >That was fast! :-) Yeah, I dislike ticking boot time bombs ;-) Thanks for the review! Pushed as 1a5f46621b44aa1458ad7acd4eca5fe1d4574f92=20 and 519be98c3536b5113cde368f9dc6db2e1ebe073e (tiny fix) to guix master. Note that it returns something like (("pre" . "module-1") ("pre" . "module-2")) So the user might want to (1) map cdr (or match ;) ) it (2) replace dashes by underscores if a filename is desired (normalize-modul= e-name) (although in practise nobody in the mainline Linux seems to use dashes there right now, their example in include/linux/module.h has dashes :P) Example result: scheme> (module-soft-dependencies "/tmp/vfio.ko") $2 =3D (("post" . "vfio_iommu_spapr_tce") ("post" . "vfio_iommu_type1")) --Sig_/vzV60tToxFvWL=r=qG_0EIT Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlxLRpEACgkQ5xo1VCww uqWNPQf8DXkHQZbnZHYXglmni38TXv/PDFHMli0ggI2fuUxVNnxDOh8Zx58u7Ffm GTreJx+KEYrXk30lyaoaTGYig6DCCDrJIlSa6UD2e1WZgRIq19yBFxYc4aYJWvnf FQDYUbg6afvacms4Cr+cq14S6VST3zpvxVySSYiD+HkgEYbu32cFfngZ+a30Fzaz EJBZtirLkwVZnJUhFw/l4FVzXuX5GBPQxAUTEE4RDzwE+QEYbroH9vzbbRzg1/H1 FvjYulGerBaa5L8snsr+OCj5DpC2frteq+MdPnyG1poo/33Wxp/awk7VhrNigQQp QfuCizEyKDaqDCli3/m/gSMhsr33Rw== =HldS -----END PGP SIGNATURE----- --Sig_/vzV60tToxFvWL=r=qG_0EIT--