From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kDt9FlCRO2EkbwAAgWs5BA (envelope-from ) for ; Fri, 10 Sep 2021 19:09:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CKosElCRO2EgdQAAbx9fmQ (envelope-from ) for ; Fri, 10 Sep 2021 17:09: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 AD79310E99 for ; Fri, 10 Sep 2021 19:09:35 +0200 (CEST) Received: from localhost ([::1]:45102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOk1s-0004uD-Si for larch@yhetil.org; Fri, 10 Sep 2021 13:09:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOhUc-0002yY-MU for bug-guix@gnu.org; Fri, 10 Sep 2021 10:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55611) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOhUc-0007Ib-E8 for bug-guix@gnu.org; Fri, 10 Sep 2021 10:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mOhUc-0000Q6-AY for bug-guix@gnu.org; Fri, 10 Sep 2021 10:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50501: packages->manifest can lose the desired package output Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 10 Sep 2021 14:27:02 +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: Efraim Flashner , 50501@debbugs.gnu.org Received: via spool by 50501-submit@debbugs.gnu.org id=B50501.16312839951557 (code B ref 50501); Fri, 10 Sep 2021 14:27:02 +0000 Received: (at 50501) by debbugs.gnu.org; 10 Sep 2021 14:26:35 +0000 Received: from localhost ([127.0.0.1]:38919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOhUB-0000P2-0U for submit@debbugs.gnu.org; Fri, 10 Sep 2021 10:26:35 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:43770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOhU8-0000Oo-AR for 50501@debbugs.gnu.org; Fri, 10 Sep 2021 10:26:33 -0400 Received: by mail-wm1-f66.google.com with SMTP id n7-20020a05600c3b8700b002f8ca941d89so1526388wms.2 for <50501@debbugs.gnu.org>; Fri, 10 Sep 2021 07:26:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=6AVqCgv9mfnuGYJLZLOCxs6bez16wbzRyD8M4EqcmFU=; b=Y9L7yr26gO7OrmdBBxjKUsgWU/TKBSIVwGgpLx6Ttl/iMsc/7/2xQ6oG0HrItI34CC g4eaFw2Go+D3xOxzbfoIM7AfkLWKTn7cHCaDmYW46xsNZOwSf54jDRpfwbsN19Ieruvy 8N+EzBqNadM/WXowGVhQHU+9GnLNsuHdhugXOIFO0N5cg7q5vNv487FmMvGqrRkKVC4d S7pv/3KZtetxZXrP/GdVVDDfxi/uBzLVOuyHCPTgFMLeNo8p9ctHCLia4wTJaIyIuoWh JkkQgEon6JhXMDgXXIRr7XIR+pQTTQ0mTUc/IdsuzTzDjkFF+4SgcrwzGok/gMxjkGfA /sTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=6AVqCgv9mfnuGYJLZLOCxs6bez16wbzRyD8M4EqcmFU=; b=5GWDeWG/zjCvC+EGkAThRUEJ+MgBcy+P5g31ECUeQeC5fpt3PycyRZgvnjozJcFw7q F0C6F+IiglXrKfERqb6XeUyyPh4h+Ux8C+kmeJpiRr6D2MGtU6OQWzyPOq0pZE4nf8rm D5XxFRKDlZ8VA6CyYpHzXciq1gS0CtBqGd0eOmiJKxNyRo0Bs7lQy6jSAdxoIN0Skwl3 95/gxNfU2bNGOVxe6suoRcg2/9HA7/iLITuBw8tnrhXSyf5IpVBKRTbQ0v4w39/Ke6gp mlO0iYdgK5pj4L76Jr3ukmT/EqD6ccz9LwLiu2zyV2qk1PgKOhNUFv1sXXk+OO2ki75G uICg== X-Gm-Message-State: AOAM530i9migoKJWkFeJDt8Ia3/78X8ZY/Prwaxxos7ev6KieY2hBpHt sVtJA5PFwRRulGE1KB50X089OrHNupI= X-Google-Smtp-Source: ABdhPJwHnECq3wP3G9gNjS+/1MKQj5aL0YSkan7JDcXuWFQA6GyfVGl20Xdz6vw/7af8RSiDnFslKQ== X-Received: by 2002:a1c:4406:: with SMTP id r6mr8780133wma.150.1631283986763; Fri, 10 Sep 2021 07:26:26 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id b22sm4482906wmn.18.2021.09.10.07.26.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Sep 2021 07:26:26 -0700 (PDT) Message-ID: From: Liliana Marie Prikler Date: Fri, 10 Sep 2021 16:26:25 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Fri, 10 Sep 2021 13:07:45 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=1631293776; 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: 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:dkim-signature; bh=6AVqCgv9mfnuGYJLZLOCxs6bez16wbzRyD8M4EqcmFU=; b=YTAeBwxfd7ovz1oxg4orS7P/1YGwcw73FgqF4i//NIH3DIWXww/Zklxp5G68LrQHKr+TPz XQmNtXi9MyOKXUxfUqzj4tY0d/1Tc6mkth0Vbt4KqTVWpNgscSDyhog7iNP/ZIXBkaNmFZ 4zDUJwmha/Pq+n+GQaiWsc25R/QzAs+DvXNckAaHwhA/mlr29dQ2ndBoNpyJUaWcVEjQmP Kxbm+JnkGYtsegwrvBwNGn/3udzHGqLZJG8unPtbdq1AUgUqSenjDmyW2/1KC9e3t6tLRv a6EdyfJ/luATJ+AI6n41kpZKaVpYan48e0ywmIQzRr9OKB7OMafgimnfwwhcVw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631293776; a=rsa-sha256; cv=none; b=nECXNK+4CMPunfE2OUMFWlENeI24gPZ51UqJt++Z34iTC00Lat4gstMy4b+0+Bxy/ep+jN dmukIh1PRQEfo1WG9YK30NiLKYB+Jg3r/R9XIxUA/jcd6v6k7pJfGLz8B5lcDmF9ypUENr WPpeYfnzubsuXJbQ7mXw62sWAfMtavP/cx39jdRxzJgf4kyx2KZGrAft4jPiTgcnmdY9K6 N+lcGAR8pC8qottwKCf/qoPncCkC3pJxDdan/VqyKPiY4bNKXdFxupLL3aLULt9vItzVA+ 0xklgxRZgkFfUOiUwgS3q7ivOoA2ZXcPGNc2rc74RWbnjRZ/C3OnlCe+x0OELw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Y9L7yr26; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Y9L7yr26; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Queue-Id: AD79310E99 X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: l6u47pPTfE2S Hi Efraim, 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: > > (packages->manifest > (map specification->package+output > '("git" "git:send-email"))) > > Here's what I learned from some experimentation: > > (cmd)scheme@(guile-user)> (specification->package+output "git:send- > email") > $14 = # 7f730e918320> > $15 = "send-email" > (ins)scheme@(guile-user)> (list (specification->package+output > "git:send-email")) > $16 = (# 7f730e918320>) > (ins)scheme@(guile-user)> (list (specification->package+output > "git")) > $17 = (# 7f730e918320>) > > Meanwhile, (specifications->manifest '("git" "git:send-email")) does > actually return a manifest with both the "out" and the "send-email" > outputs of git. > > (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). 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"). Regards