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

Bug 526300

Summary: net-firewall/ufw-0.34_pre805-r1: bashcomp uses deprecated 'have' command
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Sławomir Nizio <slawomir.nizio>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 521146    
Attachments: patch to create -r2
patch that goes under "files"

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-10-21 17:31:24 UTC
* Problems with installed bash completions were found:
 * 
 * 	ufw: 'have' command is deprecated and must not be used.
 * 
 * For more details on installing bash-completions, please see:
 * https://wiki.gentoo.org/wiki/Bash/Installing_completion_files

Please remove the 'have' call and enable the completion unconditionally.
Comment 1 Sławomir Nizio 2014-12-13 12:51:56 UTC
Created attachment 391566 [details, diff]
patch to create -r2
Comment 2 Sławomir Nizio 2014-12-13 12:52:34 UTC
Created attachment 391568 [details, diff]
patch that goes under "files"
Comment 3 Sławomir Nizio 2014-12-13 12:57:07 UTC
That's it, but this is also an opportunity to remove the older ebuild, using the older Python/distutils eclass. :)

rm net-firewall/ufw/files/ufw-0.31.1-python-abis.patch
rm net-firewall/ufw/ufw-0.34_pre805.ebuild

^ This will do.

If you wish, you could also remove the ebuild that is currently newest, replaced by -r2 from the first patch: ufw-0.34_pre805-r1.ebuild.
Comment 4 Sergey Popov gentoo-dev 2014-12-15 11:07:47 UTC
+*ufw-0.34_pre805-r2 (15 Dec 2014)
+
+  15 Dec 2014; Sergey Popov <pinkbyte@gentoo.org> -ufw-0.34_pre805.ebuild,
+  +ufw-0.34_pre805-r2.ebuild, +files/ufw-0.34_pre805-bash-completion.patch:
+  Revision bump: fix bash completion, wrt bug #526300, drop old revision

Thanks for the fix!