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

Bug 521162

Summary: dev-ruby/rake: bash-completion uses deprecated 'have' command
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED FIXED    
Severity: normal    
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:30:56 UTC
# Backwards compatibility for compat completions that use have().
# @deprecated should no longer be used; generally not needed with dynamically
#             loaded completions, and _have is suitable for runtime use.
have()

To be more specific, it is unset after loading 'compat' completions. Therefore, completions using it can't be dynamically loaded with new bash-completion because there is no 'have' function at dynamic loading time.

As far as I understand, upstream suggests not using 'have' at all, and just letting completions load.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-10-13 08:46:40 UTC
+  13 Oct 2014; Michał Górny <mgorny@gentoo.org> files/rake.bash-completion:
+  Remove use of deprecated "have" command from bash-completion, bug #521162.

I didn't revbump since this is a trivial change.