From: zimoun <zimon.toutoune@gmail.com>
To: Mathieu Othacehe <othacehe@gnu.org>
Cc: 43585@debbugs.gnu.org
Subject: bug#43585: Order in manifest and command-line differs
Date: Thu, 24 Sep 2020 16:08:06 +0200 [thread overview]
Message-ID: <CAJ3okZ0xME_8sN-D5H7jPFjQx=RAxpw9K+3sZvfec0JyB+0Ghg@mail.gmail.com> (raw)
In-Reply-To: <871rir725l.fsf@gnu.org>
Hi Mathieu,
On Thu, 24 Sep 2020 at 15:08, Mathieu Othacehe <othacehe@gnu.org> wrote:
> The order of what appears in "bin" depends on both the name of the
> binaries provided by both packages and also how the "ls" command decides
> to sort its output. I'm not sure that much can be done here.
I have badly worded. The point is that "diffutils" and "busybox"
provide both the 'diff' binary. Therefore, depending on the order,
'diff' is provided by one or the other. Compare:
guix package -i busybox diffutils -p /tmp/busybox-diffutils
/tmp/busybox-diffutils/bin/diff
and
guix package -i diffutils busybox -p /tmp/diffutils-busybox
/tmp/diffutils-busybox/bin/diff
In the same time, compare the manifest.scm files:
--8<---------------cut here---------------start------------->8---
;;; busybox-diffutils.scm
(specifications->manifest '("busybox" "diffutils"))
;;; diffutils-busybox.scm
(specifications->manifest '("diffutils" "busybox"))
--8<---------------cut here---------------end--------------->8---
then
guix package -m busybox-diffutils.scm -p /tmp/busybox-diffutils-m
/tmp/busybox-diffutils-m/bin/diff
and
guix package -m diffutils-busybox.scm -p /tmp/diffutils-busybox-m
/tmp/diffutils-busybox-m/bin/diff
Concretely, "guix package" processes command-line arguments from right
to left. And the manifest.scm file read the list in order (so from
left to right).
All the best,
simon
PS:
For another example not related:
$ guix package --show=diffutils --show=busybox | recsel -C -p name
name: busybox
name: diffutils
and "guix show" corrects that, processing from left to right.
$ guix show diffutils busybox | recsel -C -p name
name: diffutils
name: busybox
next prev parent reply other threads:[~2020-09-24 14:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-23 23:38 bug#43585: Order in manifest and command-line differs zimoun
2020-09-24 13:08 ` Mathieu Othacehe
2020-09-24 14:08 ` zimoun [this message]
2020-09-25 11:54 ` Mathieu Othacehe
2021-03-31 13:13 ` zimoun
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJ3okZ0xME_8sN-D5H7jPFjQx=RAxpw9K+3sZvfec0JyB+0Ghg@mail.gmail.com' \
--to=zimon.toutoune@gmail.com \
--cc=43585@debbugs.gnu.org \
--cc=othacehe@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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.