From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yLd/N9RxQGG9ywAAgWs5BA (envelope-from ) for ; Tue, 14 Sep 2021 11:56:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SLQlM9RxQGE7RAAAbx9fmQ (envelope-from ) for ; Tue, 14 Sep 2021 09:56:36 +0000 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 937CF528B for ; Tue, 14 Sep 2021 11:56:35 +0200 (CEST) Received: from localhost ([::1]:34928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQ5B4-0003Kn-M1 for larch@yhetil.org; Tue, 14 Sep 2021 05:56:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQ5AY-0003KY-0X for bug-guix@gnu.org; Tue, 14 Sep 2021 05:56:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36060) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQ5AX-0002n5-Om for bug-guix@gnu.org; Tue, 14 Sep 2021 05:56:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQ5AX-0001a8-Og for bug-guix@gnu.org; Tue, 14 Sep 2021 05:56:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50501: packages->manifest can lose the desired package output Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 14 Sep 2021 09:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50501 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Liliana Marie Prikler Received: via spool by 50501-submit@debbugs.gnu.org id=B50501.16316133406032 (code B ref 50501); Tue, 14 Sep 2021 09:56:01 +0000 Received: (at 50501) by debbugs.gnu.org; 14 Sep 2021 09:55:40 +0000 Received: from localhost ([127.0.0.1]:47603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQ5AC-0001ZE-0r for submit@debbugs.gnu.org; Tue, 14 Sep 2021 05:55:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQ5A9-0001Yy-RL for 50501@debbugs.gnu.org; Tue, 14 Sep 2021 05:55:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46616) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQ5A4-0002Qc-C8; Tue, 14 Sep 2021 05:55:32 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35598 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQ59x-0008IA-FE; Tue, 14 Sep 2021 05:55:32 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Tue, 14 Sep 2021 11:55:24 +0200 In-Reply-To: (Liliana Marie Prikler's message of "Fri, 10 Sep 2021 16:26:25 +0200") Message-ID: <87ilz35vn7.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 50501@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631613395; h=from:from:sender:sender: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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=lyTJRCaai/+6Yv6DaQej4S9LpGwuuLKq2Y/V13kXmpw=; b=C9Q58YWy0ttIsxiAY9QArvU5GjEUfb38zsdDQpD8s/tOvGLmkxtKKDLDBmwwo5r8z4q9zt p/ffiD1XPscI0jsMUz01U3+M75aE3LtP1xjRCR1afsqAwNJGUDhjWTpuvUj7o9Qt3HkL4l BVB/f378+Qmj5wPyIA7qorv2yoJWeskVJWcJkk2M5ea/xBbJyRaLfUmvpkZlNJAq8e0X3Q vzpOqRHkmdne2fVoybxP4/p+cyn6FrcnEDrG3Vp69BQcvWOQ2dohhoF1/RO3oQtHQB/1Nr /a0mDJ/khkeM92UisyBk9Hyc7Lz+k1YQsP2a3mQubA8vtSFjoYV9UDHzzJ3TXw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631613395; a=rsa-sha256; cv=none; b=ktb36ZK1TOy6VFpYnZ9vGXKcnn8TpLHsTj3Vbml6BXCjLgZ4QpTRtgYwWPomnf669DR3XO TpBUHL4/TCrxrgZ4XgRPGU+B3vQ3WiJ/powjIwliQJc+bgtIubLq0PSTSdVwFb9+LsmVyR 9o5ATZ2FGtXd4CAmw+Ibgjya10085IB3gSMY/Lh3KjL/j3Ubr99zAK529wl4gL6fFG4Rub RiohIssziHy2TS1mEavauWCRLKl/zwAx8BsBd7rEDY2+3XJYO3lXbgokU29UE9SLRhjte4 UYWsmPGZmyUvcgsn1WQY+AJiGzsfPbDBFHBcZXIjlTVYzeiCgNFEAAHl06pKIQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.40 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 937CF528B X-Spam-Score: -1.40 X-Migadu-Scanner: scn1.migadu.com X-TUID: jWz4TfX9wcdC Hi, Liliana Marie Prikler skribis: > Am Freitag, den 10.09.2021, 12:34 +0300 schrieb Efraim Flashner: >> I've been fighting my manifest to try to get "git" and "git:send- >> email" both included, while using package transformations. For the >> sake of brevity, here's a stripped down version of my manifest: >>=20 >> (packages->manifest >> (map specification->package+output >> '("git" "git:send-email"))) >>=20 >> Here's what I learned from some experimentation: >>=20 >> (cmd)scheme@(guile-user)> (specification->package+output "git:send- >> email") >> $14 =3D #> 7f730e918320> >> $15 =3D "send-email" >> (ins)scheme@(guile-user)> (list (specification->package+output >> "git:send-email")) >> $16 =3D (#> 7f730e918320>) >> (ins)scheme@(guile-user)> (list (specification->package+output >> "git")) >> $17 =3D (#> 7f730e918320>) >>=20 >> Meanwhile, (specifications->manifest '("git" "git:send-email")) does >> actually return a manifest with both the "out" and the "send-email" >> outputs of git. >>=20 >> (package->manifest-entry (specification->package+output "git:send- >> email")) >> returns a manifest entry for "git:out" and >> (package->manifest-entry git "send-email") returns a manifest entry >> for >> "git:send-email". > I think for this use of specification->package+output you need to > compose it with list like (compose list specification->package+output).=20 > The reason you observe this behaviours is that specification- >>package+output returns multiple values, whereas package->manifest- > entry expects a single value which is either a package or a list of the > form (package "output"). Yes, and Guile truncates multiple-value returns by default: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (list (values 1 2)) $7 =3D (1) scheme@(guile-user)> (+ (values 1 2) 2) $8 =3D 3 --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99.