Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521156 - app-shells/gentoo-bashcomp: uses deprecated 'have' command
Summary: app-shells/gentoo-bashcomp: uses deprecated 'have' command
Status: RESOLVED DUPLICATE of bug 521164
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Shell Tools Herd Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: bashcomp2
  Show dependency tree
 
Reported: 2014-08-26 18:21 UTC by Michał Górny
Modified: 2014-09-11 14:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-08-26 18:21:32 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 Alexander Tsoy 2014-08-27 09:16:39 UTC
IIRC this was fixed in git and in gentoo-bashcomp-20130804 (removed from the tree).

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-shells/gentoo-bashcomp/gentoo-bashcomp-20130804.ebuild?hideattic=0&revision=1.4&view=markup
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-09-11 14:25:43 UTC

*** This bug has been marked as a duplicate of bug 521164 ***