GNU bug report logs

#65665 package-mapping with #:deep? #t doesn't get all the implicit inputs

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #76 received at 65665@debbugs.gnu.org (full text, mbox, reply):

Received: (at 65665) by debbugs.gnu.org; 23 Oct 2023 17:30:27 +0000
From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 23 13:30:27 2023
Received: from localhost ([127.0.0.1]:51556 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1quyl1-0004dP-Co
	for submit@debbugs.gnu.org; Mon, 23 Oct 2023 13:30:27 -0400
Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:39938)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@gmail.com>) id 1quyky-0004cx-43
 for 65665@debbugs.gnu.org; Mon, 23 Oct 2023 13:30:25 -0400
Received: by mail-wm1-x333.google.com with SMTP id
 5b1f17b1804b1-408434ce195so9337535e9.0
 for <65665@debbugs.gnu.org>; Mon, 23 Oct 2023 10:29:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1698082189; x=1698686989; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=OE3VQNJnSYB5WCBl/krrUCyn8ICCyqoBp7PRlxQiHUI=;
 b=C6bzzJKlH+2xCZg5yAhVDGMOA0HKU8FOBnIuBIhp7N6D2WJ8srPTi/NSNmPJxEIrC6
 SPzL7P3GaMA15Oq/8QCMlws6RkNs0nm8mTQ2EzeKK/a117dlhfY9M0yEdCyAAFQRM6hj
 WY+nl99R70KG1G64ORxXJUY9nd4GAyaSlDTX0yDZZ1YUR9PNdNzzL6+g5PgPW6RvUS4W
 5Z/FytSv17w1fnSYaWMDSnZcU+AgRnGWXELa2G/MDEdcWr09HTfLrM0TxXys0EJK5FYG
 ntZrU7/sjpud7izN1W90+NqF/OLUMHm5cIFVNyYf3uQD6GHDmyM78zkninyU43hKgbtK
 7HbQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1698082189; x=1698686989;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=OE3VQNJnSYB5WCBl/krrUCyn8ICCyqoBp7PRlxQiHUI=;
 b=POidkVcXNXG6drOPOC69TV2FhQX/nMbB1W6uGkbDwtJ0P+LCvQc1ZbPnPF9OGZaMOW
 Se+A2pD3twBeWqfZAwESVqc+EeNvNaw1eQsVxc2ZnRAc/aWTbfp8NndHIa8Q86oXIf99
 RaBal2D1Y4QZZDUxOlWaadjoQE4Bao6A6pAkIzIPbGlLQ8IlvXNI+On8bNpB8rzKrogO
 RafkIClmXl+B4OiqbnVBsTJVrK2/cWG+NB/fTzo10i3iKeUOoIlP2/J9sta1XnXF3m4Y
 L2hK4nQN+lJAFRLEP8vPw66SCJtjOAzTgoZrP2gt14FAggVNaRmRusksHYDzpkvCmHO5
 88rQ==
X-Gm-Message-State: AOJu0YwZyxu9MU/nNdKSZtXMe3oQdLkqA1cNKB449Ds0r0IDVCieRTTJ
 9spUnoltFvhjrLRuMWNj0ZoGBSvXAUY=
X-Google-Smtp-Source: AGHT+IE8j8mUX+20uHkV40YGvPZzlMnyZvIXXsjvcgJdpBF44Ye973S2fF7JvA5WqVK6pKjXsVP8/w==
X-Received: by 2002:adf:b1d3:0:b0:32d:c333:c1dd with SMTP id
 r19-20020adfb1d3000000b0032dc333c1ddmr6773814wra.7.1698082188893; 
 Mon, 23 Oct 2023 10:29:48 -0700 (PDT)
Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id
 r3-20020adff103000000b0032d9337e7d1sm8223948wro.11.2023.10.23.10.29.48
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 23 Oct 2023 10:29:48 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@gmail.com>
To: Ulf Herrman <striness@tilde.club>, Ludovic Courtès
 <ludo@gnu.org>
Subject: Re: bug#65665: package-mapping with #:deep? #t doesn't get all the
 implicit inputs
In-Reply-To: <8734y3r4z1.fsf@tilde.club>
References: <87h6ofufy5.fsf@tilde.club> <87msxmqwng.fsf@tilde.club>
 <871qe0lytk.fsf_-_@gnu.org> <87wmvrdxnf.fsf@tilde.club>
 <87y1g5fd1e.fsf@gnu.org> <87o7h0e4us.fsf@tilde.club>
 <87wmvgoxn7.fsf@gnu.org> <8734y3r4z1.fsf@tilde.club>
Date: Mon, 23 Oct 2023 15:53:35 +0200
Message-ID: <87r0lljvhc.fsf@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.1 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Hi, On Sat, 21 Oct 2023 at 17:22, Ulf Herrman wrote: >> I
   don’t know, should we start by having a proper bug report for this and >>
    study how this happen? 
 
 Content analysis details:   (1.1 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (zimon.toutoune[at]gmail.com)
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
  1.1 DATE_IN_PAST_03_06     Date: is 3 to 6 hours before Received: date
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2a00:1450:4864:20:0:0:0:333 listed in]
                             [list.dnswl.org]
X-Debbugs-Envelope-To: 65665
Cc: Ulf Herrman <striness@tilde.club>, 65665@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: 0.1 (/)
Hi,

On Sat, 21 Oct 2023 at 17:22, Ulf Herrman <striness@tilde.club> wrote:

>> I don’t know, should we start by having a proper bug report for this and
>> study how this happen?

[...]

>> Again I’m sorry if I’m slow to understand, but I’d like to make sure we
>> have a good understanding of the problem before we start discussing
>> solutions.
>
> Okay, I suppose I should have given a concrete example of the behavior.
> The qgit example can fill that role:
>
> $ cat $(./pre-inst-env guix build qgit -n --derivations --no-grafts --with-latest=qtbase)

If I might, Guix revision a25a492f2b, my understanding is,

    $ ./pre-inst-env guix build qgit -n --with-latest=qtbase
    /gnu/store/gx5d03as0k1w6jv0pssi6j69n8glf6w5-qgit-2.10.drv
    /gnu/store/h02aizdjy4p10n4gmcy0y35x14lmjx3n-qtbase-6.6.0.drv

Then the builder of the derivation
/gnu/store/gx5d03as0k1w6jv0pssi6j69n8glf6w5-qgit-2.10.drv reads,

--8<---------------cut here---------------start------------->8---
(begin
  (use-modules
   (guix build qt-build-system)
   (guix build utils))
  (qt-build #:source "/gnu/store/a57n7wy8mdi7l52pr4zg07132blgj5xp-qgit-2.10-checkout" #:system "x86_64-linux" #:outputs
            (list
             (cons "out"
                   ((@
                     (guile)
                     getenv)
                    "out")))
            #:inputs
            (quote
             (("source" . "/gnu/store/a57n7wy8mdi7l52pr4zg07132blgj5xp-qgit-2.10-checkout")
              ("cmake" . "/gnu/store/ygab8v4ci9iklaykapq52bfsshpvi8pw-cmake-minimal-3.24.2")
              ("qtbase" . "/gnu/store/khlz8afih21pd0szn5x1ck6bp6w320cz-qtbase-6.6.0")
[...]
            #:qtbase "/gnu/store/h8z3xhpb8m1ih2k45935kqx0wya5w7vq-qtbase-5.15.10"
--8<---------------cut here---------------end--------------->8---

Therefore, the transformation does not rewrite #:qtbase.  And note that
qtbase-5.15.10 is not listed as #:inputs.

Without the transformations, it reads,

--8<---------------cut here---------------start------------->8---
(begin
  (use-modules
   (guix build qt-build-system)
   (guix build utils))
  (qt-build #:source "/gnu/store/a57n7wy8mdi7l52pr4zg07132blgj5xp-qgit-2.10-checkout" #:system "x86_64-linux" #:outputs
            (list
             (cons "out"
                   ((@
                     (guile)
                     getenv)
                    "out")))
            #:inputs
            (quote
             (("source" . "/gnu/store/a57n7wy8mdi7l52pr4zg07132blgj5xp-qgit-2.10-checkout")
              ("cmake" . "/gnu/store/ygab8v4ci9iklaykapq52bfsshpvi8pw-cmake-minimal-3.24.2")
              ("qtbase" . "/gnu/store/h8z3xhpb8m1ih2k45935kqx0wya5w7vq-qtbase-5.15.10")
[...]
            #:qtbase "/gnu/store/h8z3xhpb8m1ih2k45935kqx0wya5w7vq-qtbase-5.15.10"
--8<---------------cut here---------------end--------------->8---

Cheers,
simon




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Mon Sep 8 01:36:17 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.