From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <guix-devel-bounces+larch=yhetil.org@gnu.org>
Received: from mp11.migadu.com ([2001:41d0:8:6d80::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms9.migadu.com with LMTPS
	id yDGuJdXtY2T+agAASxT56A
	(envelope-from <guix-devel-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Tue, 16 May 2023 22:55:49 +0200
Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp11.migadu.com with LMTPS
	id ALmPJdXtY2Q9iwAA9RJhRA
	(envelope-from <guix-devel-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Tue, 16 May 2023 22:55:49 +0200
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 5C344202C1
	for <larch@yhetil.org>; Tue, 16 May 2023 22:55:49 +0200 (CEST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <guix-devel-bounces@gnu.org>)
	id 1pz1hR-0004V8-6T; Tue, 16 May 2023 16:55:13 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <raingloom@riseup.net>)
 id 1pz1hQ-0004Ub-13
 for guix-devel@gnu.org; Tue, 16 May 2023 16:55:12 -0400
Received: from mx1.riseup.net ([198.252.153.129])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <raingloom@riseup.net>)
 id 1pz1hN-0002Y3-GD
 for guix-devel@gnu.org; Tue, 16 May 2023 16:55:11 -0400
Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by mx1.riseup.net (Postfix) with ESMTPS id 4QLT5R0RzGzDqPK;
 Tue, 16 May 2023 20:55:07 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1684270507; bh=yzs48HdbtDHz6JO708l2+M5UFajpKbq5Z/UxkMS/xSY=;
 h=References:From:To:Cc:Subject:Date:In-reply-to:From;
 b=Fyk2CW3DnZGIPoeluDjyI+SlwQopda3AzdKwtXos6wucX9vCXiNSthXHyboaH0Ixi
 5Wi0C35qlMMCW78wYmMF+eDT755PmU4LneO+O7g08NAZf+Oc0GPqacflcFJSvyPb2l
 Iketgb7BxzqKFrP0mrW52Hv3sf5Zk8tpFrshGeHw=
X-Riseup-User-ID: E565AB2792018734869E3DB6B8ED4E2F9D6A6321EE004240E84196E9484B49F3
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4QLT5Q3shxzFqhw;
 Tue, 16 May 2023 20:55:06 +0000 (UTC)
References: <CA+3U0ZmuH9d7jjbYb5CVrBgvZExrPCBgOH-Z6oPjRE3yj_0KDg@mail.gmail.com>
From: Csepp <raingloom@riseup.net>
To: Greg Hogan <code@greghogan.com>
Cc: guix-devel@gnu.org
Subject: Re: Order of manifest and overlapping binaries
Date: Tue, 16 May 2023 22:51:54 +0200
In-reply-to: <CA+3U0ZmuH9d7jjbYb5CVrBgvZExrPCBgOH-Z6oPjRE3yj_0KDg@mail.gmail.com>
Message-ID: <87edngkndl.fsf@riseup.net>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=198.252.153.129;
 envelope-from=raingloom@riseup.net; helo=mx1.riseup.net
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: guix-devel@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Development of GNU Guix and the GNU System distribution."
 <guix-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-devel>,
 <mailto:guix-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/guix-devel>
List-Post: <mailto:guix-devel@gnu.org>
List-Help: <mailto:guix-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-devel>,
 <mailto:guix-devel-request@gnu.org?subject=subscribe>
Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org
Sender: guix-devel-bounces+larch=yhetil.org@gnu.org
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684270549; a=rsa-sha256; cv=none;
	b=KdnTkem9/lf9DYba14I0HsxLVYS43Vdbx0G7COsoi5tOkUorIorx/KLQTP1LGvCZfoPAy0
	5BbfVb4w6eJ+XzRTqiM9S9nLQr/EYl+/MDSZLsRvepSUdCKPXY3a6dBEIm7jJJPrgOTdpI
	9Z6iVsJB0N46OQGZmjLehn7ZOpOZg4t73oy6txx4Bc7KgXIqjWRRfefs9eF/Jydn34mwf7
	YvTWeO3sjiDmWZI2FHCHqViQgb9YJqqCoTU7KiPzP4ieUH6uzenAEIyuKlJeeDebzVQyRh
	iD/qfNai0bCLfPuEasLcZd7r02Uea1+adzm6pPSnZMWtUgMO2e+eZA4Pmq/jdA==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=riseup.net header.s=squak header.b=Fyk2CW3D;
	dmarc=pass (policy=none) header.from=riseup.net;
	spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1684270549;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-unsubscribe:
	 list-subscribe:list-post:dkim-signature;
	bh=V8iMB9IUoOOH0AjBn+iWCPnM4IDvPvXTg1GRvYHO3uU=;
	b=ozaIaM1nAuOktQzxmqkNP2HeurAo5/13K8K+vlbAT8To17R9rNMir6OlHqLITieeCRzdKo
	+7Ti+i4AQRXgZByN/eK5OiaL12OEv880WeHvLwPj2We5+HJbz2lwcXyVg///gVgOQPHgKs
	EYNQJTJh9xZCmw7IRYoYohgy/VMi5ZEqhh9K2r/CJS34H6ccLz/4tvsX/Bls/+2/ctCImK
	+wy68VpzceURSyYTf+bOvOKRPeOOFpgi589KdDB9LOBjv8daNhXchTXisWIOkddeQSHKxc
	UPmxfqZhhRLjgUiJYEMxTO/C7Oi1hYs57DJxVjqBbHt+tyuXtvBgW3vJB7mSPg==
X-Migadu-Scanner: scn1.migadu.com
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=riseup.net header.s=squak header.b=Fyk2CW3D;
	dmarc=pass (policy=none) header.from=riseup.net;
	spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"
X-Migadu-Spam-Score: -5.03
X-Spam-Score: -5.03
X-Migadu-Queue-Id: 5C344202C1
X-TUID: LMc6N5jmqtAT


Greg Hogan <code@greghogan.com> writes:

> 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?
>
> Greg
>
> --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---
>
>
> This is operating from a recent guix pull:
>
> --8<---------------cut here---------------start------------->8---
> $ guix describe
> Generation 44   May 11 2023 17:02:53    (current)
>   guix d6f6b57
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: d6f6b57766e95d2fa8af63d4460a2b303ca4d867
> --8<---------------cut here---------------end--------------->8---

You could create a package that just copies the contents of moreutils
to $output, but renames some files, then include the resulting package
in your manifest.  If moreutils is not propagated from any other
package, then you don't even have to do an input rewrite.