From unknown Fri Jun 20 07:18:07 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#74396 <74396@debbugs.gnu.org> To: bug#74396 <74396@debbugs.gnu.org> Subject: Status: System guix masks modules from pulled 3rd-party channels Reply-To: bug#74396 <74396@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:18:07 +0000 retitle 74396 System guix masks modules from pulled 3rd-party channels reassign 74396 guix submitter 74396 Tomas Volf <~@wolfsden.cz> severity 74396 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 17 08:21:35 2024 Received: (at submit) by debbugs.gnu.org; 17 Nov 2024 13:21:35 +0000 Received: from localhost ([127.0.0.1]:56261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCfDb-0001SP-1l for submit@debbugs.gnu.org; Sun, 17 Nov 2024 08:21:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:40594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1tCfDZ-0001SH-8D for submit@debbugs.gnu.org; Sun, 17 Nov 2024 08:21:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1tCfDX-0003Jn-Up for bug-guix@gnu.org; Sun, 17 Nov 2024 08:21:31 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1tCfDU-00070d-VD for bug-guix@gnu.org; Sun, 17 Nov 2024 08:21:31 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id CF8363535D0; Sun, 17 Nov 2024 13:21:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1731849685; bh=JZt0EAZT3pZ6tPamEB6H1siBqHAmUG/ON2keBECsw74=; h=From:To:Subject:Date; b=DFtlkb+dvY5hz14wM4QIfcfXjRV5/CNZHsSX4Jpf96ld9/lMsa7RFUSARSy+9GsRF 443YrqoBcBDrkgR6OYF1vHABfc881rpw5H/RDtj16+0zEARlQCW/GygKaz7Hs9suR3 5yhqwJpm8RjObhDX9Gey9Pyu9Za8ifwZd23eQCTcDUOfKpDq3z/xoUVl7TUD6daL3P PQYN1eFhiwvVv9sOWwNEzsF8UpXDI2Q50O6FJYoCSNCS+fVpbSYC8nb82uomEVNL4q M3+iCw3Qs8pzKofVGbhiCy1WVFaOJd5sIxGKha7BoG0I/zeIpfNM3iMULANViwkvoL hfVsuw0e/n9+ebes92jcDxyp4YY5gegR+Ox5SnKEGMZis57DjmAQxALUFZWvmyqvSF p2/2mbtNJeOG5uK4l7RWx9q2GWdoU1aRE54n9t8xnaPPKzpaxgRf2sI3kffwkwoE6C +pufPaau7SZ1onDIESf+h1I+jSglAbzvd1LcM5ru/d5o431QFPUyzg5Yuo3+KLxLIs eYGQPFTz4vUPs7HwK+fUzG5HoA+9/uhFI3eXp598Wu+sYTITVRiWDxDLLAoQQKRw4/ lh1uIW6om7bL3eUGR/QnE622hET/xMuB+tWz5LhqYnG/O+lQr8QtAymw857CPSV+eD GKJI0uSfSTgM8bcSNRYzA+Kg= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 02A6635362E for ; Sun, 17 Nov 2024 13:21:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1731849685; bh=JZt0EAZT3pZ6tPamEB6H1siBqHAmUG/ON2keBECsw74=; h=From:To:Subject:Date; b=DFtlkb+dvY5hz14wM4QIfcfXjRV5/CNZHsSX4Jpf96ld9/lMsa7RFUSARSy+9GsRF 443YrqoBcBDrkgR6OYF1vHABfc881rpw5H/RDtj16+0zEARlQCW/GygKaz7Hs9suR3 5yhqwJpm8RjObhDX9Gey9Pyu9Za8ifwZd23eQCTcDUOfKpDq3z/xoUVl7TUD6daL3P PQYN1eFhiwvVv9sOWwNEzsF8UpXDI2Q50O6FJYoCSNCS+fVpbSYC8nb82uomEVNL4q M3+iCw3Qs8pzKofVGbhiCy1WVFaOJd5sIxGKha7BoG0I/zeIpfNM3iMULANViwkvoL hfVsuw0e/n9+ebes92jcDxyp4YY5gegR+Ox5SnKEGMZis57DjmAQxALUFZWvmyqvSF p2/2mbtNJeOG5uK4l7RWx9q2GWdoU1aRE54n9t8xnaPPKzpaxgRf2sI3kffwkwoE6C +pufPaau7SZ1onDIESf+h1I+jSglAbzvd1LcM5ru/d5o431QFPUyzg5Yuo3+KLxLIs eYGQPFTz4vUPs7HwK+fUzG5HoA+9/uhFI3eXp598Wu+sYTITVRiWDxDLLAoQQKRw4/ lh1uIW6om7bL3eUGR/QnE622hET/xMuB+tWz5LhqYnG/O+lQr8QtAymw857CPSV+eD GKJI0uSfSTgM8bcSNRYzA+Kg= From: Tomas Volf <~@wolfsden.cz> To: bug-guix@gnu.org Subject: System guix masks modules from pulled 3rd-party channels Mail-Followup-To: bug-guix@gnu.org Date: Sun, 17 Nov 2024 14:21:24 +0100 Message-ID: <87cyiu2dyj.fsf@wolfsden.cz> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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: -2.3 (--) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, when system guix produced by the guix-for-channels procedure is installed, modules in any channel (except in the 'guix) will shadow the same modules acquired via `guix pull'. Steps to reproduce: Have a channels.scm: =2D-8<---------------cut here---------------start------------->8--- (cons (channel (name 'nonguix) (url "https://gitlab.com/nonguix/nonguix") (introduction (make-channel-introduction "897c1a470da759236cc11798f4e0a5f7d4d59fbc" (openpgp-fingerprint "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5")))) %default-channels) =2D-8<---------------cut here---------------end--------------->8--- Pull it, and reconfigure you system using it. After that is done, try to search for `nongnu/packages/linux.scm' in the path using `guix repl': =2D-8<---------------cut here---------------start------------->8--- scheme@(guix-user)> ,use (gnu) scheme@(guix-user)> (search-path %load-path "nongnu/packages/linux.scm") $1 =3D "/gnu/store/svds1ak4zxdnb5sim3h45q5gk7rzqdr0-nonguix/share/guile/sit= e/3.0/nongnu/packages/linux.scm" =2D-8<---------------cut here---------------end--------------->8--- Notice that the file is located in `/gnu/store/*-nonguix/...'. Now reconfigure your system with the following modify-services: =2D-8<---------------cut here---------------start------------->8--- (modify-services %base-services (guix-service-type config =3D> (guix-configuration (inherit config) (guix (guix-for-channels (cons (channel (name 'nonguix) (url "https://gitlab.com/nonguix/nong= uix") (introduction (make-channel-introduction "897c1a470da759236cc11798f4e0a5f7d4= d59fbc" (openpgp-fingerprint "2A39 3FFF 68F4 EF7A 3D29 12AF 6F= 51 20A0 22FB B2D5")))) %default-channels)))))) =2D-8<---------------cut here---------------end--------------->8--- After you reconfigure you system, try to search for the same file again: =2D-8<---------------cut here---------------start------------->8--- scheme@(guix-user)> ,use (gnu) scheme@(guix-user)> (search-path %load-path "nongnu/packages/linux.scm") $1 =3D "/run/current-system/profile/share/guile/site/3.0/nongnu/packages/li= nux.scm" =2D-8<---------------cut here---------------end--------------->8--- Notice that this time it is located in `/run/current-system/...'. The implication is that any pull of the channels takes no effect, since the system-wide shadows them. Have a nice day, Tomas =2D-=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJCBAEBCgAsFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmc57dQOHH5Ad29sZnNk ZW4uY3oACgkQL7/ufbZ/walI3A//RVz1XvWdugWw4lJUdMIAWOAJXbdFagHxW2U2 7qb6NCgPkuQwBT4coNKxt4qVvs9U/DNzYCEPOSzJCda9PCwFsx48IJKIaLEXaLKQ qtVL/UAhQAcW01WMIiKfKV6D0DuLuFtFNYaP4qtJ7OqI4U6ZCLeVqX7RWreWTa8a hH3yKYwPrANMQP9eUkIFC/wEMvU4fWsrsas8qjbx1Bgub7msdcG3DF57E9oQkZHE EJwcOYZYNU7bVH4FtLZuQ+13VONWrwtptoMDJTj9ou3Ve9VmApsiTZpY/r3MTSf6 in3CWkg9dAJqti8f04yEWCVGRHuncYcQhIQnvhOD2oxtyS1C5LIwKdTmZRG4kPT3 0SrAGK78gadC7nRWARwx13EBFwAnJSLrQtQQPf4TEHdOqLeOiUJSBpILmUKuCPR1 01YoQak3RXrV963UB4iu1jtrCq4osyO+ILo7rK5kjkQ3uAjL9W0uRiaYEpzEadwq MzNVoEDPI03dckPynP88XKuV+8WbpkcZmRUs3EMA31NUVwBo6f7yy38SbnjntOmW daW6bctihjEPNKVSq6IoT+oUM3fQiG4Ph+69vnGfBTGkDWxI9nOCMQ/MDkC0iw/e WxWKGuDwIfI9tQtN5sHz0qog1yX84Ji1BfTJH/JeLZhAwJ63dKVfwck2aJJkza10 cY8myKQ= =LHEn -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 07 16:00:16 2025 Received: (at 74396) by debbugs.gnu.org; 7 Jun 2025 20:00:16 +0000 Received: from localhost ([127.0.0.1]:49692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uNziB-0006kP-VU for submit@debbugs.gnu.org; Sat, 07 Jun 2025 16:00:16 -0400 Received: from ditigal.xyz ([2a01:4f8:1c1b:6a1c::]:59610 helo=mail.ditigal.xyz) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uNzi7-0006dV-B2 for 74396@debbugs.gnu.org; Sat, 07 Jun 2025 16:00:14 -0400 Received: by cerebrum (OpenSMTPD) with ESMTPSA id 70d93b62 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sat, 7 Jun 2025 20:00:04 +0000 (UTC) From: Rutherther To: 74396@debbugs.gnu.org Subject: Re: System guix masks modules from pulled 3rd-party channels In-Reply-To: <87cyiu2dyj.fsf@wolfsden.cz> Date: Sat, 07 Jun 2025 22:00:01 +0200 Message-ID: <87zfejz5j2.fsf@ditigal.xyz> MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ditigal.xyz; i=@ditigal.xyz; q=dns/txt; s=20240917; t=1749326404; h=from : to : cc : subject : in-reply-to : date : message-id : mime-version : content-type : from; bh=gOnp0jI2PiFXnHRYeDzMkCLYfhQ4yPy62fuhhAfyRpk=; b=crX8LPVv1ffMogSeBfGdsvtIzlFPignguZ5SD6vLtIEz6muid4XVZQimbqQe4T8nVOuWv 4YYgHlbfYBgUc1qlf+cnOFOR2yh6zMBjJwVovMTjNeuGLQ1vvmUYWBi4nDzyvloXMQ/58Mp MdQH5Kz13ItcKa7CObE/vTje6IqyOdc= X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Tomas, > Hi, > > when system guix produced by the guix-for-channels procedure is > installed, modules in any channel (except in the 'guix) will shadow the > same modules acquired via `guix pull'. Ah right, this is because GUILE_LOAD_PATH is set to /run/current-system/... The load path will shadow everything except the guix that cannot really be shadowed, it's treated kind of specially. This va [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: ditigal.xyz (xyz)] 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: 74396 Cc: Tomas Volf <~@wolfsden.cz> 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: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Tomas, > Hi, > > when system guix produced by the guix-for-channels procedure is > installed, modules in any channel (except in the 'guix) will shadow the > same modules acquired via `guix pull'. Ah right, this is because GUILE_LOAD_PATH is set to /run/current-system/... The load path will shadow everything except the guix that cannot really be shadowed, it's treated kind of specially. This va [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: ditigal.xyz (xyz)] 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Hi Tomas, > Hi, > > when system guix produced by the guix-for-channels procedure is > installed, modules in any channel (except in the 'guix) will shadow the > same modules acquired via `guix pull'. Ah right, this is because GUILE_LOAD_PATH is set to /run/current-system/... The load path will shadow everything except the guix that cannot really be shadowed, it's treated kind of specially. This variable is there because both guix and guile are installed to the profile, see `guix shell guix guile --search-paths`. I think the easiest and maybe only solution is to also add the search path to ~/.config/guix/current. This could be done either by installing guile into it as well, or by installing a dummy package with GUILE_LOAD_PATH. This would have to be coded into profile made by guix pull. Since system profile is sourced first, and ~/.config/guix/current after it, the env var would have the ~/.config/guix/current first and /run/current-system second. That means the modules from ~/.config/guix/current are used. Still, if you do pull as user without some of the channels that are available in system, those channels will still be available to you. While that might not be preferred behavior, I am not sure there can be something done about it. The problem is that users definitely do want the GUILE_LOAD_PATH to be respected, for their own projects etc. ... So it cannot just be ignored/unset. Another solution would be to uninstall guile from the system profile, but again, that is not a good default, so the bug would happen by default. Regards Rutherther