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

Re: [PATCH] completion: move out of contrib

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
May 7, 2014, 19:45 UTC
Message-ID
<536a8d4dd798e_76ff7a52ec26@nysa.notmuch>
In-Reply-To
<xmqqppjpbicu.fsf@gitster.dls.corp.google.com>
Junio C Hamano wrote:
Show 18 quoted lines
> Felipe Contreras <felipe.contreras@gmail.com> writes:
> 
> > 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
> >...
> >
This is what the latest debian package does:
	# bash completion
	install -d -m0755 '$(GIT)'/usr/share/bash-completion/completions
	install -m0644 contrib/completion/git-completion.bash \
	  '$(GIT)'/usr/share/bash-completion/completions/git
	ln -s git '$(GIT)'/usr/share/bash-completion/completions/gitk
> > 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),

It is not blind, it is the location bash-completion uses *by default*, and it's what most (all?) distributions use.

> or suggestion to use pkg-info when major distros do not even use one?

Which major distros do not ship with the pkg-config? It is part of bash-completion (as it should be part of every decent shared softare component), they all ship it.

Do you want me to go on a hunt and list all the distrubionts that ship both?

  /usr/share/bash-completion/completions/git
  /usr/share/pkgconfig/bash-completion.pc
How many distributions would it take for you to accept the facts?
> 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.
They all gree.
> I do not think we are there yet.
You are wrong.
-- 
Felipe Contreras
Previous: Junio C Hamano
Message 6 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.