unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Vong <alexvong1995@gmail.com>
To: Thorsten Wilms <t_w_@freenet.de>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: util-linux and perl rename
Date: Mon, 26 Nov 2018 13:12:08 +0800	[thread overview]
Message-ID: <87in0k2ziv.fsf@gmail.com> (raw)
In-Reply-To: <557fa862-5ec2-656a-9f4d-15f1a46f42dd@freenet.de> (Thorsten Wilms's message of "Tue, 20 Nov 2018 22:10:24 +0100")

[-- Attachment #1: Type: text/plain, Size: 1454 bytes --]

Hi Thorsten,

Thorsten Wilms <t_w_@freenet.de> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

  parent reply	other threads:[~2018-11-26  5:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-20 21:10 util-linux and perl rename Thorsten Wilms
2018-11-22 19:25 ` Danny Milosavljevic
2018-11-26  5:12 ` Alex Vong [this message]
2018-11-26  8:53   ` Thorsten Wilms
2018-11-26  8:58   ` Mark H Weaver
2018-11-26 13:02     ` Alex Vong

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=87in0k2ziv.fsf@gmail.com \
    --to=alexvong1995@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=t_w_@freenet.de \
    /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).