git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* meson: Installing completions
@ 2025-04-01  6:46 Akshay Hegde
  2025-04-01  9:58 ` Patrick Steinhardt
  0 siblings, 1 reply; 7+ messages in thread
From: Akshay Hegde @ 2025-04-01  6:46 UTC (permalink / raw)
  To: git

Hi there,

I found some extra time today so I thought I'd try moving my git
install over to using the new meson build system. Everything went
surprisingly smoothly, which I really appreciated, so thank you!

However, one thing that confused me was that the completions were never
installed automatically as part of `meson install`, even though
I specified them under the '-Dcontrib' option.

I just wanted to double check if I'm supposed to install them manually,
or if I missed enabling some options (I looked through the top-level
meson_options.txt and meson.build files and I don't think I did.)

I'm calling meson setup like so:

    meson setup meson-git-build --prefix=/opt/personal/git/versions/2.49.0 \
        --libdir=/opt/personal/git/versions/2.49.0/lib --buildtype=release \
        --wrap-mode=nofallback --backend=ninja \
        -Dmacos_use_homebrew_gettext=false -Dcontrib=completion,subtree

And I do see both subtree and completion modules being built in the
'meson compile' logs and indeed, I see that git-subtree was
automatically installed, as expected:

    Installing contrib/subtree/git-subtree to /opt/personal/git/versions/2.49.0/libexec/git-core

...So I would have expected the completion module to be automatically
installed as well, but this didn't happen. Rather, it merely got copied
to the internal build folder:

    [669/669] /opt/personal/meson/bin/meson --internal copy ../contrib/completion/git-completion.tcsh contrib/completion/git-completion.tcsh

Of course, I can manually install these to the appropriate locations,
but just checking to make sure I didn't miss anything.

Cheers,
-- 
	Akshay


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-04-07  8:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).