From: Simon Tournier <zimon.toutoune@gmail.com>
To: Greg Hogan <code@greghogan.com>, guix-devel <guix-devel@gnu.org>
Subject: Re: Order of manifest and overlapping binaries
Date: Mon, 23 Oct 2023 20:20:05 +0200 [thread overview]
Message-ID: <877cndjj56.fsf@gmail.com> (raw)
In-Reply-To: <CA+3U0ZmuH9d7jjbYb5CVrBgvZExrPCBgOH-Z6oPjRE3yj_0KDg@mail.gmail.com>
Hi,
On Tue, 16 May 2023 at 16:41, Greg Hogan <code@greghogan.com> wrote:
> I could not find documentation on this circumstance or how to resolve.
> Both 'parallel' and 'moreutils' produce a 'bin/parallel' and only one
> can go in the $GUIX_PROFILE.
>
> Creating a container, the latter package overshadows the former
> package, as below. Unclear if this is consistent. In my manifest the
> former package overshadows the latter (I'd prefer to have parallel's
> parallel, but by default I have sorted the listing alphabetically). Is
> there a better way to fix this?
>
> --8<---------------cut here---------------start------------->8---
> $ guix shell --container moreutils parallel which coreutils
> [env]$ readlink -f `which parallel`
> /gnu/store/xd9kbadmrrbpkjs9vl1v9rhgayfxwgbc-parallel-20230422/bin/parallel
>
> guix shell --container parallel moreutils which coreutils
> [env]$ readlink -f $(which parallel)
> /gnu/store/60zdm9zm0nqm5d97vs30sf4plb2ib5p9-moreutils-0.67/bin/parallel
> --8<---------------cut here---------------end--------------->8---
Command-line is parsed from right to left. Therefore, it is consistent.
However, when using manifest, it is parsed from left to right. See
#43585 [1]. Compare:
--8<---------------cut here---------------start------------->8---
$ cat moreutils-parallel.scm
(specifications->manifest
(list "moreutils" "parallel"))
$ guix shell -C -m moreutils-parallel.scm coreutils which
[env]$ readlink -f $(which parallel)
/gnu/store/60zdm9zm0nqm5d97vs30sf4plb2ib5p9-moreutils-0.67/bin/parallel
$ guix shell -C moreutils parallel coreutils which
[env]$ readlink -f $(which parallel)
/gnu/store/wi3j9z1s5pdna43ccyjf6c5pa1gnpg4x-parallel-20230622/bin/parallel
--8<---------------cut here---------------end--------------->8---
versus
--8<---------------cut here---------------start------------->8---
$ cat parallel-moreutils.scm
(specifications->manifest
(list "parallel" "moreutils"))
$ guix shell -C -m parallel-moreutils.scm coreutils which
[env]$ readlink -f $(which parallel)
/gnu/store/wi3j9z1s5pdna43ccyjf6c5pa1gnpg4x-parallel-20230622/bin/parallel
$ guix shell -C parallel moreutils coreutils which
[env]$ readlink -f $(which parallel)
/gnu/store/60zdm9zm0nqm5d97vs30sf4plb2ib5p9-moreutils-0.67/bin/parallel
--8<---------------cut here---------------end--------------->8---
Well, I do not know if it is a feature or a bug. :-)
Especially when command-lines are not all consistent.
--8<---------------cut here---------------start------------->8---
$ guix show moreutils parallel | recsel -Cp name
name: moreutils
name: parallel
$ guix show parallel moreutils | recsel -Cp name
name: parallel
name: moreutils
--8<---------------cut here---------------end--------------->8---
Cheers,
simon
1: https://issues.guix.gnu.org/43585#2
prev parent reply other threads:[~2023-10-23 18:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-16 20:41 Order of manifest and overlapping binaries Greg Hogan
2023-05-16 20:51 ` Csepp
2023-10-23 13:18 ` Greg Hogan
2023-10-23 14:39 ` Kaelyn
2023-10-31 17:29 ` Greg Hogan
2023-05-16 21:23 ` Attila Lendvai
2023-05-25 3:32 ` John Kehayias
2023-10-23 18:20 ` Simon Tournier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877cndjj56.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=code@greghogan.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).