git/list[1] front-page[2] threads[3] people[4] search[5] about
 

meson: Installing completions

From
AHAkshay Hegde <lists+git@akshay.is>
Date
Apr 1, 2025, 06:46 UTC
Message-ID
<Z-uLqQd7QHZq-tB7@akshay.is>
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
Next: Patrick Steinhardt
Message 1 of 7 in “meson: Installing completions”
  1. Akshay HegdeApr 1, 2025
  2. Patrick SteinhardtApr 1, 2025
  3. Akshay HegdeApr 1, 2025
  4. Todd ZullingerApr 2, 2025
  5. Patrick SteinhardtApr 2, 2025
  6. Todd ZullingerApr 2, 2025
  7. Patrick SteinhardtApr 7, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.