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

Bug 526312

Summary: net-misc/yandex-disk-0.1.4.504_p1: issues with bash completions
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Vladimir Romanov (RETIRED) <blueboar>
Status: RESOLVED FIXED    
Severity: normal CC: pinkbyte, proxy-maint
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-10-21 17:47:17 UTC
* Problems with installed bash completions were found:
 * 
 * 	yandex-disk: 'have' command is deprecated and must not be used.
 * 	nospace: missing alias (symlink) for completed command.
 * 
 * For more details on installing bash-completions, please see:
 * https://wiki.gentoo.org/wiki/Bash/Installing_completion_files

1. remove the 'have' call, just enable the completion unconditionally.

2. the other issue seems to be due to '+o nospace yandex-disk'. Either it is a typo or the author assumed that '+o nospace' would disable 'nospace' -- then no option should be given instead :).
Comment 1 Vladimir Romanov (RETIRED) gentoo-dev 2014-10-24 14:12:37 UTC
As bash-completion file is taken from Yandex company, we can do either

1) Contact with Yandex and ask to modify it
2) Modify it with two sed commands in place

sed -i '/have /d' /etc/bash_completion.d/yandex-disk
sed -i 's/+o nospace/-o nospace/' /etc/bash_completion.d/yandex-disk
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-10-24 14:28:21 UTC
It would be great if you could try to contact them.
Comment 3 Vladimir Romanov (RETIRED) gentoo-dev 2014-10-24 14:33:40 UTC
Contacted. Waiting for answer.
Comment 4 Vladimir Romanov (RETIRED) gentoo-dev 2014-11-28 10:49:07 UTC
Well, a month passed, and no answer from Yandex received. So, i think, we can add this two sed commands i mentioned earlier to ebuild.
Pinkbyte, only you have right to do that, as i'm proxy-committer
Comment 5 Sergey Popov gentoo-dev 2014-12-02 09:40:22 UTC
+*yandex-disk-0.1.5.758_p1 (02 Dec 2014)
+
+  02 Dec 2014; Sergey Popov <pinkbyte@gentoo.org>
+  +yandex-disk-0.1.5.758_p1.ebuild:
+  Version bump, fix bug #526312, thanks to Michał Górny and Vladimir Romanov