From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/fish/files/, app-shells/fish/
Date: Fri, 3 Mar 2017 13:12:29 +0000 (UTC) [thread overview]
Message-ID: <1488546742.e2fd0ed7efae55eadfe15572cb6ff0883ae42fcf.polynomial-c@gentoo> (raw)
commit: e2fd0ed7efae55eadfe15572cb6ff0883ae42fcf
Author: Georgy Yakovlev <ya <AT> sysdump <DOT> net>
AuthorDate: Fri Feb 24 06:27:53 2017 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Fri Mar 3 13:12:22 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2fd0ed7
app-shells/fish: remove profile.env parser
This removes profile.env parser and
modifies postinst message advising
to use bash to launch fish.
Fixes bug 545830
Closes: https://github.com/gentoo/gentoo/pull/4072
app-shells/fish/files/profile-env.fish | 23 -----------------------
app-shells/fish/fish-2.5.0.ebuild | 15 ++++-----------
2 files changed, 4 insertions(+), 34 deletions(-)
diff --git a/app-shells/fish/files/profile-env.fish b/app-shells/fish/files/profile-env.fish
deleted file mode 100644
index d4852f04171..00000000000
--- a/app-shells/fish/files/profile-env.fish
+++ /dev/null
@@ -1,23 +0,0 @@
-# only apply env for login shells, as we'd like fish to
-# inherit existing shell environment without overriding it
-# using csh env, as it's cleaner and less too parse/strip
-
-if status --is-login
- # since fish supports export via upstream provided function
- # we can source directly, only ommiting $PATH and comments.
- string match -r -v '^(#|setenv (PATH|ROOTPATH) )' < /etc/csh.env | source
-
- # strip unneded stuff from setenv lines
- # apply paths and cleanup
- if [ "$EUID" = "0" ] ; or [ "$USER" = "root" ]
- string match -r '^setenv ROOTPATH .+' < /etc/csh.env | string replace -ra '\'|\:' ' ' | source
- set -gx PATH /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin $ROOTPATH
- set -e ROOTPATH
- else
- string match -r '^setenv PATH .+' < /etc/csh.env | string replace -ra '\'|\:' ' ' | source
- set -gx PATH /usr/local/bin /usr/bin /bin $PATH
- end
-
- # re-prepend $fish_user_paths
- __fish_reconstruct_path
-end
diff --git a/app-shells/fish/fish-2.5.0.ebuild b/app-shells/fish/fish-2.5.0.ebuild
index 78465a9f78a..5132a555abc 100644
--- a/app-shells/fish/fish-2.5.0.ebuild
+++ b/app-shells/fish/fish-2.5.0.ebuild
@@ -32,13 +32,6 @@ src_configure() {
--without-included-pcre2
}
-src_install() {
- default
-
- insinto /usr/share/fish/vendor_conf.d
- newins "${FILESDIR}/profile-env.fish" 00-profile-env.fish
-}
-
src_test() {
if has_version ~${CATEGORY}/${P} ; then
emake test
@@ -51,10 +44,10 @@ pkg_postinst() {
elog "fish is now installed on your system."
elog "To run fish, type 'fish' in your terminal."
elog
- elog "To use fish as your login shell:"
- elog "* add the line '${EPREFIX}/bin/${PN}'"
- elog "* to the file '${EPREFIX}/etc/shells'."
- elog "* use the command 'chsh -s ${EPREFIX}/bin/${PN}'."
+ elog "It is advised not to set fish as a default login shell."
+ elog "see bug #545830 for more details."
+ elog "Executing fish using ~/.bashrc is an alternative"
+ elog "see https://wiki.gentoo.org/wiki/Fish#Caveats for details"
elog
elog "To set your colors, run 'fish_config'"
elog "To scan your man pages for completions, run 'fish_update_completions'"
next reply other threads:[~2017-03-03 13:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-03 13:12 Lars Wendler [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-28 15:10 [gentoo-commits] repo/gentoo:master commit in: app-shells/fish/files/, app-shells/fish/ Sam James
2025-03-28 15:10 Sam James
2021-12-21 11:55 Georgy Yakovlev
2021-07-06 17:10 Georgy Yakovlev
2021-03-02 7:23 Lars Wendler
2019-01-10 9:06 Georgy Yakovlev
2018-12-13 5:04 Georgy Yakovlev
2017-02-06 0:52 Lars Wendler
2017-01-13 5:02 Lars Wendler
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1488546742.e2fd0ed7efae55eadfe15572cb6ff0883ae42fcf.polynomial-c@gentoo \
--to=polynomial-c@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox