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

Bug 521154

Summary: gnome-base/gvfs: bash-completion files are not (fully) compatible with autoloading
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugzilla.gnome.org/show_bug.cgi?id=738369
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 521146    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-08-26 18:07:38 UTC
+++ This bug was initially created as a clone of Bug #521152 +++

$ ./get-completions | ./completion-qa-check.py | grep gvfs
gvfs: does not declare completion for gvfs
gvfs-ls: missing completion symlink for command (declared in /usr/share/bash-completion/completions/gvfs)
gvfs-info: missing completion symlink for command (declared in /usr/share/bash-completion/completions/gvfs)
gvfs-trash: missing completion symlink for command (declared in /usr/share/bash-completion/completions/gvfs)
gvfs-cat: missing completion symlink for command (declared in /usr/share/bash-completion/completions/gvfs)
gvfs-copy: missing completion symlink for command (declared in /usr/share/bash-completion/completions/gvfs)
gvfs-save: missing completion symlink for command (declared in /usr/share/bash-completion/completions/gvfs)
gvfs-move: missing completion symlink for command (declared in /usr/share/bash-completion/completions/gvfs)
gvfs-mkdir: missing completion symlink for command (declared in /usr/share/bash-completion/completions/gvfs)
gvfs-open: missing completion symlink for command (declared in /usr/share/bash-completion/completions/gvfs)
gvfs-less: missing completion symlink for command (declared in /usr/share/bash-completion/completions/gvfs)
gvfs-monitor-file: missing completion symlink for command (declared in /usr/share/bash-completion/completions/gvfs)
gvfs-tree: missing completion symlink for command (declared in /usr/share/bash-completion/completions/gvfs)
gvfs-monitor-dir: missing completion symlink for command (declared in /usr/share/bash-completion/completions/gvfs)
gvfs-rm: missing completion symlink for command (declared in /usr/share/bash-completion/completions/gvfs)

Long story short, you need to have a file in $completionsdir for every command, and preferably none with names not matching commands. So preferably, $completionsidr would look like:

  gvfs-open
  gvfs-info -> gvfs-open
  gvfs-ls -> gvfs-open
  ...

or similarly -- having script for one command, and symlinking all others to it.
Comment 1 Pacho Ramos gentoo-dev 2014-09-05 09:56:45 UTC
Not sure if you have any link with information about this as I will need to report to upstream too :/
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-09-05 12:43:34 UTC
Well, I've written on the general rules on our wiki [1]. However, if you mean something like an official proof that's the correct way, I haven't assembled anything like that yet.

[1]:https://wiki.gentoo.org/wiki/Bash/Installing_completion_files
Comment 3 Pacho Ramos gentoo-dev 2015-10-24 07:52:42 UTC
this looks solved in 3.16