From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 15 16:08:46 2018 Received: (at submit) by debbugs.gnu.org; 15 Jul 2018 20:08:46 +0000 Received: from localhost ([127.0.0.1]:42083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fenK2-0008UN-DC for submit@debbugs.gnu.org; Sun, 15 Jul 2018 16:08:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fenJU-0008TL-6v for submit@debbugs.gnu.org; Sun, 15 Jul 2018 16:08:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fenJN-0004W2-Sp for submit@debbugs.gnu.org; Sun, 15 Jul 2018 16:08:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44858) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fenJN-0004Vu-P0 for submit@debbugs.gnu.org; Sun, 15 Jul 2018 16:08:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fenJM-0006tx-Rq for bug-guix@gnu.org; Sun, 15 Jul 2018 16:08:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fenJI-0004Tg-Sp for bug-guix@gnu.org; Sun, 15 Jul 2018 16:08:04 -0400 Received: from aibo.runbox.com ([91.220.196.211]:53898) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fenJI-0004SR-HX for bug-guix@gnu.org; Sun, 15 Jul 2018 16:08:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Message-Id:Date:Subject:To:From:MIME-Version: Content-Transfer-Encoding:Content-Type; bh=+8EH8BSpRHMGmmbjzil1NQfrbWJ0hAffCls10FboZQQ=; b=aDJE0odwBYT9jb6hNZ/TLVQEgQ fvSY6vfAANAHXwvx76cjEHouWp7K3ZC7mGkeYFGXkINc4ma1Dr0uFnrc36p8gJOtecnjyHheVAed4 GuSvN4sWvVjwqG5MjKAu1Y0oz0KYH39opMiI85rZLATT1y3p1d5V0IsTD3qKJadIsuhqarXP+fTkD c82vDN45dZAx4LiZkLFdn2zXxxv9KkFXB3rXWkrNEU4JQRbKx7ToVg2SG+gtveTZOCP+AZw1JICbr KVAn7GYIv50BZ9ywRQJv2RATsCcttPhkI9iqvNZnVmI7aE9xStNfwKhubS7AnsrGnt03q5vQEONBm pHPHoZ7A==; Received: from [10.9.9.128] (helo=rmmprod06.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1fenJF-0002MO-Ta for bug-guix@gnu.org; Sun, 15 Jul 2018 22:07:57 +0200 Received: from mail by rmmprod06.runbox with local (Exim 4.86_2) (envelope-from ) id 1fenJF-0006Hr-S2 for bug-guix@gnu.org; Sun, 15 Jul 2018 22:07:57 +0200 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [Authenticated user (850733)] by runbox.com with http (RMM6); for ; Sun, 15 Jul 2018 20:07:57 GMT From: To: "bug-guix" Subject: Kernel 'build' directory in the store is a broken symbolic link Date: Sun, 15 Jul 2018 21:07:57 +0100 (BST) X-Mailer: RMM6 Message-Id: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 15 Jul 2018 16:08:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.8 (----) /run/booted-system/kernel/lib/modules//build is a broken sy= mbolic link.= From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 15 17:32:13 2018 Received: (at 32167) by debbugs.gnu.org; 15 Jul 2018 21:32:13 +0000 Received: from localhost ([127.0.0.1]:42108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1feocn-0003g2-2f for submit@debbugs.gnu.org; Sun, 15 Jul 2018 17:32:13 -0400 Received: from static.195.114.201.195.clients.your-server.de ([195.201.114.195]:41960 helo=conspiracy.of.n0.is) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1feocl-0003dv-C5 for 32167@debbugs.gnu.org; Sun, 15 Jul 2018 17:32:12 -0400 Received: by conspiracy.of.n0.is (OpenSMTPD) with ESMTPSA id 3644af27 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sun, 15 Jul 2018 21:32:08 +0000 (UTC) Date: Sun, 15 Jul 2018 21:32:53 +0000 From: Nils Gillmann To: pkill9@runbox.com Subject: Re: bug#32167: Kernel 'build' directory in the store is a broken symbolic link Message-ID: <20180715213253.sxpozqmex6mpwgu4@abyayala> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32167 Cc: Mark H Weaver , 32167@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) pkill9@runbox.com transcribed 94 bytes: > /run/booted-system/kernel/lib/modules//build is a broken symbolic link. Yep. This is not a bug until it comes to what you are possibly trying to attempt, build a software which relies on your *current* kernel sources. For a solution I can point to the Nix package for linux, where they deal with this within the kernel package, for firmware and more. Because I'm short on time these days I haven't sent a patch yet but I can confirm the issues you probably ran into as I had them many months back already. Mark, you are mostly responsible for the linux module in Guix. Besides my own notes, this was relevant: https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/kernel/manual-config.nix#L161 From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 16 13:56:49 2018 Received: (at 32167) by debbugs.gnu.org; 16 Jul 2018 17:56:49 +0000 Received: from localhost ([127.0.0.1]:44009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ff7jt-00048q-C9 for submit@debbugs.gnu.org; Mon, 16 Jul 2018 13:56:49 -0400 Received: from aibo.runbox.com ([91.220.196.211]:51458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ff7iL-00046a-E7 for 32167@debbugs.gnu.org; Mon, 16 Jul 2018 13:55:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Message-Id:Date:Subject:To:From:MIME-Version: Content-Transfer-Encoding:Content-Type; bh=oam33iW7/ueBdXeY+wP/Kl2DXHwdWXDt8aUYhkqzB48=; b=HO1RGb4V0KwFc/m+AzIsKsXgM7 gmx3oM86Y27UyyvJC50kRxu/LFjsFroeOg5L632cb47zwnuljoD81f7XxnsXtzOxvtgrA5BYqfKxu pAepnJ59FbtS5r6PEpZcuq0qHR/1MjoVSxdPITZMQ8V6sY5+KOMrOKPT9AzaqDfAwNcqyZxIjr3EF 4+imARc0c6f8OgrqfsYfWK4pxgRSgV0kkh2KAsTKd2RwZB8n4UIMqtbjrMSXmQ5gRO+l2eoXjSgFc kHTSuGutlFlDoeYHJloN2PFppOmjP+Bc8+6Z93cBwih3DUxx6hmpfFGZzw5husbbgk2eMMWb7Rikv c1uqd9vQ==; Received: from [10.9.9.128] (helo=rmmprod06.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1ff7iJ-00013g-QJ for 32167@debbugs.gnu.org; Mon, 16 Jul 2018 19:55:11 +0200 Received: from mail by rmmprod06.runbox with local (Exim 4.86_2) (envelope-from ) id 1ff7iJ-0002Jl-P1 for 32167@debbugs.gnu.org; Mon, 16 Jul 2018 19:55:11 +0200 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [Authenticated user (850733)] by runbox.com with http (RMM6); for <32167@debbugs.gnu.org>; Mon, 16 Jul 2018 17:55:11 GMT From: To: "32167" <32167@debbugs.gnu.org> Subject: Re: bug#32167: Kernel 'build' directory in the store is a broken symbolic link Date: Mon, 16 Jul 2018 18:55:11 +0100 (BST) X-Mailer: RMM6 Message-Id: X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 32167 X-Mailman-Approved-At: Mon, 16 Jul 2018 13:56:48 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) It would be good to keep the build directory though, since it's expected to= exist, and it's easier to just download a module's source and compile it a= nd test it.= From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 16 14:15:12 2018 Received: (at 32167) by debbugs.gnu.org; 16 Jul 2018 18:15:13 +0000 Received: from localhost ([127.0.0.1]:44019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ff81g-0004bs-MY for submit@debbugs.gnu.org; Mon, 16 Jul 2018 14:15:12 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:44004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ff81e-0004bj-PP for 32167@debbugs.gnu.org; Mon, 16 Jul 2018 14:15:11 -0400 Received: from localhost (84-113-15-225.cable.dynamic.surfer.at [84.113.15.225]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 73E7933601EA; Mon, 16 Jul 2018 20:15:09 +0200 (CEST) Date: Mon, 16 Jul 2018 20:15:00 +0200 From: Danny Milosavljevic To: Subject: Re: bug#32167: Kernel 'build' directory in the store is a broken symbolic link Message-ID: <20180716201500.3d1f13ae@scratchpost.org> In-Reply-To: References: X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/X5uPs97jH3pgrZodO2uQ3pT"; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32167 Cc: Mark H Weaver , 32167 <32167@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --Sig_/X5uPs97jH3pgrZodO2uQ3pT Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 16 Jul 2018 18:55:11 +0100 (BST) wrote: > It would be good to keep the build directory though, since it's expected = to exist, and it's easier to just download a module's source and compile it= and test it. I agree. /run/booted-system/kernel/lib/modules/4.17.3-gnu is in the store anyway so = it will be seen by the GC. The fix would be in linux-libre. --Sig_/X5uPs97jH3pgrZodO2uQ3pT Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAltM4KQACgkQ5xo1VCww uqU3Wwf/eFqQCY3XMuoSKbJOFxAPKnLmrt9ULELN7F9gRoa6ZlFJkWMnNyPeN5Xq vAfBg65Jlhmuib4UtXn35cuw/wuGyNaG7CApLFnzIWFp3jjm6GH/tMaKD0/nlD10 KgG+FxGvg6TpHQ70RDyDQ9ZaXw5TyafzYpFrK0vk7fACkgHLdixt5CvRJ/9W/Ja3 jvwD5r2whss/pdOQa+rzkCzSfY7sBmyzfgCN0d91N1bOCkrcxSgimtZu3Garf3ro iu8KBf6Bzml1Z3NUytuZyrabe2iq3FBnrHtpqaff9OVchaT4CWxaRNH/xwZViPN5 wHkt+4FQTEePihjrY3t2N/nYnDUGWw== =Q8qQ -----END PGP SIGNATURE----- --Sig_/X5uPs97jH3pgrZodO2uQ3pT-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 16 18:05:13 2018 Received: (at 32167) by debbugs.gnu.org; 16 Jul 2018 22:05:13 +0000 Received: from localhost ([127.0.0.1]:44108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffBcH-0001oK-27 for submit@debbugs.gnu.org; Mon, 16 Jul 2018 18:05:13 -0400 Received: from world.peace.net ([64.112.178.59]:56134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffBcF-0001o5-H8 for 32167@debbugs.gnu.org; Mon, 16 Jul 2018 18:05:11 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffBc9-0005iZ-Mu; Mon, 16 Jul 2018 18:05:05 -0400 From: Mark H Weaver To: Danny Milosavljevic Subject: Re: bug#32167: Kernel 'build' directory in the store is a broken symbolic link References: <20180716201500.3d1f13ae@scratchpost.org> Date: Mon, 16 Jul 2018 18:03:58 -0400 In-Reply-To: <20180716201500.3d1f13ae@scratchpost.org> (Danny Milosavljevic's message of "Mon, 16 Jul 2018 20:15:00 +0200") Message-ID: <87r2k2u9bl.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32167 Cc: 32167@debbugs.gnu.org, pkill9@runbox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Danny Milosavljevic writes: > On Mon, 16 Jul 2018 18:55:11 +0100 (BST) > wrote: > >> It would be good to keep the build directory though, since it's >> expected to exist, and it's easier to just download a module's >> source and compile it and test it. > > I agree. > > /run/booted-system/kernel/lib/modules/4.17.3-gnu is in the store > anyway so it will be seen by the GC. > > The fix would be in linux-libre. If we were to preserve the kernel build directory as a store item, and keep a link from the modules directory to the build directory, that would greatly increase the size of the most minimal system that users could build. The unpacked linux-libre-4.17 source directory is 929 megabytes, and that's before building it. So, keeping the build directory would surely increase the closure size of the most minimal system by more than a gigabyte. I don't think it's okay to force all Guix users to pay that price. Some users will need to build minimal systems. I'd like to hear more specifics about what the original poster is trying to accomplish here. It's possible that they simply noticed the broken links and wanted to let us know. In that case, it's probably best to simply delete those broken symlinks. If the intent here is to allow support for out-of-tree kernel modules, then fixing these symlinks would not solve the problem, and it's not clear to me that fixing them would be part of a proper solution on GuixSD. GuixSD is not a system where you can simply compile a kernel module manually and install it, because our module directory is immutable. If the goal is to support building out-of-tree kernel modules, that's a separate discussion that deserves its own "wishlist" bug report, I think. Thoughts? Mark From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 16 19:10:19 2018 Received: (at 32167) by debbugs.gnu.org; 16 Jul 2018 23:10:20 +0000 Received: from localhost ([127.0.0.1]:44143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffCdH-0007Jb-MJ for submit@debbugs.gnu.org; Mon, 16 Jul 2018 19:10:19 -0400 Received: from aibo.runbox.com ([91.220.196.211]:50248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffCdF-0007JR-Cn for 32167@debbugs.gnu.org; Mon, 16 Jul 2018 19:10:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Message-Id:In-Reply-To:Date:Subject:CC:To:From:MIME-Version :Content-Transfer-Encoding:Content-Type; bh=lG4NPExjo46W1cer60QwiXZmD+cEBsI3ltEtYhkM2Q0=; b=A2lzpLZ19VL6qPIzT214THbYSK FHYwZA5aTRH3uoa2qJ713smJImM4uIPkg5eNL+wVcsCCGInKDPypDUq58M1pW/8Jz5eE8oalDemGs ARcfZbnDv8wjO981EpU3P3ZvDw1Kg/K0ZScFWlKmjrWtOvOqQXwL69fqwGDXBNZi7QkwqOEbuqdg2 UnI8UTyJHLt/PcYXu2eMH5rhe1PYh7WHEQKlUg39Va170ROx/bARlhM+TPKX6NNyrCkizRrLv5YSP NDd7PShhKZqvtoZtKtCXE+EdLfapFopbs9gQeNqTtK3661tYd8cxqAQUHtEvwKZWYKJ2QrYV96wiB 1quKcp0g==; Received: from [10.9.9.128] (helo=rmmprod06.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1ffCdB-00015m-HT; Tue, 17 Jul 2018 01:10:13 +0200 Received: from mail by rmmprod06.runbox with local (Exim 4.86_2) (envelope-from ) id 1ffCdB-0002Wh-Fd; Tue, 17 Jul 2018 01:10:13 +0200 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [Authenticated user (850733)] by runbox.com with http (RMM6); Mon, 16 Jul 2018 23:10:13 GMT From: To: "Mark H Weaver" Subject: Re: bug#32167: Kernel 'build' directory in the store is a broken symbolic link Date: Tue, 17 Jul 2018 00:10:13 +0100 (BST) X-Mailer: RMM6 In-Reply-To: <87r2k2u9bl.fsf@netris.org> Message-Id: X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 32167 Cc: Danny Milosavljevic , 32167 <32167@debbugs.gnu.org>, pkill9 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) Yes I agree with you, since it is a lot of space then it's probably best to= just delete the symlink. The reasoning behind my suggestion of keeping it is mostly for convenience = in compiling/testing an external kernel module, i.e. just downloading the s= ource and then compiling it with the currently running kernel, and then loa= ding it to test it. Come to think of it, could the build directory be put in another output of = the linux-libre package? On Mon, 16 Jul 2018 18:03:58 -0400, Mark H Weaver wrote: > Danny Milosavljevic writes: >=20 > > On Mon, 16 Jul 2018 18:55:11 +0100 (BST) > > wrote: > > > >> It would be good to keep the build directory though, since it's > >> expected to exist, and it's easier to just download a module's > >> source and compile it and test it. > > > > I agree. > > > > /run/booted-system/kernel/lib/modules/4.17.3-gnu is in the store > > anyway so it will be seen by the GC. > > > > The fix would be in linux-libre. >=20 > If we were to preserve the kernel build directory as a store item, and > keep a link from the modules directory to the build directory, that > would greatly increase the size of the most minimal system that users > could build. >=20 > The unpacked linux-libre-4.17 source directory is 929 megabytes, and > that's before building it. So, keeping the build directory would surely > increase the closure size of the most minimal system by more than a > gigabyte. I don't think it's okay to force all Guix users to pay that > price. Some users will need to build minimal systems. >=20 > I'd like to hear more specifics about what the original poster is trying > to accomplish here. It's possible that they simply noticed the broken > links and wanted to let us know. In that case, it's probably best to > simply delete those broken symlinks. >=20 > If the intent here is to allow support for out-of-tree kernel modules, > then fixing these symlinks would not solve the problem, and it's not > clear to me that fixing them would be part of a proper solution on > GuixSD. GuixSD is not a system where you can simply compile a kernel > module manually and install it, because our module directory is > immutable. If the goal is to support building out-of-tree kernel > modules, that's a separate discussion that deserves its own "wishlist" > bug report, I think. >=20 > Thoughts? >=20 > Mark From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 23 09:01:17 2018 Received: (at 32167) by debbugs.gnu.org; 23 Jul 2018 13:01:17 +0000 Received: from localhost ([127.0.0.1]:53197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fhaSj-00033W-5e for submit@debbugs.gnu.org; Mon, 23 Jul 2018 09:01:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54179) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fhaSg-00033I-BF for 32167@debbugs.gnu.org; Mon, 23 Jul 2018 09:01:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhaSX-0001BF-14 for 32167@debbugs.gnu.org; Mon, 23 Jul 2018 09:01:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhaSR-00018O-GP; Mon, 23 Jul 2018 09:00:59 -0400 Received: from [193.50.110.227] (port=34748 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fhaSQ-0001hz-VD; Mon, 23 Jul 2018 09:00:59 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Mark H Weaver Subject: Re: bug#32167: Kernel 'build' directory in the store is a broken symbolic link References: <20180716201500.3d1f13ae@scratchpost.org> <87r2k2u9bl.fsf@netris.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 Thermidor an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 23 Jul 2018 15:00:57 +0200 In-Reply-To: <87r2k2u9bl.fsf@netris.org> (Mark H. Weaver's message of "Mon, 16 Jul 2018 18:03:58 -0400") Message-ID: <87k1pmrtrq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32167 Cc: Danny Milosavljevic , 32167@debbugs.gnu.org, pkill9@runbox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hi, Mark H Weaver skribis: > Danny Milosavljevic writes: > >> On Mon, 16 Jul 2018 18:55:11 +0100 (BST) >> wrote: >> >>> It would be good to keep the build directory though, since it's >>> expected to exist, and it's easier to just download a module's >>> source and compile it and test it. >> >> I agree. >> >> /run/booted-system/kernel/lib/modules/4.17.3-gnu is in the store >> anyway so it will be seen by the GC. >> >> The fix would be in linux-libre. > > If we were to preserve the kernel build directory as a store item, and > keep a link from the modules directory to the build directory, that > would greatly increase the size of the most minimal system that users > could build. Yeah, we shouldn=E2=80=99t do that IMO. > If the intent here is to allow support for out-of-tree kernel modules, > then fixing these symlinks would not solve the problem, and it's not > clear to me that fixing them would be part of a proper solution on > GuixSD. GuixSD is not a system where you can simply compile a kernel > module manually and install it, because our module directory is > immutable. If the goal is to support building out-of-tree kernel > modules, that's a separate discussion that deserves its own "wishlist" > bug report, I think. I agree. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 24 20:51:45 2021 Received: (at 32167-done) by debbugs.gnu.org; 25 Sep 2021 00:51:45 +0000 Received: from localhost ([127.0.0.1]:59614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTvuq-0000Tb-Un for submit@debbugs.gnu.org; Fri, 24 Sep 2021 20:51:45 -0400 Received: from out0.migadu.com ([94.23.1.103]:57628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTvuo-0000TR-SK for 32167-done@debbugs.gnu.org; Fri, 24 Sep 2021 20:51:44 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1632531101; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1uyt8GchtbnNYy8nuXQKGtimUXKYI09O69qKY4woEiU=; b=hmqNYJvDjm6QOkBfOW/RMdBDEdpnC98dKnPdZb1fnZtADML7GU0W2Z4dpas3Mzq3gvc4LC fJ6125AhN6Lzrj3aqWSLi1qf273nXpVPP5VVbxnUzmIyRNsCQLsAfKiux3ZnxEmGo8AbYa Sre+l1HXY4YFjej/xQrFssmxf7EnI+U= From: Sarah Morgensen To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#32167: Kernel 'build' directory in the store is a broken symbolic link References: <20180716201500.3d1f13ae@scratchpost.org> <87r2k2u9bl.fsf@netris.org> <87k1pmrtrq.fsf@gnu.org> Date: Fri, 24 Sep 2021 17:51:39 -0700 In-Reply-To: <87k1pmrtrq.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 23 Jul 2018 15:00:57 +0200 (3 years, 9 weeks, 17 hours ago)") Message-ID: <86v92pwk84.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: iskarian@mgsn.dev X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32167-done Cc: Mark H Weaver , 32167-done@debbugs.gnu.org, pkill9@runbox.com, Danny Milosavljevic X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi all, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hi, > > Mark H Weaver skribis: > >> Danny Milosavljevic writes: >> >>> On Mon, 16 Jul 2018 18:55:11 +0100 (BST) >>> wrote: >>> >>>> It would be good to keep the build directory though, since it's >>>> expected to exist, and it's easier to just download a module's >>>> source and compile it and test it. >>> >>> I agree. >>> >>> /run/booted-system/kernel/lib/modules/4.17.3-gnu is in the store >>> anyway so it will be seen by the GC. >>> >>> The fix would be in linux-libre. >> >> If we were to preserve the kernel build directory as a store item, and >> keep a link from the modules directory to the build directory, that >> would greatly increase the size of the most minimal system that users >> could build. > > Yeah, we shouldn=E2=80=99t do that IMO. > >> If the intent here is to allow support for out-of-tree kernel modules, >> then fixing these symlinks would not solve the problem, and it's not >> clear to me that fixing them would be part of a proper solution on >> GuixSD. GuixSD is not a system where you can simply compile a kernel >> module manually and install it, because our module directory is >> immutable. If the goal is to support building out-of-tree kernel >> modules, that's a separate discussion that deserves its own "wishlist" >> bug report, I think. > > I agree. > > Ludo=E2=80=99. I am closing this old bug since the broken 'build' symlink no longer exists (nor do any other broken symlinks, as far as I can tell). As for building out-of-tree kernel modules, we now have linux-module-build-system, which uses `make-linux-module-builder', which builds the 'build' directory straight from the linux source with `make modules_prepare'. There are some improvements to be had there, for sure, but like mentioned above, that deserves its own wishlist item. -- Sarah From unknown Sat Jun 21 05:12:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 23 Oct 2021 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator