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

Bug 521166

Summary: dev-python/pygments: bash-completion files are not compatible with autoloading
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: me, whissi, zeekec
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
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:36:35 UTC
$ ./get-completions /usr/share/bash-completion | ./completion-qa-check.py | grep pygments
pygments: does not declare completion for pygments
pygmentize: missing completion symlink for command (declared in /usr/share/bash-completion/pygments)

which means the completion file should be named 'pygmentize' for autoloading to work, not 'pygments'.
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2014-10-07 08:10:21 UTC
*pygments-1.6_p20140324-r1 (07 Oct 2014)

  07 Oct 2014; Ian Delaney <idella4@gentoo.org>
  +pygments-1.6_p20140324-r1.ebuild:
  revbump; rename (data) file to pygmentize to effect bash-completion, fixes Bug
  #521166
Comment 2 Martin Gysel (bearsh) 2014-10-07 13:25:48 UTC
-r1 does not merge :(

Installing pygmentize script to /var/tmp/portage/dev-python/pygments-1.6_p20140324-r1/image//_python3.3/usr/lib/python-exec/python3.3
 * python2_7: running distutils-r1_run_phase python_install_all
/var/tmp/portage/dev-python/pygments-1.6_p20140324-r1/temp/environment: line 3452: pushd: /var/tmp/portage/dev-python/pygments-1.6_p20140324-r1/image/usr/share/bash-completion/completions/: No such file or directory
mv: cannot overwrite non-directory ‘pygmentize’ with directory ‘pygments’
 * ERROR: dev-python/pygments-1.6_p20140324-r1::gentoo failed (install phase):
 *   (no error message)
Comment 3 Mike Gilbert gentoo-dev 2014-10-07 15:19:07 UTC
+  07 Oct 2014; Mike Gilbert <floppym@gentoo.org>
+  pygments-1.6_p20140324-r1.ebuild:
+  Fix bashcomp installation for bash-completon-1 users, bug 521166.