From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ENdLO4eobF9MOAAA0tVLHw (envelope-from ) for ; Thu, 24 Sep 2020 14:09:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eO0XN4eobF8zUAAAbx9fmQ (envelope-from ) for ; Thu, 24 Sep 2020 14:09:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4652D9404D4 for ; Thu, 24 Sep 2020 14:09:11 +0000 (UTC) Received: from localhost ([::1]:42836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLRvo-0005kE-PU for larch@yhetil.org; Thu, 24 Sep 2020 10:09:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLRvi-0005k5-4u for bug-guix@gnu.org; Thu, 24 Sep 2020 10:09:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57801) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLRvh-0001F4-RX for bug-guix@gnu.org; Thu, 24 Sep 2020 10:09:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLRvh-0001YY-L3 for bug-guix@gnu.org; Thu, 24 Sep 2020 10:09:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43585: Order in manifest and command-line differs Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 24 Sep 2020 14:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43585 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mathieu Othacehe Received: via spool by 43585-submit@debbugs.gnu.org id=B43585.16009565075940 (code B ref 43585); Thu, 24 Sep 2020 14:09:01 +0000 Received: (at 43585) by debbugs.gnu.org; 24 Sep 2020 14:08:27 +0000 Received: from localhost ([127.0.0.1]:41114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLRv9-0001Xk-3B for submit@debbugs.gnu.org; Thu, 24 Sep 2020 10:08:27 -0400 Received: from mail-qk1-f182.google.com ([209.85.222.182]:37866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLRv6-0001XW-Df for 43585@debbugs.gnu.org; Thu, 24 Sep 2020 10:08:26 -0400 Received: by mail-qk1-f182.google.com with SMTP id 16so3353846qkf.4 for <43585@debbugs.gnu.org>; Thu, 24 Sep 2020 07:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dXd4Q82lgrdXMXd948Amlicczie9WYR0qSAapUdpy6Q=; b=GGySo+QeI5AOLIwGcqnKDqWZgY6cXIayq9l71LLpH2XB3T0WBKR0wF06PksJb/lkS9 5D3UCYDMphnzwbTvxscJ4NASW9XL12mqwizovKzA9hU6Co9u8SufHyq508hSE4aXark9 GB+miO/2OUbE+rbG0suU0D78W0AB2y59H90jWnHcQoC6N84rhRU+24BGYP8VgoEjmR8Z 6PWip9iSabWtTNPe+9LuJ/v1sOUKxENlTPhFlhbp49XXIvQy6ZywKkP0uNW1tEJGn+TU EJ+nWtw8EpHiHAkav8BjRHffe6SH6ix+s9zj3WPiqJjlgv8K+xR0222eRhG5ulMv8Dq5 5n3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dXd4Q82lgrdXMXd948Amlicczie9WYR0qSAapUdpy6Q=; b=WoBdURz7LkQBhioQOP5aQzMVVqem3U1/oAiX+FrteP6R/euxeDOS7d8C8wvlFJSN6I ZAeD6U0mvf28Du5DPV7b0KeWONWTIZ5HqgRti4ILZ0nVMEhdeoUYUdfI57daoZPjkZcX O2FF3dSCvYZbJ1Mg96IRUZa0bLXWQJlFlQgOT2YRF5gApaO/U36+di8eWc/syWN0Tgnn fjLxR1cc7XwbXnzqrMR3MTo4ocI9G3iidXkeVa+pn4H4k7cEsTwZ2IjuriwiuQxc8ZRq i9q9Ylqz0xNP6l6KTZxVgRuhGljbac+qxXoTJ93Fz6Z4RPMv1PpH7aG+af4t/R0PFud2 Wn1A== X-Gm-Message-State: AOAM5311QFAQ3+OWXEp+EiF31FnrxGGAgPHqK32cVPtDPiwWNOauEdug NOYYz4xA9OSsXYvw/lW1qP5Q10E5AaWvMt8ROi6/eMGuVp8= X-Google-Smtp-Source: ABdhPJzX50oEdrGUrpHK7u43UjG6m8qF+HHJ6Ccbq4S8ykenspjN9YoO5ErQklV3y8ktznjyTcOeAUwFHLSCvXoikV8= X-Received: by 2002:a05:620a:53a:: with SMTP id h26mr4943001qkh.232.1600956498842; Thu, 24 Sep 2020 07:08:18 -0700 (PDT) MIME-Version: 1.0 References: <86v9g4kqrd.fsf@gmail.com> <871rir725l.fsf@gnu.org> In-Reply-To: <871rir725l.fsf@gnu.org> From: zimoun Date: Thu, 24 Sep 2020 16:08:06 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 43585@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=GGySo+Qe; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: 13h0eFvfpWRF Hi Mathieu, On Thu, 24 Sep 2020 at 15:08, Mathieu Othacehe 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