From unknown Sat Jun 21 03:14:44 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#44630 <44630@debbugs.gnu.org> To: bug#44630 <44630@debbugs.gnu.org> Subject: Status: [PATCH] channels: Expose the default channel in %default-channel Reply-To: bug#44630 <44630@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:14:44 +0000 retitle 44630 [PATCH] channels: Expose the default channel in %default-chan= nel reassign 44630 guix-patches submitter 44630 Zhu Zihao severity 44630 normal tag 44630 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 14 07:08:06 2020 Received: (at submit) by debbugs.gnu.org; 14 Nov 2020 12:08:06 +0000 Received: from localhost ([127.0.0.1]:49917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kduLe-0000U5-97 for submit@debbugs.gnu.org; Sat, 14 Nov 2020 07:08:06 -0500 Received: from lists.gnu.org ([209.51.188.17]:53972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kduLd-0000Ty-8k for submit@debbugs.gnu.org; Sat, 14 Nov 2020 07:08:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kduLd-0001gX-3v for guix-patches@gnu.org; Sat, 14 Nov 2020 07:08:05 -0500 Received: from mail-m972.mail.163.com ([123.126.97.2]:57288) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kduLU-0007tf-H6 for guix-patches@gnu.org; Sat, 14 Nov 2020 07:08:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=XVkrU 8u4SJ+mpMtrcpApHI/oKBsRV5+w0reZMXQLCvM=; b=NCBXtnJ2KJbMV640+w5m9 B2U2mx4HpjqoL4ONh/3r8KtITmSvv2Dy/CuDRv1Ep3p3pHWgLfS/EH/P69IP3En7 o9Z5+S1AFpo+jinwl123Vx52gbxSnPdiAMe81JoWdbKivO1w2pfClOx9A62G5jT1 KeX4kDF1VjcxIoBrITQ+tw= Received: from asus-laptop (unknown [27.39.89.45]) by smtp2 (Coremail) with SMTP id GtxpCgCHUneLyK9fOFwkBg--.487S2; Sat, 14 Nov 2020 20:07:40 +0800 (CST) User-agent: mu4e 1.4.13; emacs 27.1 From: Zhu Zihao To: guix-patches@gnu.org Subject: [PATCH] channels: Expose the default channel in %default-channel Date: Sat, 14 Nov 2020 20:07:34 +0800 Message-ID: <86ft5cp2ex.fsf@163.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-CM-TRANSID: GtxpCgCHUneLyK9fOFwkBg--.487S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUctCzDUUUU X-Originating-IP: [27.39.89.45] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/1tbiFAzcr1aD76NpQgAAsZ Received-SPF: pass client-ip=123.126.97.2; envelope-from=all_but_last@163.com; helo=mail-m972.mail.163.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/14 07:07:43 X-ACL-Warn: Detected OS = Linux 3.1-3.10 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.5 (/) 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.4 (--) --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain This expose the inner channel of "%default-channels", this can help user to override the original guix channel with any mirror more conveniently. Before: ``` (channel (inherit (car %default-channels)) (url "url/to/mirror")) ``` After: ``` (channel (inherit %default-channel) (url "https://mirror.guix.org.cn/git/guix")) ``` --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFJBAEBCAAzFiEE7NCVzXX6efyusptG1SOVn+xGFqYFAl+vyIYVHGFsbF9idXRf bGFzdEAxNjMuY29tAAoJENUjlZ/sRhamz8oIAIk+sRr0amllV5uIAtvN15twRN0z ayQLjirRSoDHYzohpZnWw5+oGZiPO3LuyNRvvndhYdpo3OBHA13tNYF8jJTtzk12 sGh3FG0eC1p2dgr+I96FhazaN71GtpdDIBQNvwnf53M0Y0VTU7bKnsHTa8mR90yI Xtctxymv3u1K54+UCyXi+tsGRdfp0Ov0D23NFsMMX451JFlPCtq4oH7qV4w5kyXm MF5hH3AXTPvthAK088pRg/MlnV9w/ACZ0b8euHa6yC2Y0axc0jL5/gDpVOgDcnZb jr6haBM8Q1HXqTOZDkn+bfvg2a3H0PW5d0gIgQij3CJgIBfhWZ6K4q7cgCo= =t6uK -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-channels-Expose-the-default-channel-in-default-chann.patch >From 2441a555cf9dab16da8b040ebb8b3ff60ccd1f2c Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Sat, 14 Nov 2020 20:02:47 +0800 Subject: [PATCH] channels: Expose the default channel in %default-channel variable. * guix/channels(%default-channel): New variable taken from the inner of %default-channels. (%default-channels): Refactored. --- guix/channels.scm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/guix/channels.scm b/guix/channels.scm index 916d663e9f..f78712c895 100644 --- a/guix/channels.scm +++ b/guix/channels.scm @@ -72,6 +72,7 @@ openpgp-fingerprint->bytevector openpgp-fingerprint + %default-channel %default-channels guix-channel? @@ -170,13 +171,16 @@ to the corresponding bytevector." ;; URL of the default 'guix' channel. "https://git.savannah.gnu.org/git/guix.git") +(define %default-channel + (channel + (name 'guix) + (branch "master") + (url %default-channel-url) + (introduction %guix-channel-introduction))) + (define %default-channels ;; Default list of channels. - (list (channel - (name 'guix) - (branch "master") - (url %default-channel-url) - (introduction %guix-channel-introduction)))) + (list %default-channel)) (define (guix-channel? channel) "Return true if CHANNEL is the 'guix' channel." -- 2.29.2 --=-=-= Content-Type: text/plain -- Retrieve my PGP public key: https://meta.sr.ht/~citreu.pgp Zihao --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 26 17:38:23 2020 Received: (at 44630) by debbugs.gnu.org; 26 Nov 2020 22:38:23 +0000 Received: from localhost ([127.0.0.1]:43130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiPuB-0008W9-EJ for submit@debbugs.gnu.org; Thu, 26 Nov 2020 17:38:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiPu8-0008Vu-Ui for 44630@debbugs.gnu.org; Thu, 26 Nov 2020 17:38:21 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52166) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiPu2-000529-So; Thu, 26 Nov 2020 17:38:14 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45526 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kiPu2-0004Rh-5m; Thu, 26 Nov 2020 17:38:14 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Zhu Zihao Subject: Re: [bug#44630] [PATCH] channels: Expose the default channel in %default-channel References: <86ft5cp2ex.fsf@163.com> Date: Thu, 26 Nov 2020 23:38:12 +0100 In-Reply-To: <86ft5cp2ex.fsf@163.com> (Zhu Zihao's message of "Sat, 14 Nov 2020 20:07:34 +0800") Message-ID: <87ft4vzquj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44630 Cc: 44630@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: -3.3 (---) Hi, Zhu Zihao skribis: > This expose the inner channel of "%default-channels", this can help user > to override the original guix channel with any mirror more conveniently. > > Before: > > ``` > (channel > (inherit (car %default-channels)) > (url "url/to/mirror")) > ``` > > After: > > ``` > (channel > (inherit %default-channel) > (url "https://mirror.guix.org.cn/git/guix")) > ``` Hmm I understand the need here, but at the same time, the variable is called =E2=80=98%default-channels=E2=80=99 (plural) to preserve the ability= to turn splut Guix into several channels. What could work though is your patch, except with the name =E2=80=98%default-guix-channel=E2=80=99 instead of =E2=80=98%default-channe= l=E2=80=99, which makes it clear that it=E2=80=99s just the =E2=80=98guix=E2=80=99 channel. Works for you? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 26 21:19:40 2020 Received: (at 44630) by debbugs.gnu.org; 27 Nov 2020 02:19:40 +0000 Received: from localhost ([127.0.0.1]:43375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiTMK-0007VQ-21 for submit@debbugs.gnu.org; Thu, 26 Nov 2020 21:19:40 -0500 Received: from mail-m973.mail.163.com ([123.126.97.3]:35812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiTMF-0007VC-Dv for 44630@debbugs.gnu.org; Thu, 26 Nov 2020 21:19:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Message-ID:Date:MIME-Version; bh=iQLNp Pnx9qbRpqtAdi+82IHy9yuXFwpuorLyw5smsIk=; b=jcPd9b2gaFvI5ccUj77q2 lpNsa3BzSWF30dFZrigrYTPnmO0Tl0hD8ulXrXJKyZj29Tneh5VLk0KrjsMJ3UxD A1EBv8DePhVCKZnBtDvys7Bdx8bfOsE+azsCm4o6DWJrGTrc9pF+Q3HtNcZDC7ql s+GN/dKoZpH18cD4aOrua0= Received: from asus-laptop (unknown [27.39.89.159]) by smtp3 (Coremail) with SMTP id G9xpCgDnyDQyYsBfINKMNA--.32871S2; Fri, 27 Nov 2020 10:19:30 +0800 (CST) References: <86ft5cp2ex.fsf@163.com> <87ft4vzquj.fsf@gnu.org> User-agent: mu4e 1.4.13; emacs 27.1 From: Zhu Zihao To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#44630] [PATCH] channels: Expose the default channel in %default-channel In-reply-to: <87ft4vzquj.fsf@gnu.org> Message-ID: <86ft4vh781.fsf@163.com> Date: Fri, 27 Nov 2020 10:19:26 +0800 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-CM-TRANSID: G9xpCgDnyDQyYsBfINKMNA--.32871S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxU5BMNDUUUU X-Originating-IP: [27.39.89.159] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/1tbiFBPpr1aD8GTPRwAAsI X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44630 Cc: 44630@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 (-) --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain Sounds reasonable. Patch updated. --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFJBAEBCAAzFiEE7NCVzXX6efyusptG1SOVn+xGFqYFAl/AYi4VHGFsbF9idXRf bGFzdEAxNjMuY29tAAoJENUjlZ/sRhamuMsH/24s4dsvcA691D71/MqqEwIpWDIr /7A9l7JZh0DcLyg3TI1lxpYbyw04IikHyusbjxDr8Ze8oUrWbguHAnQkULibVmpL daM0VnBwrUTRLHgyQdHrfjkoO8dhnesvQnWGYgso85YPuccTVp4z/56ZLrrtKhqh YHALVchas/tw+Hf+LlxWpqKtloNC17WzziAWrQBMAMTkdfT0Q9Ydoi/tOQde5yJq VfidzIeNKEdl31HBM7go9LznkrqAcOevMchSohfOtydHGuM8OhfQMzQiGeJjRdnd UrF3OnUwjurjALtWa2C6zEF9i2y0aUZOPWrYlhyBeOP4aswq0//cAMd/XfE= =guo4 -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-channels-Expose-the-default-channel-in-default-chann.patch >From 1548439dbcfaa89b0c03b2d30e794a4374273507 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Fri, 27 Nov 2020 10:16:29 +0800 Subject: [PATCH] channels: Expose the default channel in %default-channel. * guix/channels(%default-guix-channel): New variable taken from the inner of %default-channels. (%default-channels): Refactored. --- guix/channels.scm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/guix/channels.scm b/guix/channels.scm index 916d663e9f..0c84eed477 100644 --- a/guix/channels.scm +++ b/guix/channels.scm @@ -72,6 +72,7 @@ openpgp-fingerprint->bytevector openpgp-fingerprint + %default-guix-channel %default-channels guix-channel? @@ -170,13 +171,16 @@ to the corresponding bytevector." ;; URL of the default 'guix' channel. "https://git.savannah.gnu.org/git/guix.git") +(define %default-guix-channel + (channel + (name 'guix) + (branch "master") + (url %default-channel-url) + (introduction %guix-channel-introduction))) + (define %default-channels ;; Default list of channels. - (list (channel - (name 'guix) - (branch "master") - (url %default-channel-url) - (introduction %guix-channel-introduction)))) + (list %default-guix-channel)) (define (guix-channel? channel) "Return true if CHANNEL is the 'guix' channel." -- 2.29.2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hi, > > Zhu Zihao skribis: > >> This expose the inner channel of "%default-channels", this can help user >> to override the original guix channel with any mirror more conveniently. >> >> Before: >> >> ``` >> (channel >> (inherit (car %default-channels)) >> (url "url/to/mirror")) >> ``` >> >> After: >> >> ``` >> (channel >> (inherit %default-channel) >> (url "https://mirror.guix.org.cn/git/guix")) >> ``` > > Hmm I understand the need here, but at the same time, the variable is > called =E2=80=98%default-channels=E2=80=99 (plural) to preserve the abili= ty to turn > splut Guix into several channels. > > What could work though is your patch, except with the name > =E2=80=98%default-guix-channel=E2=80=99 instead of =E2=80=98%default-chan= nel=E2=80=99, which makes it > clear that it=E2=80=99s just the =E2=80=98guix=E2=80=99 channel. > > Works for you? > > Thanks, > Ludo=E2=80=99. --=20 Retrieve my PGP public key: https://meta.sr.ht/~citreu.pgp Zihao --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 27 04:59:01 2020 Received: (at 44630-done) by debbugs.gnu.org; 27 Nov 2020 09:59:01 +0000 Received: from localhost ([127.0.0.1]:44025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiaWq-0006Wh-Tw for submit@debbugs.gnu.org; Fri, 27 Nov 2020 04:59:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiaWp-0006WU-49 for 44630-done@debbugs.gnu.org; Fri, 27 Nov 2020 04:58:59 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35349) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiaWi-0008JI-Gd; Fri, 27 Nov 2020 04:58:52 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=46644 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kiaWh-00023N-L2; Fri, 27 Nov 2020 04:58:52 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Zhu Zihao Subject: Re: [bug#44630] [PATCH] channels: Expose the default channel in %default-channel References: <86ft5cp2ex.fsf@163.com> <87ft4vzquj.fsf@gnu.org> <86ft4vh781.fsf@163.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 Frimaire an 229 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: Fri, 27 Nov 2020 10:58:50 +0100 In-Reply-To: <86ft4vh781.fsf@163.com> (Zhu Zihao's message of "Fri, 27 Nov 2020 10:19:26 +0800") Message-ID: <87pn3zw279.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44630-done Cc: 44630-done@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: -3.3 (---) Hi, Zhu Zihao skribis: > From 1548439dbcfaa89b0c03b2d30e794a4374273507 Mon Sep 17 00:00:00 2001 > From: Zhu Zihao > Date: Fri, 27 Nov 2020 10:16:29 +0800 > Subject: [PATCH] channels: Expose the default channel in %default-channel. > > * guix/channels(%default-guix-channel): New variable taken from the inner= of > %default-channels. > > (%default-channels): Refactored. Applied, thanks! Ludo=E2=80=99. From unknown Sat Jun 21 03:14:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 25 Dec 2020 12:24:06 +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