unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56539: ‘guix shell -D … --export-manifest’ behaves inconsistently
@ 2022-07-13 14:15 Ludovic Courtès
  2022-07-15 15:39 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2022-07-13 14:15 UTC (permalink / raw)
  To: 56539

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@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@2.69"
        "net-tools"
        "iproute2"
        "socat"
        "pkg-config"
        "texinfo"
        "which"
        "datefudge"
        "util-linux"
        "guile@3.0.7"
        "libtasn1"
        "libidn2"
        "nettle"
        "zlib"
        "p11-kit@0.23"
        "tar"
        "gzip"
        "bzip2"
        "xz"
        "file@5.39"
        "diffutils"
        "patch"
        "findutils"
        "gawk"
        "sed"
        "grep"
        "coreutils"
        "make"
        "bash-minimal"
        "ld-wrapper"
        "binutils"
        "gcc@10"
        "glibc"
        "glibc:static"
        "glibc-utf8-locales"
        "libgc"
        "libunistring"
        "gmp"
        "linux-libre-headers@5.10.35"))
$ guix shell -D gnutls autoconf@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@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’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#56539: ‘guix shell -D … --export-manifest’ behaves inconsistently
  2022-07-13 14:15 bug#56539: ‘guix shell -D … --export-manifest’ behaves inconsistently Ludovic Courtès
@ 2022-07-15 15:39 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-07-15 15:39 UTC (permalink / raw)
  To: 56539-done

Ludovic Courtès <ludovic.courtes@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’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-15 15:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-13 14:15 bug#56539: ‘guix shell -D … --export-manifest’ behaves inconsistently Ludovic Courtès
2022-07-15 15:39 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).