GNU bug report logs -
#25467
Fish: some script is broken
Previous Next
Reported by: ng0 <ng0 <at> libertad.pw>
Date: Tue, 17 Jan 2017 10:53:01 UTC
Severity: normal
Done: Ricardo Wurmus <rekado <at> elephly.net>
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 25467 in the body.
You can then email your comments to 25467 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#25467
; Package
guix
.
(Tue, 17 Jan 2017 10:53:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
ng0 <ng0 <at> libertad.pw>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Tue, 17 Jan 2017 10:53:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Seems like a feature of our fish is currently broken, this is at
the first start, just after guix package -i fish (and no config
files present, all sitting in backups):
> fish
fish: Unknown command 'python -B /gnu/store/f80pivij8kfn1r49k2a3194kic3yhv7g-fish-2.4.0/share/fish/tools/create_manpage_completions.py --manpath --progress --cleanup-in ~/.config/fish/completions --cleanup-in ~/.config/fish/generated_completions'
/gnu/store/f80pivij8kfn1r49k2a3194kic3yhv7g-fish-2.4.0/share/fish/functions/fish_update_completions.fish (line 2): python -B $__fish_datadir/tools/create_manpage_completions.py --manpath --progress --cleanup-in '~/.config/fish/completions' --cleanup-in '~/.config/fish/generated_completions'
^
in function 'fish_update_completions'
called on standard input
--
♥Ⓐ ng0 -- https://www.inventati.org/patternsinthechaos/
Information forwarded
to
bug-guix <at> gnu.org
:
bug#25467
; Package
guix
.
(Sat, 21 Jan 2017 17:32:03 GMT)
Full text and
rfc822 format available.
Message #8 received at 25467 <at> debbugs.gnu.org (full text, mbox):
FYI:
The script which fails is the one which generates completions
from man pages. As our location of manpages differs, we need some
approach to patch this.
--
♥Ⓐ ng0 -- https://www.inventati.org/patternsinthechaos/
Information forwarded
to
bug-guix <at> gnu.org
:
bug#25467
; Package
guix
.
(Sat, 21 Jan 2017 22:05:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 25467 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
ng0 <contact.ng0 <at> cryptolab.net> writes:
> FYI:
> The script which fails is the one which generates completions
> from man pages. As our location of manpages differs, we need some
> approach to patch this.
I don’t think this is true. Fish seems to fail to find “python”. The
error disappears in an environment where “python-wrapper” is available.
A fix would involve replacing the call to “python” with the full path to
the “python” executable.
Here’s a patch:
[0001-gnu-fish-Embed-full-path-to-Python.patch (text/x-patch, inline)]
From dbc045eb338b7e70645ed19be71d8e761762c738 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado <at> elephly.net>
Date: Sat, 21 Jan 2017 22:57:12 +0100
Subject: [PATCH] gnu: fish: Embed full path to Python.
Fixes <https://bugs.gnu.org/25467>.
* gnu/packages/shells.scm (fish)[arguments]: Rename phase "patch-bc" to
"embed-store-paths"; embed full path to Python.
---
gnu/packages/shells.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index 5237e8120..16c76ef66 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -5,6 +5,7 @@
;;; Copyright © 2015 Jeff Mickey <j <at> codemac.net>
;;; Copyright © 2016 Tobias Geerinckx-Rice <me <at> tobias.gr>
;;; Copyright © 2016 Stefan Reichör <stefan <at> xsteve.at>
+;;; Copyright © 2017 Ricardo Wurmus <rekado <at> elephly.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -106,14 +107,17 @@ direct descendant of NetBSD's Almquist Shell (@command{ash}).")
#:configure-flags '("--sysconfdir=/etc")
#:phases
(modify-phases %standard-phases
- ;; Replace 'bc' by its absolute file name in the store.
- (add-after 'unpack 'patch-bc
+ ;; Embed absolute paths to store items.
+ (add-after 'unpack 'embed-store-paths
(lambda* (#:key inputs outputs #:allow-other-keys)
(substitute* '("share/functions/math.fish"
"share/functions/seq.fish")
(("\\| bc")
(string-append "| " (assoc-ref %build-inputs "bc")
- "/bin/bc"))))))))
+ "/bin/bc")))
+ (substitute* "share/functions/fish_update_completions.fish"
+ (("python") (which "python")))
+ #t)))))
(synopsis "The friendly interactive shell")
(description
"Fish (friendly interactive shell) is a shell focused on interactive use,
--
2.11.0
[Message part 3 (text/plain, inline)]
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
Reply sent
to
Ricardo Wurmus <rekado <at> elephly.net>
:
You have taken responsibility.
(Sun, 22 Jan 2017 09:21:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
ng0 <ng0 <at> libertad.pw>
:
bug acknowledged by developer.
(Sun, 22 Jan 2017 09:21:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 25467-done <at> debbugs.gnu.org (full text, mbox):
Fixed as of 79f3e82bd.
--
Ricardo
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 19 Feb 2017 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 61 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.