GNU bug report logs - #52372
gash-utils & fzf conflict

Previous Next

Package: guix;

Reported by: Blake Shaw <blake <at> nonconstructivism.com>

Date: Wed, 8 Dec 2021 11:24:01 UTC

Severity: normal

Done: Tobias Geerinckx-Rice <me <at> tobias.gr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52372 in the body.
You can then email your comments to 52372 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#52372; Package guix. (Wed, 08 Dec 2021 11:24:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Blake Shaw <blake <at> nonconstructivism.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 08 Dec 2021 11:24:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Blake Shaw <blake <at> nonconstructivism.com>
To: bug-guix <at> gnu.org
Subject: gash-utils & fzf conflict
Date: Wed, 08 Dec 2021 18:23:04 +0700
Hello,

Gash-utils causes fzf to fail.

After installing gash-utils, attempting `bash5.0$ fzf` produces:
```
[Command failed: set -o pipefail; command find -L . -mindepth 1 \( -path '*/\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \) -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-]
```

Uninstalling gash-utils removes the problem.

Best,
Blake




Information forwarded to bug-guix <at> gnu.org:
bug#52372; Package guix. (Wed, 08 Dec 2021 17:32:02 GMT) Full text and rfc822 format available.

Message #8 received at 52372 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Blake Shaw <blake <at> nonconstructivism.com>, 52372 <at> debbugs.gnu.org
Subject: Re: bug#52372: gash-utils & fzf conflict
Date: Wed, 08 Dec 2021 17:30:59 +0000
Blake Shaw via Bug reports for GNU Guix schreef op wo 08-12-2021 om
18:23 [+0700]:
> 
> Hello,
> 
> Gash-utils causes fzf to fail.
> 
> After installing gash-utils, attempting `bash5.0$ fzf` produces:
> ```
> [Command failed: set -o pipefail; command find -L . -mindepth 1 \( -
> path '*/\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype
> 'devtmpfs' -o -fstype 'proc' \) -prune -o -type f -print -o -type l -
> print 2> /dev/null | cut -b3-]
> ```
> 
> Uninstalling gash-utils removes the problem.

Seems like 'coreutils' (or 'coreutils-minimal'?) should be added to the
wrap-program & inputs in the package definition of 'fzf' (untested),
and bin/fzf should be wrapped as well.

Or maybe it's not the fzf that is problematic, but the bash
completions.

Greetings,
Maxime.





Information forwarded to bug-guix <at> gnu.org:
bug#52372; Package guix. (Wed, 08 Dec 2021 17:34:01 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Blake Shaw <blake <at> nonconstructivism.com>
Cc: bug-guix <at> gnu.org, 52372-done <at> debbugs.gnu.org
Subject: Re: bug#52372: gash-utils & fzf conflict
Date: Wed, 08 Dec 2021 18:14:12 +0100
[Message part 1 (text/plain, inline)]
Blake,

> Command failed: […] command find

This isn't ‘really’ a bug: fzf invokes whichever find(1) 
executable happens to be in $PATH at run time, and reasonably 
expects it to support the POSIX ‘-L’ option.

It also willfully tries to hide any useful error messages:

> 2> /dev/null

…maybe that's what makes Rust so safe?

gash-utils doesn't implement find -L, so failure is to be 
expected.  As you discovered the fix is as simple as uninstalling 
gash-utils, and possibly using it in a Guix environment if you 
really need it.

I don't think installing gash-utils globally into your main 
profile is a good idea!

Since find(1) is such a key requirement of fzf, it makes sense to 
treat it as a fixed input in this case and keep a reference to 
findutils' in a wrapper.

Done in commit 9bac41c2b8e7be5ab713402591ceeb32c635c214.

Thanks!

T G-R
[signature.asc (application/pgp-signature, inline)]

Reply sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
You have taken responsibility. (Wed, 08 Dec 2021 17:34:02 GMT) Full text and rfc822 format available.

Notification sent to Blake Shaw <blake <at> nonconstructivism.com>:
bug acknowledged by developer. (Wed, 08 Dec 2021 17:34:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#52372; Package guix. (Thu, 09 Dec 2021 05:30:02 GMT) Full text and rfc822 format available.

Message #19 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Blake Shaw <blake <at> nonconstructivism.com>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: bug-guix <at> gnu.org, 52372-done <at> debbugs.gnu.org
Subject: Re: bug#52372: gash-utils & fzf conflict
Date: Thu, 09 Dec 2021 12:29:14 +0700
Tobias Geerinckx-Rice <me <at> tobias.gr> writes:

got it, thanks!

-- 
“In girum imus nocte et consumimur igni”




Information forwarded to bug-guix <at> gnu.org:
bug#52372; Package guix. (Thu, 09 Dec 2021 05:30:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#52372; Package guix. (Sat, 11 Dec 2021 16:13:02 GMT) Full text and rfc822 format available.

Message #25 received at 52372 <at> debbugs.gnu.org (full text, mbox):

From: Timothy Sample <samplet <at> ngyro.com>
To: 52372 <at> debbugs.gnu.org
Cc: me <at> tobias.gr, blake <at> nonconstructivism.com
Subject: Re: bug#52372: gash-utils & fzf conflict
Date: Sat, 11 Dec 2021 11:12:32 -0500
Hi Blake and Tobias,

Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix <at> gnu.org>
writes:

> gash-utils doesn't implement find -L, so failure is to be expected.
> As you discovered the fix is as simple as uninstalling gash-utils, and
> possibly using it in a Guix environment if you really need it.
>
> I don't think installing gash-utils globally into your main profile is
> a good idea!

Definitely not!  Gash-Utils is very much pre-alpha software, and I don’t
really intend for those utilities to be useful beyond bootstrapping
their fully-featured GNU cousins.  Ideally there would be a
bootstrapping version of Gash-Utils that installs the utilities, and a
regular version that just has Scheme interfaces.  To date, it has felt a
little premature to bother with that.

However, if you find the Scheme interfaces from Gash-Utils useful, I’m
happy to make accommodations.  Right now, I think that Guilers either
write their own utilities like ‘find-files’ or they copy them out of
Guix’s ‘(guix build utils)’ module (I tend to do the latter).  It would
be nice if Gash-Utils could cover this use case and be a bit like
Python’s ‘shutil’, allowing a smoother transition from shell scripting
skills to Guile scripting skills.


-- Tim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 09 Jan 2022 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 80 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.