Opened 11 years ago

Last modified 10 years ago

#37961 closed enhancement

zsh: port completion is no longer available (+mp_completion) — at Version 1

Reported by: jrblevin@… Owned by: larryv@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: zsh

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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.

Change History (1)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to larryv@…

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".

Note: See TracTickets for help on using tickets.