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

Bug 411661

Summary: net-firewall/arno-iptables-firewall-1.9.2 deprecated use of opts in init.d script
Product: Gentoo Linux Reporter: Marius Brehler <marius.brehler+gentoo>
Component: New packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: marius.brehler+gentoo, proxy-maint
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 309473    
Bug Blocks: 381895    
Attachments: patch to replace opts by extra_*

Description Marius Brehler 2012-04-11 21:54:58 UTC
Running the init.d script with any option results in the following output:

/etc/init.d/arno-iptables-firewall status
 * Use of the opts variable is deprecated and will be
 * removed in the future.
 * Please use extra_commands, extra_started_commands or extra_stopped_commands.

The opts variable is used in line 3 of /etc/init.d/arno-iptables-firewall:

opts="${opts} stats help reload"

I think it should be replaced by (as in the attached patch):

extra_commands="stats help"
extra_started_commands="reload"

Reproducible: Always

Steps to Reproduce:
1. run "/etc/init.d/arno-iptables-firewall status" or similar
Comment 1 Marius Brehler 2012-04-11 21:56:16 UTC
Created attachment 308575 [details, diff]
patch to replace opts by extra_*
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2012-12-17 19:39:17 UTC
This patch does not apply to the ebuild. Please make a proper patch that can be applied within the ebuild.
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2012-12-17 19:43:50 UTC
Fixed in 447386