From: Patrick Steinhardt <ps@pks.im>
To: Todd Zullinger <tmz@pobox.com>
Cc: Akshay Hegde <lists+git@akshay.is>, git@vger.kernel.org
Subject: Re: meson: Installing completions
Date: Mon, 7 Apr 2025 10:01:24 +0200 [thread overview]
Message-ID: <Z_OGVDZ9cMwavfR8@pks.im> (raw)
In-Reply-To: <Z-1EJo8xHpA9qM0-@teonanacatl.net>
On Wed, Apr 02, 2025 at 10:05:26AM -0400, Todd Zullinger wrote:
> Patrick Steinhardt wrote:
> > On Tue, Apr 01, 2025 at 08:58:38PM -0400, Todd Zullinger wrote:
> [...]
> > One of the questions is whether we gain a lot by making this an option.
> > If packagers have to manually adapt the location they could just as well
> > copy the file by hand as there is no build step involved in the first
> > place. I also think that for Bash and zsh the locations are somewhat
> > stable across distros these days, so ideally we could just build on that
> > and not even provide an option in the first place?
> >
> > I'm mostly trying to avoid to eventually end up with tons of build
> > options. Ideally, we should just do the right thing and install the
> > completion scripts into the correct location in the specified prefix.
> >
> > At least if we can get away with it. It seems like the default location
> > would work alright for you on Fedora, and I assume that it would work
> > alright for most of the other distros. So I'd refrain from introducing
> > an option now, but if we eventually figure out that this is problematic
> > on some distro then we can still introduce the option at a later point
> > in time.
>
> Yeah, if the locations are the same across all of the
> systems we aim to support are consistent, then I agree
> there's not a lot of point making it configurable.
>
> Whether that turns out to be the case or not will be
> interesting. It seems like there are almost always a few
> systems that do things differently for one reason or
> another. With luck, this is an exception.
>
> >> For reference, here are the locations for bash, fish, and
> >> zsh which Fedora uses. This might be helpful in determining
> >> reasonable defaults (after comparing to other distributions,
> >> of course):
> >>
> >> bash /usr/share/bash-completion/completions
> >> fish /usr/share/fish/vendor_completions.d
> >> zsh /usr/share/zsh/site-functions
> >
> > We don't have completions for the Fish shell, right? Just making sure
> > that I don't miss the obvious.
>
> Heh, we don't -- as far as I know either. :)
>
> Those three just happen to be the shells which have a
> packaging macro for the path in Fedora.
>
> Cheers,
I've sent a patch via [1] now. Thanks!
Patrick
[1]: <20250407-b4-pks-meson-install-completions-v1-1-8a7eb8b9284b@pks.im>
prev parent reply other threads:[~2025-04-07 8:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-01 6:46 meson: Installing completions Akshay Hegde
2025-04-01 9:58 ` Patrick Steinhardt
2025-04-01 17:43 ` Akshay Hegde
2025-04-02 0:58 ` Todd Zullinger
2025-04-02 11:33 ` Patrick Steinhardt
2025-04-02 14:05 ` Todd Zullinger
2025-04-07 8:01 ` Patrick Steinhardt [this message]
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=Z_OGVDZ9cMwavfR8@pks.im \
--to=ps@pks.im \
--cc=git@vger.kernel.org \
--cc=lists+git@akshay.is \
--cc=tmz@pobox.com \
/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;
as well as URLs for NNTP newsgroup(s).