[Pkg-zsh-devel] Bug#666168: zsh: Many function definitions are missing zsh-newuser-install, compinit, etc.

Frank Terbeck ft at bewatermyfriend.org
Thu Mar 29 13:59:00 UTC 2012


Hong Xu wrote:
> On 03/29/2012 09:18 PM, Frank Terbeck wrote:
[...]
>>    print -l $fpath
>>    c=( ${^fpath}/compinit(N.) )
>>    (( $#c ))&&  ls -l $c[1] || echo compinit not found
[...]
> It cames up with:
>
> 	/opt/intel/composerxe-2011.5.220/mkl/include
> 	compinit not found

I have no idea were this is coming from. Please do this:

  % zsh -f
      (and in that new shell)
  % print -l $fpath

If that yields "/opt/intel/composerxe-2011.5.220/mkl/include" then that
is not from our package. That would be completely broken.

>> In case it's broken try this:
>>
>>    % zsh -f
>>        (and in that new shell)
>>    % autoload -Uz compinit
>>    % compinit
>>    % print ${#_comps}
>>
>> The `compinit' call should *not* fail and the `print' call should return
>> an integer in the range of slightly above one thousand.
>
> compinit fails, and the print gives 0.

This makes me think that your zsh is actually entire broken, what source
are you getting your package from? Do:

  % apt-cache policy zsh

The unchanged $fpath from a default zsh installation on a recent debian
sid system should look like this:

[snip]
/usr/local/share/zsh/site-functions
/usr/share/zsh/vendor-functions
/usr/share/zsh/vendor-completions
/usr/share/zsh/functions/Calendar
/usr/share/zsh/functions/Chpwd
/usr/share/zsh/functions/Completion
/usr/share/zsh/functions/Completion/AIX
/usr/share/zsh/functions/Completion/BSD
/usr/share/zsh/functions/Completion/Base
/usr/share/zsh/functions/Completion/Cygwin
/usr/share/zsh/functions/Completion/Darwin
/usr/share/zsh/functions/Completion/Debian
/usr/share/zsh/functions/Completion/Linux
/usr/share/zsh/functions/Completion/Mandriva
/usr/share/zsh/functions/Completion/Redhat
/usr/share/zsh/functions/Completion/Solaris
/usr/share/zsh/functions/Completion/Unix
/usr/share/zsh/functions/Completion/X
/usr/share/zsh/functions/Completion/Zsh
/usr/share/zsh/functions/Exceptions
/usr/share/zsh/functions/MIME
/usr/share/zsh/functions/Misc
/usr/share/zsh/functions/Newuser
/usr/share/zsh/functions/Prompts
/usr/share/zsh/functions/TCP
/usr/share/zsh/functions/VCS_Info
/usr/share/zsh/functions/VCS_Info/Backends
/usr/share/zsh/functions/Zftp
/usr/share/zsh/functions/Zle
[snap]

In particular, we do NOT have any /opt/intel/... paths in there.

Regards, Frank





More information about the Pkg-zsh-devel mailing list