From patchwork Sun May 26 00:23:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 64887 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B4B2027BBEA; Sun, 26 May 2024 01:24:29 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9097827BBE2 for ; Sun, 26 May 2024 01:24:23 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sB1gB-0007Pm-NQ; Sat, 25 May 2024 20:24:03 -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 ) id 1sB1g9-0007PT-O5 for guix-patches@gnu.org; Sat, 25 May 2024 20:24:01 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sB1g9-0002fC-0P; Sat, 25 May 2024 20:24:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sB1gA-0006Tx-Hp; Sat, 25 May 2024 20:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71201] [PATCH] doc: Replace 'specification->package+output' with 'specifications->packages'. Resent-From: iyzsong@envs.net Original-Sender: "Debbugs-submit" Resent-CC: pelzflorian@pelzflorian.de, ludo@gnu.org, matt@excalamus.com, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Sun, 26 May 2024 00:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71201 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71201@debbugs.gnu.org Cc: =?utf-8?b?5a6L5paH5q2m?= , Florian Pelz , Ludovic =?utf-8?q?Court=C3=A8s?= , Matthew Trzcinski , Maxim Cournoyer X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Florian Pelz , Ludovic =?utf-8?q?Court=C3=A8s?= , Matthew Trzcinski , Maxim Cournoyer Received: via spool by submit@debbugs.gnu.org id=B.171668301922554 (code B ref -1); Sun, 26 May 2024 00:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 May 2024 00:23:39 +0000 Received: from localhost ([127.0.0.1]:55752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sB1fm-0005rM-Rk for submit@debbugs.gnu.org; Sat, 25 May 2024 20:23:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:37314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sB1fk-0005nC-33 for submit@debbugs.gnu.org; Sat, 25 May 2024 20:23:36 -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 ) id 1sB1fb-0007IU-Tm for guix-patches@gnu.org; Sat, 25 May 2024 20:23:27 -0400 Received: from mail.envs.net ([5.199.136.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sB1fY-0002Wj-Kt for guix-patches@gnu.org; Sat, 25 May 2024 20:23:27 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 6079538A36B2; Sun, 26 May 2024 00:23:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1716683000; bh=zBABYTKrJQV9FDnC/fxjsvLZ3jBCV+4lWTShOPu5IgI=; h=From:To:Cc:Subject:Date:From; b=H3JUeL1MuiuoL8/SY9ivsz7cyF1Ft+7Kxg8RiQBuZ3IfQzfLynjJVKNQgQPaMwPMI irnRe3mHT1F0s23fm8h77Ec7dCa5ZLw3ETCaASJIxpes1DGVR7nTQjFbF7HrYg7E2b Zywvdw24r5t7FW2wkmszK7zHJIqUP14wVo3LJFqVNB/PwoQvkpOdL1PX84k5uBwP5N 6tn2VbiK3GSYpJDzboosV6YSxsWBwuJblV8JSOC5W5B5J0cJ/TQ8vVyNpng9WVjS7+ PhYMlNkhn7YTFed6mNU0CX9Ae26J3IwyQxZpg2iRJZhx3ZaSmFqMzmaonSTJvDt91p yM1ddW5yfioaPaehBooHDMK7n6KFL4Vq4/aWlkSl8mRcHCZzV6AkhxajBtdlCFJQXW Tt3EFxD2Q+Wh8tToRNDEIfgcSJqFRPr90xOwpgkH29ZCuJbiJorKQzo0+A87spkOMU QT14KUYUQONg2TRhno/dgSUgpLdgwRpfTrm/24jPDxz7T1SS0KGWRR8cVhDaW0gTs8 iYZkY7iJpWV+e1BWFDRlkpHaWpxghSd3gCOo8E9RoJ5HX8gI94PyW7gnVn4XQXW3uH eIkHD7tgUglnQOelewJVnGTIfkZCTI2rD/EadxgxFIQXXqEy/CklCoPnO7/6+490lU 7+urMiTR6doH7zKAvM1k/Tvk= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id htWVXOJf3PP1; Sun, 26 May 2024 00:23:17 +0000 (UTC) Received: from localhost (unknown [36.170.58.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Sun, 26 May 2024 00:23:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 66bba81d; Sun, 26 May 2024 00:23:11 +0000 (UTC) Date: Sun, 26 May 2024 08:23:08 +0800 Message-ID: <4f85abaf9a60c8ce21bf7aad916fd5a8476ee88c.1716682979.git.iyzsong@member.fsf.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=5.199.136.28; envelope-from=iyzsong@envs.net; helo=mail.envs.net 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_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: iyzsong@envs.net X-ACL-Warn: , iyzsong--- via Guix-patches X-Patchwork-Original-From: iyzsong--- via Guix-patches via From: "ashish.is--- via Guix-patches\" via" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: 宋文武 '(map specification->package+output specs)' doesn't work due to 'specification->package+output' will return multiple values. * doc/guix.texi (Using the Configuration System): Replace 'specification->package+output' with 'specifications->packages'. Change-Id: I443771327a2ef5ae5e7dddd9785f1eef4200e898 Reviewed-by: Maxim Cournoyer --- doc/guix.texi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) base-commit: 9756d9d6345fb142944261174453ab0a597cc2e7 diff --git a/doc/guix.texi b/doc/guix.texi index 8073e3f6d4..8cb1a541eb 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -17246,10 +17246,10 @@ Using the Configuration System %base-packages))) @end lisp -@findex specification->package+output +@findex specifications->packages When a package has more than one output it can be a challenge to refer to a specific output instead of just to the standard @code{out} output. For these -situations one can use the @code{specification->package+output} procedure from +situations one can use the @code{specifications->packages} procedure from the @code{(gnu packages)} module. For example: @lisp @@ -17257,8 +17257,8 @@ Using the Configuration System (operating-system ;; ... - (packages (append (map specification->package+output - '("git" "git:send-email")) + (packages (append (specifications->packages + '("git" "git:send-email")) %base-packages))) @end lisp