From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id QKYyKJHEEmbFrQAAqHPOHw:P1 (envelope-from ) for ; Sun, 07 Apr 2024 18:06:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id QKYyKJHEEmbFrQAAqHPOHw (envelope-from ) for ; Sun, 07 Apr 2024 18:06:41 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=rrpZectc; dkim=pass header.d=wolfsden.cz header.s=mail header.b=C14hiDIQ; dmarc=pass (policy=none) header.from=wolfsden.cz; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712506001; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6SxiHHBDevWP0c3LjTiOMU43y2WfEM4QHx/ZPcdVimQ=; b=j8ZQ3KwRzkAW/yXWAHFiKv/MJoR7MRuRSFNyej55b5S5p4rx8OyyKbBZuFytc8l+4VyRd8 VuABbpeQecJvfk6O7CQEGQGx+dcZ+XwLRlvBlOzGNUbKeTkJUhBqJKT+WK/dnYjzsfCBz7 5F/Tq6XeRRpvncMds7KJcOAvupUUDvPh9L74CbdCmyAPiVQlzjp++Dngn9TZO2FEWnmRer een1f3lAF06Tg+CY/ha+WPtwbaUex8smSl//suTZZlSvSLPTbFXyQcDYoq37Ool3C4DHeU vgG864J4uPcvrLT+yshM5eFZWg66+bBjL6rRLEz8hLfYPnZbi6hN5A6myftY/w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=rrpZectc; dkim=pass header.d=wolfsden.cz header.s=mail header.b=C14hiDIQ; dmarc=pass (policy=none) header.from=wolfsden.cz; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712506001; a=rsa-sha256; cv=none; b=Dlyb0Siixza5rcgjwOBN+ZRP/HTPA3fGmtMrsp/V/PAfOSspDFs+dLLa8ns0QtBqv+ST9y kZq+U6B8gd3ziZmDB+CcZSePB1yRwDZO3YZYhwYfwZCjPol5pC0+TOriJOGgsd1+pLGwoD UT2RB+cLJNR1IfJw3QWf2WvigJHOoNnkNp50P9dqsgiOOP8gnVBGXJBPzKX8ceo9stAj0E NNc6Xv28ts7ZwvlqlPDYdgDzSZgq2CW+jHQIZiR1/PLefQIYcQ1EE8NzwMbhIb0wi2Rtk3 AJ/jnXUktQID1XC7mUILQ7AHqBflqn79UxBdX4YuAipMDLwZrXEObpT/pIrfAQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3C20CBC1F for ; Sun, 07 Apr 2024 18:06:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rtV23-0007bU-PB; Sun, 07 Apr 2024 12:06:11 -0400 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 1rtV23-0007bJ-0L for guix-devel@gnu.org; Sun, 07 Apr 2024 12:06:11 -0400 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 1rtV1y-0000QM-St for guix-devel@gnu.org; Sun, 07 Apr 2024 12:06:10 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id AC7592A92A7; Sun, 7 Apr 2024 16:06:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1712505962; bh=nftzPC62dsU7KO9saCY16kXd46rBJK834HO/1M4to3o=; h=Date:From:To:Subject; b=rrpZectcrIQJ3A72xDSO7yS8DJQyGsuPe9Jo5hE3UGwRML3lM5+klV6xrBbak6VW6 9t5E4zVGNepDgzw0WoQOXmbW1tRh5uAv7egHqXLXZ3Hw0/ejpNtMXsLOiJDAMAop3J DSlag9fc03lmc549CK8ceSQLZrYzr8+db+GMarXA5E8BN3LMqipVWWNyYkRJ8htnSN qi66uIzoB2vJ6e34UviMDpA4fNlL8IOj+Uz+8XQdD8+mguE+EZt1Ft3kPyLbbLh8h3 uMJF4y5QAMK+ag+VP1kCw+lkO6NmCtegLUoLYaxETsDh9TTODuD3yZPpKat9NaKh/v XfnFd8ObXHIR8wtItKusJiefoIjNVrnJs/GiNSvLNrIgviyqqhDEVU/n+98MprPGhc RobxbG9Hglxp1SUGqSuuNAxK96xRx/Od/RolRIzfpFDEI1mKgIApRB83a0MVyfzacV 2XIVISBAWyoVHRmEGPkYqzQZRScev6I7srnabHSFMhQYyEbmQP8KuGURGhHgpOng+6 KOjG/Th0FZd2xxeFIIFVOeQtnnpVtroJ4zCQ00r+IuYdyyI0RScef94zKWsI771m8q 3vC4dyW3NoOgf9VIUNr5aAT8U7ZC4z6TLRaBuhcUSFyfCBjb7li7wlsQDagMu5TUys Dn/1+U7kJDbnWi9cxijhpgDY= Received: from localhost (unknown [81.17.16.93]) by wolfsden.cz (Postfix) with ESMTPSA id 13B022A77F2 for ; Sun, 7 Apr 2024 16:06:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1712505961; bh=nftzPC62dsU7KO9saCY16kXd46rBJK834HO/1M4to3o=; h=Date:From:To:Subject; b=C14hiDIQKDdqv1fw3kXOCYM45GyLO1qwdHeAzWIVZksIvEGNh0noM/9svBalE/gRc fPR0FE2Kr5jGJmqtOkjJf1NpXG39bqbpXnxv4ya/KKQhboFHoxl+iB+SarMITeCe/O 0csywlQyuV7U/E5RYr/Hsp9EyChLGeGILFM5gGne5dfQrVBY+7ac00aib2ge8lhvf6 ruEmPqVwTODEKk/itxPbdijdDcssmoR3OxB/zD3yWfVenBds31AS6yFMA4GStyFfV4 qLq6n7ARuZHLq9NPUFu/a2u5Bz6AN/BNbYXfptX8Er29ulmMuZxBd3iTmvWxneRYja tB5kkcSQ/t6zdny3VBOsf0IE/ovP6hQVzs5Pb0ufLvyV3imGWcS3DIJOCAib22TbGN GAHbavALJG7EcpHUue3kYu0R/W5QPPMpAeknYjYUwLRzXtPwL7Vs92p2C3bH0D7uxE UuqglpKks7O/VUKpb/PGsIabtbet3UGdHbdPxg+Em7ivTC2B0NL26kjAEkkrdB5dOt 99eCVHWZoLzQIVOfK4X2mPnDVLVb7MP7HCeos/UNZL+m07AEIqbjeD4wBrJRk6pmHb baGc0abXHJuGEXLT0Wb5jQjKEiWBq/VRoLao0S4wRoa82EhFTO+YHE6cW8xeCAWlci osR6+Ow7JcM0kpl+yMtX/H0c= Date: Sun, 7 Apr 2024 18:05:57 +0200 From: Tomas Volf <~@wolfsden.cz> To: guix-devel@gnu.org Subject: The `channels' field of `operating-system' record Message-ID: Mail-Followup-To: guix-devel@gnu.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="V18wc1XhcDsGv14E" Content-Disposition: inline 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -11.57 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -11.57 X-Migadu-Queue-Id: 3C20CBC1F X-TUID: To25RvIdzf0l --V18wc1XhcDsGv14E Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, yesterday I had to debug a really weird problem. I had a extra-special-file in my system configuration used to create /etc/guix/channels.scm, but it was not working, the channels file contained something completely else then I put into it. In particular, this sequence in the configuration: (extra-special-file "/etc/guix/channels.scm" file/channels.scm) (extra-special-file "/etc/guix/xxx" file/channels.scm) (extra-special-file "/etc/guix/yyy" file/channels.scm) Produced this on the file system: channels.scm -> /gnu/store/icw828kvva25ns9p0y0np7lp3c7xl0n6-channels.scm xxx -> /gnu/store/w3gip7zqrqxbp8kaplq6kia85i5c4fh8-channels.scm yyy -> /gnu/store/w3gip7zqrqxbp8kaplq6kia85i5c4fh8-channels.scm Notice that, despite being created by the exact same code, the store items differs. After ~2 hours of digging I realized this is caused by the changes in 883e69cdfd226c8f40b6e3b76ce0740b59857de6. I see couple of issues here (in no particular order, questions prefixed with Q): * My configuration file just *silently* stopped working. That is not great for obvious reasons. * There is no news entry I did not realize it stopped working for some time (but it explains few weird issues I had lately) until I tried to install completely new system where I actually went to check it works as expected. * Broken default behavior. Currently, out of the box, extra-special-file with "/etc/guix/channels.scm" just does not do anything. No error, no warning. That is pretty unexpected. * There is no terse way to turn it off Currently my configuration contains this: (modify-services %base-services (guix-service-type config => (guix-configuration (inherit config) (channels #f)))) That is 5 lines instead of single token %base-services just to restore the original non-broken behavior. Would be nice to have guix-extension for this turning it into 2 lines. * Q: Is there an easy way to fill (channels)? After I learned that (channels) is a thing, I wanted to use it, but did not find any simple way how to do so. My channels are in channels.scm produced by `guix describe --format=channels', and I do not see any simple way to pass the content of that file into (channels). No, it does not accept (local-file). I tried just (read)-ing it, but that too does not work. I could steal the code from scripts/pull.scm, but that cannot be the intended way, right? So how should I do this? What procedure did I failed to find? * Q: Is the default value right? Currently it defaults to %default-channels, which causes all this magic. Would it not be better to default to #f, so that it would do nothing magical out of the box and would be backwards compatible? You could still turn it on by (Somehow? See above.) providing desired value. Have a nice day, Tomas Volf -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --V18wc1XhcDsGv14E Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmYSxGUACgkQL7/ufbZ/ wanibRAAq4T+tgr6VjDb8JUQA2hjQ6v+ypkbPybGp5Bs48XonrizlnKwaPi5WuqR Z7KPXH9sFSGUKCGDsL6qtI7CI03vExmxZjrnm4RuLU1hZpMW02lvsas1VZ5Tbrhe H7LfLy1jTm/dMVIUdX4c293Mkdzu/Jq+mc//CmjDad7Mr7ogfEeFn+M6L+vW17O0 SXzx/pA2PuUB3u+TCZ9zV174oMFABALubVimP+ImTgjl5WuREHtE/3hAhPWhduvw 0w9OXdz5RVWWSJHyLGxOBZcORP+Ocw+c0flxNcNhKZSjb7RuQuvhtHAHJTBMvuDz loIXFr4MzywEizwZLfs+JrqI3TxfMErMaVbVRZQWyPKEiKirol4kxZ35QhLQvq1x SBcqDyHrhCJ1YPvMvWQNsTSjF8ejc930BJjPwdNFGrnB6fr4qVepEyqpFjMMVJBW mp25Qyw/i5gzZWOVQOfDvl2kpGUkB4pNw6LT5AIBT+Fx9N1FpQ3+Y3Fl7aVSaCoA OHIzFJl8we7r34eAccjpoMbLLulF6JQBpYcjcaBD9xDTjoQatYNB54BOYJ3MwACV DO1Ft+HN1OxboBukWLLK1hJcTHD8WCOk10mm/j9/uoeBJrGbz9Rqut/eV9lWmjvt 0eQmPsMslN7D2gQQ3mbemU+afCzlimj54G/o3/ZMwQrRUww97H4= =mdA1 -----END PGP SIGNATURE----- --V18wc1XhcDsGv14E--