Bug#921236: [Pkg-zsh-devel] Bug#921236: zsh: provide equivalent of dh_bash-completion

2019-02-05 Thread Dmitry Bogatov


[2019-02-03 13:39] Daniel Shahaf 
> However, do note that some upstreams ship completion files that are
> inferior to those that ship with zsh itself.  In such cases it would be
> desirable *not* to install the upstream's completion into the default
> fpath (`/usr/bin/zsh -fc 'typeset -p fpath'`).

If upstream provides {foo}.zsh_completion file, how can I compare it
with zsh proper? Invoke `dpkg -L zsh-common|grep foo' and compare file
length? Or something more elaborate?
-- 
Note, that I send and fetch email in batch, once every 24 hours.
 If matter is urgent, try https://t.me/kaction
 --



Bug#921236: [Pkg-zsh-devel] Bug#921236: zsh: provide equivalent of dh_bash-completion

2019-02-03 Thread Daniel Shahaf
Dmitry Bogatov wrote on Sun, 03 Feb 2019 12:58 +:
> Source: zsh
> Severity: wishlist
> 
> Dear Maintainer,
> 
> please proived debhelper to install zsh completion scripts. Some of my
> upstreams provide zsh scripts, but I, as non-user of zsh, have no idea,
> how to install them properly.
> 

As a rule, completion functions (first line is "#compdef") should be
installed to /usr/share/zsh/vendor-completions and autoloadable
functions (first line is "#autoload") to /usr/share/zsh/vendor-functions;
both of these paths are Debian-specific.  I suggest that, at least for
now, you manually install the files to these paths.

However, do note that some upstreams ship completion files that are
inferior to those that ship with zsh itself.  In such cases it would be
desirable *not* to install the upstream's completion into the default
fpath (`/usr/bin/zsh -fc 'typeset -p fpath'`).

> In case of bash, dh_bash-completions ensures that everything is
> automatically done in policy-compliant way.

I'll leave it to others to comment on the idea of a dh_zsh-* helper.

Cheers,

Daniel



Bug#921236: [Pkg-zsh-devel] Bug#921236: zsh: provide equivalent of dh_bash-completion

2019-02-03 Thread Axel Beckert
Control: tag -1 + confirmed

Hi Dmitry,

Dmitry Bogatov wrote:
> please proived debhelper to install zsh completion scripts. Some of my
> upstreams provide zsh scripts, but I, as non-user of zsh, have no idea,
> how to install them properly.

Sounds like a good idea, thanks!

Won't do that before the buster release, though. Not yet sure how this
should look like either.

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-|  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE