Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 480584

Summary: =app-shells/zsh-completion-20130808 does not complete package names from default PORTDIR
Product: Gentoo Linux Reporter: P Purkayastha <ppurka>
Component: Current packagesAssignee: Tim Harder <radhermit>
Status: RESOLVED FIXED    
Severity: normal CC: mva, poncho, shell-tools
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=478098
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to always obtain PORTDIR

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.