From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: Re: util-linux and perl rename Date: Mon, 26 Nov 2018 13:12:08 +0800 Message-ID: <87in0k2ziv.fsf@gmail.com> References: <557fa862-5ec2-656a-9f4d-15f1a46f42dd@freenet.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gR9C1-0002An-R4 for guix-devel@gnu.org; Mon, 26 Nov 2018 00:12:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gR9Bx-0004rw-8Z for guix-devel@gnu.org; Mon, 26 Nov 2018 00:12:21 -0500 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:38427) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gR9Bx-0004rP-1f for guix-devel@gnu.org; Mon, 26 Nov 2018 00:12:17 -0500 Received: by mail-pl1-x632.google.com with SMTP id e5so13275316plb.5 for ; Sun, 25 Nov 2018 21:12:16 -0800 (PST) In-Reply-To: <557fa862-5ec2-656a-9f4d-15f1a46f42dd@freenet.de> (Thorsten Wilms's message of "Tue, 20 Nov 2018 22:10:24 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Thorsten Wilms Cc: Guix-devel --=-=-= Content-Type: text/plain Hi Thorsten, Thorsten Wilms writes: > Hi Guix! > > I already had a "rename" binary via util-linux. Then I installed the > package "rename", resulting in another "rename" binary, as I prefer > the Perl version. This was a success in that I got what I wanted. > > However, should this name clash be considered a bug? > Is there a policy for such circumstances? > What happens that the newly installed "rename" gets precedence? > I think it is chosen based on some random criterions (so the building of profile is still deterministic). During installation, there should be a warning showing there's a conflict, and which one is being chosen. So you get the "right" one by luck. > The best info I found on the rename vs rename issue in general: > https://unix.stackexchange.com/questions/275254/why-is-the-rename-utility-on-debian-ubuntu-different-than-the-one-on-other-distr To eliminate this conflict, I can think of 2 solutions: 1. Use 2 separate profiles where one has util-linux installed and the other has rename installed. 2. Install util-linux into the default profile, but invoke rename by "guix environment --ad-hoc rename -- rename ..." instead of "rename ..." These 2 solutions work in general as well, such as for conflicting library versions, conflicting language runtimes... I prefer the 2nd solution since maintaining 2 separate profiles just for using rename seems too "heavy weight" to me. Cheers, Alex --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQwb8uPLAHCXSnTBVZh71Au9gJS8gUCW/uAqAAKCRBh71Au9gJS 8q6zAP4nqquyGqZzCAjZ6NeGT8PgnNTjQ4XWyV1k8NwnHbeTzgD/Z5JgJhZR8BWe U6yctNbpc+pJWgf+FxsRuEmRAPzolwI= =mSXD -----END PGP SIGNATURE----- --=-=-=--