Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541850 - dev-vcs/hub installs zsh completion with wrong filename
Summary: dev-vcs/hub installs zsh completion with wrong filename
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Vikraman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-01 22:32 UTC by Adrian
Modified: 2015-03-06 22:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian 2015-03-01 22:32:56 UTC
dev-vcs/hub installs the zsh completion script as 'hub' but the zsh completion system expects it to be named _hub to be loaded automatically.

> The convention for autoloaded functions used in completion is that they start with an underscore
(http://zsh.sourceforge.net/Doc/Release/Completion-System.html)

So this line in the ebuild

    newins etc/hub.zsh_completion ${PN}

should be this instead (untested):

    newins etc/hub.zsh_completion "_${PN}"
Comment 1 Christoph Junghans (RETIRED) gentoo-dev 2015-03-06 22:15:43 UTC
+*hub-2.2.0 (06 Mar 2015)
+
+  06 Mar 2015; Christoph Junghans <ottxor@gentoo.org> +hub-2.2.0.ebuild:
+  version bump (bug #531890), fix zsh completion (bug #541850)
+