[MacPorts] #37961: zsh: port completion is no longer available (+mp_completion)

MacPorts noreply at macports.org
Wed Feb 6 18:08:49 PST 2013


#37961: zsh: port completion is no longer available (+mp_completion)
--------------------------+----------------------
  Reporter:  jrblevin@…   |      Owner:  larryv@…
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.1.3
Resolution:               |   Keywords:
      Port:  zsh          |
--------------------------+----------------------
Changes (by ryandesign@…):

 * owner:  macports-tickets@… => larryv@…


Old description:

> I upgraded my ports today and noticed that my tab completion was
> broken for the `port` command in zsh.  While investigating this, I
> noticed that the zsh-devel port was marked obsolete in favor of the
> zsh port.  I'm glad to see that the zsh port was brought up to date,
> but is it possible to restore the +mp_completion variant?
>
> The patch should be straightforward.  The mp_completion code from
> zsh-devel simply copied the _port file to the appropriate directory:
>
> {{{
> variant mp_completion description {Install port(1) completion file} {
>     post-destroot {
>         set sitedir ${prefix}/share/${my_name}/site-functions
>         xinstall -m 0644 ${filespath}/_port \
>             ${destroot}${sitedir}
>     }
> }
> }}}
>
> The _port file is, of course, still available in the repository:
>
> http://trac.macports.org/browser/trunk/dports/shells/zsh-
> devel/files/_port?rev=100755
>
> I verified that placing this file in
> `/opt/local/share/zsh/site-functions` restored my ability to use tab
> completion with the `port` command using the current `zsh` package.

New description:

 I upgraded my ports today and noticed that my tab completion was
 broken for the `port` command in zsh.  While investigating this, I
 noticed that the zsh-devel port was marked obsolete in favor of the
 zsh port.  I'm glad to see that the zsh port was brought up to date,
 but is it possible to restore the +mp_completion variant?

 The patch should be straightforward.  The mp_completion code from
 zsh-devel simply copied the _port file to the appropriate directory:

 {{{
 variant mp_completion description {Install port(1) completion file} {
     post-destroot {
         set sitedir ${prefix}/share/${my_name}/site-functions
         xinstall -m 0644 ${filespath}/_port \
             ${destroot}${sitedir}
     }
 }
 }}}

 The _port file is, of course, still available in the repository:

 browser:trunk/dports/shells/zsh-devel/files/_port?rev=100755

 I verified that placing this file in
 `/opt/local/share/zsh/site-functions` restored my ability to use tab
 completion with the `port` command using the current `zsh` package.

--

Comment:

 The mp_completion variant was removed in r101584. The reason given in the
 commit message is that it "installs a file that has zero versioning
 relationship to anything else that is installed".

-- 
Ticket URL: <https://trac.macports.org/ticket/37961#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list