GNU bug report logs - #56539
‘guix shell -D … --export-manifest’ behaves inconsistently

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludovic.courtes <at> inria.fr>

Date: Wed, 13 Jul 2022 14:16:02 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56539 in the body.
You can then email your comments to 56539 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#56539; Package guix. (Wed, 13 Jul 2022 14:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludovic.courtes <at> inria.fr>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 13 Jul 2022 14:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
To: bug-guix <at> gnu.org
Subject: ‘guix shell -D … --export-manifest’ behaves inconsistently
Date: Wed, 13 Jul 2022 16:15:11 +0200
Hi!

I observe the following weird behavior, where the first invocation
wrongfully expands ‘-D gnutls’ into a list of package specs, whereas the
other invocations (only slightly different) lead to calls to
‘package->development-manifest’ as expected:

--8<---------------cut here---------------start------------->8---
$ guix shell -D gnutls autoconf <at> 2.69 automake libtool  --export-manifest
;; What follows is a "manifest" equivalent to the command line you gave.
;; You can store it in a file that you may then pass to any 'guix' command
;; that accepts a '--manifest' (or '-m') option.

(specifications->manifest
  (list "libtool"
        "automake"
        "autoconf <at> 2.69"
        "net-tools"
        "iproute2"
        "socat"
        "pkg-config"
        "texinfo"
        "which"
        "datefudge"
        "util-linux"
        "guile <at> 3.0.7"
        "libtasn1"
        "libidn2"
        "nettle"
        "zlib"
        "p11-kit <at> 0.23"
        "tar"
        "gzip"
        "bzip2"
        "xz"
        "file <at> 5.39"
        "diffutils"
        "patch"
        "findutils"
        "gawk"
        "sed"
        "grep"
        "coreutils"
        "make"
        "bash-minimal"
        "ld-wrapper"
        "binutils"
        "gcc <at> 10"
        "glibc"
        "glibc:static"
        "glibc-utf8-locales"
        "libgc"
        "libunistring"
        "gmp"
        "linux-libre-headers <at> 5.10.35"))
$ guix shell -D gnutls autoconf <at> 2.69 automake  --export-manifest
;; What follows is a "manifest" equivalent to the command line you gave.
;; You can store it in a file that you may then pass to any 'guix' command
;; that accepts a '--manifest' (or '-m') option.

(concatenate-manifests
  (list (specifications->manifest
          (list "autoconf <at> 2.69" "automake"))
        (package->development-manifest
          (specification->package "gnutls"))))
$ guix shell -D gnutls autoconf automake libtool  --export-manifest
;; What follows is a "manifest" equivalent to the command line you gave.
;; You can store it in a file that you may then pass to any 'guix' command
;; that accepts a '--manifest' (or '-m') option.

(concatenate-manifests
  (list (specifications->manifest
          (list "autoconf" "automake" "libtool"))
        (package->development-manifest
          (specification->package "gnutls"))))
$ guix describe
Generation 221	Jul 03 2022 23:52:07	(current)
  guix e069de4
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: e069de452a2c923868f5137421b4b6349c38d754
--8<---------------cut here---------------end--------------->8---

Ludo’.




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Fri, 15 Jul 2022 15:40:02 GMT) Full text and rfc822 format available.

Notification sent to Ludovic Courtès <ludovic.courtes <at> inria.fr>:
bug acknowledged by developer. (Fri, 15 Jul 2022 15:40:03 GMT) Full text and rfc822 format available.

Message #10 received at 56539-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: 56539-done <at> debbugs.gnu.org
Subject: Re: bug#56539: ‘guix shell -D
 … --export-manifest’ behaves
 inconsistently
Date: Fri, 15 Jul 2022 17:39:45 +0200
Ludovic Courtès <ludovic.courtes <at> inria.fr> skribis:

> I observe the following weird behavior, where the first invocation
> wrongfully expands ‘-D gnutls’ into a list of package specs, whereas the
> other invocations (only slightly different) lead to calls to
> ‘package->development-manifest’ as expected:

This had to due with profile caching: cached profiles would be taken
into account, leading to the “expanded view” because the ‘-D’
information would be lost in that case.

Fixed in 30915a7419d48c6a5dcfdc3a1547268ac406a9ef.

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 13 Aug 2022 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 257 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.