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

Re: [PATCH] completion: move out of contrib

From
Junio C Hamano <gitster@pobox.com>
Date
May 7, 2014, 17:37 UTC
Message-ID
<xmqqppjpbicu.fsf@gitster.dls.corp.google.com>
In-Reply-To
<536a067b3b1ca_5e8fbfd30879@nysa.notmuch>
Felipe Contreras <felipe.contreras@gmail.com> writes:
Show 17 quoted lines
> As an example of all the hacks needed by a real distribution package,
> here's the stuff ArchLinux packagers have to do:
>
>   # bash completion
>   mkdir -p "$pkgdir"/usr/share/bash-completion/completions/
>   install -m644 ./contrib/completion/git-completion.bash "$pkgdir"/usr/share/bash-completion/completions/git
>...
>
> And here's what debian packagers have to do:
>
>   # bash completion
>   install -d -m0755 '$(GIT)'/etc/bash_completion.d
>   install -m0644 contrib/completion/git-completion.bash \
>     '$(GIT)'/etc/bash_completion.d/git
>...
>
> If our build system was sane, they wouldn't need so many hacks.

I do not see how the above two examples lead to that conclusion. How would it help to blindly install to $(sharedir), or suggestion to use pkg-info when major distros do not even use one?

I would understand if the saneness you seek were for distros to agree on where things should go, or at least agree on how to find out where things should go.

The situation for completion scripts unfortunately has to be even worse than others (like gitweb) in that distros, in order to serve users (not upstream projects) better, want to package various pieces of completion scripts from different projects into a location their bash-completion package wants to see. I applaud their effort and I wish that projects they pull various completion scriptlets from can do more to help them, but I do not think a single makefile target to unconditionally install to $(sharedir) is it, and honestly speaking, the distro completion packagers could do more to help us projects to help them by at least agreeing on how to find out where they want to see our completion scripts installed.

I do not think we are there yet.
Previous: Felipe ContrerasNext: Felipe Contreras
Message 5 of 6 in “completion: move out of contrib”
  1. completion: move out of contribFelipe Contreras, May 3, 2014
  2. Junio C HamanoMay 7, 2014
  3. Felipe ContrerasMay 7, 2014
  4. Felipe ContrerasMay 7, 2014
  5. Junio C HamanoMay 7, 2014
  6. Felipe ContrerasMay 7, 2014

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.