Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 480584 - =app-shells/zsh-completion-20130808 does not complete package names from default PORTDIR
Summary: =app-shells/zsh-completion-20130808 does not complete package names from defa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-08-11 08:04 UTC by P Purkayastha
Modified: 2014-11-21 10:06 UTC (History)
3 users (show)

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


Attachments
Patch to always obtain PORTDIR (gentoo-packages.patch,2.09 KB, patch)
2013-08-11 08:05 UTC, P Purkayastha
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description P Purkayastha 2013-08-11 08:04:18 UTC
If PORTDIR is not set in make.conf, then zsh-completion does not complete the package names. I have been able to trace the issue back to the absence of the PORTDIR variable from /usr/share/portage/config/make.globals, which zsh-completion uses. A simple patch which uses portageq as a final option is attached.

Reproducible: Always

Steps to Reproduce:
1. emerge zsh-completion && exec zsh
2. emerge <tab>
Actual Results:  
Only packages from local overlays are completed.

Expected Results:  
All package names should be completed.

Attached patch fixes the bug by using

portageq envvar PORTDIR
Comment 1 P Purkayastha 2013-08-11 08:05:37 UTC
Created attachment 355654 [details, diff]
Patch to always obtain PORTDIR
Comment 2 P Purkayastha 2013-08-11 08:21:10 UTC
Just an update - using portageq slows down the completion but it will probably never fail. If you want faster completion, then just define PORTDIR in /etc/portage/make.conf.
Comment 4 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2014-08-26 04:35:33 UTC
fixed yesterday in zsh-completions repo on g.o.g.o.
Although, gitweb is unavailable there, and it is not synced with GH mirror...
Comment 5 Tim Harder gentoo-dev 2014-11-21 10:06:24 UTC
Should be fixed in the most recent release of the renamed gentoo-zsh-completions now.