Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431402 - app-shells/zsh ebuild enhancement: Provide run-help data and do not install unneeded completions
Summary: app-shells/zsh ebuild enhancement: Provide run-help data and do not install u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal enhancement with 1 vote (vote)
Assignee: Torsten Veller (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-08-14 16:34 UTC by Martin Väth
Modified: 2013-12-23 06:20 UTC (History)
1 user (show)

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


Attachments
Patch with suggested enhancements for zsh-5.0.0.ebuild (zsh-5.0.0.ebuild.patch,4.25 KB, patch)
2012-08-14 16:34 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Väth 2012-08-14 16:34:43 UTC
Created attachment 321336 [details, diff]
Patch with suggested enhancements for zsh-5.0.0.ebuild

It would be nice if app-shells/zsh would (optionally) install data
for run-help system wide, and if the user could skip installation
of completion functions unneeded for his system (e.g. AIX, Redhat,
openSUSE etc) because it costs unnecessary booting time and memory.

The attached patch (taken from the mv overlay) for the ebuild provides both:

With USE=run-help the run-help data is created (it is a USE-flag, because it
needs additional dependencies and maybe has to be masked on some architectures:
It is very fragile, and I can only test on x86 and amd64).

The USE=completion_* flags decide which completions are installed
(note that the functionality cannot be reasonably provided by INSTALL_MASK,
because the $fpath default is calculated at build-time of zsh).

If the names of the USE-flags are kept, it may be reasonable to add
USE_EXPAND="COMPLETEION" to the profile's make.defaults
so that the user can specify e.g.
COMPLETION="AIX openSUSE"
in his /etc/portage/make.conf if he wants.
(This is already added in the mv overlay).
Comment 1 Tim Harder gentoo-dev 2013-12-23 06:20:42 UTC
Upstream added run-help support for >=5.0.3 so it's available in the tree in 5.0.4.

I'm not interested in adding use expands to support a more granular completion installation (use INSTALL_MASK if you need this) so closing this as fixed.