From: Junio C Hamano <gitster@pobox.com>
To: Felipe Contreras <felipe.contreras@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] completion: move out of contrib
Date: Wed, 07 May 2014 10:37:21 -0700 [thread overview]
Message-ID: <xmqqppjpbicu.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <536a067b3b1ca_5e8fbfd30879@nysa.notmuch> (Felipe Contreras's message of "Wed, 07 May 2014 05:10:03 -0500")
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
>...
>
> 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.
next prev parent reply other threads:[~2014-05-07 17:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-03 0:36 [PATCH] completion: move out of contrib Felipe Contreras
2014-05-07 0:28 ` Junio C Hamano
2014-05-07 1:18 ` Felipe Contreras
2014-05-07 10:10 ` Felipe Contreras
2014-05-07 17:37 ` Junio C Hamano [this message]
2014-05-07 19:45 ` Felipe Contreras
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=xmqqppjpbicu.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.