<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Package: zsh</font><br>
    <font face="monospace">Version: 5.8-5</font><br>
    <font face="monospace">Severity: normal</font><br>
    <br>
    <br>
    <font face="monospace">Hi,</font><br>
    <br>
    <font face="monospace">I encountered with a problem, when trying to
      use custom zsh completions.</font><br>
    <br>
    <br>
    <font face="monospace">Zsh reads completion script files at
      $DATADIR/zsh/site-functions. This location can be configured
      through autotools in configure.ac:
      <a class="moz-txt-link-freetext" href="https://salsa.debian.org/debian/zsh/-/blob/debian/configure.ac#L312-315">https://salsa.debian.org/debian/zsh/-/blob/debian/configure.ac#L312-315</a>.</font><br>
    <font face="monospace">According to d/rules file, we explicitly set
      it to </font><code>/usr/local/share/zsh/site-functions:
      <a class="moz-txt-link-freetext" href="https://salsa.debian.org/debian/zsh/-/blob/debian/debian/rules#L27">https://salsa.debian.org/debian/zsh/-/blob/debian/debian/rules#L27</a>.</code><br>
    <code></code><br>
    <code>But the problem is that some packages that provide zsh
      completions, install completion scripts at </code><code>/usr/share/zsh/site-functions</code><font
      face="monospace">. This leads to the fact that these completion
      scripts is not working.</font><br>
    <br>
    <font face="monospace">Here are some examples of these packages:</font><br>
    <br>
    <font face="monospace">- udiskie
      (<a class="moz-txt-link-freetext" href="https://salsa.debian.org/debian/udiskie/-/blob/master/setup.py#L116">https://salsa.debian.org/debian/udiskie/-/blob/master/setup.py#L116</a>)</font><br>
    <font face="monospace">- bluez
(<a class="moz-txt-link-freetext" href="https://salsa.debian.org/bluetooth-team/bluez/-/blob/master/debian/bluez.install#L31">https://salsa.debian.org/bluetooth-team/bluez/-/blob/master/debian/bluez.install#L31</a>)</font><br>
    <font face="monospace">- polybar
(<a class="moz-txt-link-freetext" href="https://salsa.debian.org/debian/polybar/-/blob/debian/master/contrib/zsh/CMakeLists.txt#L5">https://salsa.debian.org/debian/polybar/-/blob/debian/master/contrib/zsh/CMakeLists.txt#L5</a>)</font><br>
    <font face="monospace">- httpie (not present in salsa)</font><br>
    <br>
    <br>
    <font face="monospace">I am sure that there are more packages with
      incorrect installation path. And I also haven't seen any packages
      that use /usr/local/share/zsh/site-function location for
      completion scripts (at least on my systems).</font><br>
    <font face="monospace">What is the best way to solve this problem?
      Should the site-function path in zsh's d/rules be fixed? Or this
      an error in all the other packages and we should fix it there?</font><br>
    <font face="monospace"><br>
    </font><br>
    <font face="monospace">I'm currently working on debianization of
      zsh-completions package:
      <a class="moz-txt-link-freetext" href="https://github.com/zsh-users/zsh-completions">https://github.com/zsh-users/zsh-completions</a> (requested at
      #849878). Where should I install the completion scripts from this
      package?</font>
    <pre class="moz-signature" cols="72">-- 
Best regards,
Georgy Komarov</pre>
  </body>
</html>