From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#30265: Fish shell has wrong path variables Date: Sat, 27 Jan 2018 13:19:00 +0100 Message-ID: <87inbntryj.fsf@elephly.net> References: <87inbnpsx9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efPSp-0004bU-BH for bug-guix@gnu.org; Sat, 27 Jan 2018 07:20:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efPSl-0006RP-9a for bug-guix@gnu.org; Sat, 27 Jan 2018 07:20:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:36531) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1efPSl-0006RI-37 for bug-guix@gnu.org; Sat, 27 Jan 2018 07:20:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1efPSk-0004x1-T0 for bug-guix@gnu.org; Sat, 27 Jan 2018 07:20:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87inbnpsx9.fsf@gmail.com> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Meiyo Peng Cc: 30265@debbugs.gnu.org Hi Meiyo, thanks for the report. > I am using GuixSD 0.14. After upgrading fish shell to latest version(v2.7= .1) and > running `guix gc`, fish shell does not work well. [=E2=80=A6] > Fish shell is installed in: > #+BEGIN_EXAMPLE > /gnu/store/ajbbi9cgj9j0my7v5habp0lcysaf2a51-fish-2.7.1/ > #+END_EXAMPLE > > But the environment variable $fish_function_path does not exist. And thes= e > environment variables point to non-existent paths: > #+BEGIN_EXAMPLE > __fish_bin_dir /gnu/store/4jkxcz8kpy621ycmqn3rvs0fv6c98h6p-fish-2.7.1/b= in > __fish_datadir /gnu/store/4jkxcz8kpy621ycmqn3rvs0fv6c98h6p-fish-2.7.1/s= hare/fish > #+END_EXAMPLE Where are these environment variables defined? > In conclusion, I think some path related variables are not set > correctly when fish is compiled from source code and that caused the > bug I met. Some other packages record exact store references in cache files in the user=E2=80=99s home directory. As packages get upgraded and removed after garbage collection, these references become invalid. The question is whether these old store references are kept in files outside of the store (and thus are not directly under our control), or if the packages that Guix builds include incorrect references. I guess that it=E2=80=99s the former. As is the case for these other programmes that record paths in cache files, we would need to patch fish to record only the stable names of links to those files (e.g. ~/.guix-profile/foo/bar) rather than the actual file names in the store, which may disappear upon =E2=80=9Cguix gc= =E2=80=9D. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net