Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Please use extra_commands [opts variable is deprecated]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Sat Oct 22, 2011 5:51 pm    Post subject: Please use extra_commands [opts variable is deprecated] Reply with quote

Code:
* Use of the opts variable is deprecated and will be
 * removed in the future.
 * Please use extra_commands or extra_started_commands.
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...
 [ ok ]


what extra commands it is asking to use?
the above os part of rc.log
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1179

PostPosted: Sat Oct 22, 2011 5:59 pm    Post subject: Re: Please use extra_commands [opts variable is deprecated] Reply with quote

padoor wrote:
Code:
* Use of the opts variable is deprecated and will be
 * removed in the future.
 * Please use extra_commands or extra_started_commands.
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...
 [ ok ]


what extra commands it is asking to use?
the above os part of rc.log


some of the files in /etc/init.d contain the line opts=
substitute 'opts' with 'extra_commands' or 'extra_started_commands'
i think reload needs extra_started_commands.

well that's what i understand it to be.
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Sat Oct 22, 2011 8:51 pm    Post subject: Reply with quote

I suspect a few init.d scripts have not yet been updated to the new format .. this should be safe to ignore for now.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun Oct 23, 2011 12:22 am    Post subject: Reply with quote

or you have forget to etc-update to get latest script version
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Sun Oct 23, 2011 1:56 am    Post subject: Reply with quote

Code:
localtux ramaswamy # eix scripts
[I] dev-db/mysql-init-scripts
     Available versions:  1.2 (~)2.0_pre1-r2
     Installed versions:  2.0_pre1-r2(11:38:16 AM 10/11/2011)
     Homepage:            http://www.gentoo.org/
     Description:         Gentoo MySQL init scripts.

[D] kde-base/kdesdk-scripts
     Available versions:  (4) [m]4.6.3 [m]4.6.5 [m](~)4.7.1 [m](~)4.7.2
        {aqua debug +handbook kdeenablefinal kdeprefix}
     Installed versions:  3.5.10-r1(3.5)[?](01:04:57 PM 07/31/2011)(-debug -elibc_FreeBSD)
     Homepage:            http://www.kde.org/
     Description:         KDE SDK Scripts

[I] media-libs/libquvi-scripts
     Available versions:  (~)0.4.0!t {offensive}
     Installed versions:  0.4.0!t(06:36:43 PM 10/10/2011)(-offensive)
     Homepage:            http://quvi.sourceforge.net/
     Description:         Embedded lua scripts for libquvi

* media-tv/gentoo-vdr-scripts
     Available versions:  0.4.7 (~)0.4.8 (~)0.4.9 {nvram}
     Homepage:            http://www.gentoo.org/
     Description:         Scripts necessary for use of vdr as a set-top-box

* net-zope/pythonscripts
     Available versions:  [M](~)2.13.0
     Homepage:            http://pypi.python.org/pypi/Products.PythonScripts
     Description:         Products.PythonScripts provides support for restricted execution of Python scripts in Zope 2.

* net-zope/z3c-recipe-scripts
     Available versions:  [M](~)1.0.1
     Homepage:            http://pypi.python.org/pypi/z3c.recipe.scripts
     Description:         Recipe for installing Python scripts

* sys-process/supervise-scripts
     Available versions:  3.5 4.0 {doc}
     Homepage:            http://untroubled.org/supervise-scripts/
     Description:         Starting and stopping daemontools managed services

* x11-apps/scripts
     Available versions:  1.0.1-r1
     Homepage:            http://xorg.freedesktop.org/
     Description:         start an X program on a remote machine

Found 8 matches.
localtux ramaswamy # etc-update
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)
localtux ramaswamy #                           


someone pls suggest what package do i emerge or remerge to correct this message.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Sun Oct 23, 2011 9:10 am    Post subject: Reply with quote

With "scripts" it is referred to the init-scripts in /etc/init.d/ ... not a lot that you can do about except waiting until the package-developer changed that part of the init-script.

HTH
swimmer
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Sun Oct 23, 2011 12:40 pm    Post subject: Reply with quote

i read through all cripts in init.d and edited all opts= to extra_commands=
the scripts those had extra_commands= were probably newly merged packages
those had opts= were 5 scrpts in my system

the total edited scripts are

alsasound,capi,dnsextd,hwclock,mdnsd,mDNSResonderPosix,samba,sshd,syslog-ng,xinetd
i will try restart and see if the messages go from rc.log
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun Oct 23, 2011 12:48 pm    Post subject: Reply with quote

padoor :(

why did you do that ? it's just a warning message !
with your "bad luck" at finding problems no one have seen before, you shouldn't do things like that.

you have a little gremlin on your shoulder whispering to you?
Back to top
View user's profile Send private message
Polynomial-C
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 1432
Location: Germany

PostPosted: Sun Oct 23, 2011 3:35 pm    Post subject: Reply with quote

padoor wrote:
i read through all cripts in init.d and edited all opts= to extra_commands=
the scripts those had extra_commands= were probably newly merged packages
those had opts= were 5 scrpts in my system

the total edited scripts are

alsasound,capi,dnsextd,hwclock,mdnsd,mDNSResonderPosix,samba,sshd,syslog-ng,xinetd
i will try restart and see if the messages go from rc.log

Well, this shouldn't be fixed by users manually. I'd rather suggest to use something like this script to re-emerge all packages still containing opts= and then report packages that still complain when using their init scripts (but please search for already existing bug reports first):
Code:
emerge -1av $(grep "^[[:space:]]*opts=" /etc/init.d/* | cut -d : -f 1 | grep -v "\\.sh$" | xargs qfile -CSq | uniq)

And using extra_commands= on all the opts= entries is plain wrong. Most of these scripts need extra_started_commands=. I was involved in some of these changes and I can tell you that you should re-sync your portage-tree and re-emerge at least the following packages to get proper init scripts:
  • sys-apps/openrc (hwclock)
  • net-fs/samba
  • net-misc/sshd
  • app-admin/syslog-ng
  • sys-apps/xinetd
All these packages have already fixed init scripts but many maintainers renounced doing a revision bump for such kind of fixes as long as openrc still works with the old variable as well.

All packages I didn't mention in that list still need fixes and I gonna try to open bugs for them and/or submit patches.
_________________
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Sun Oct 23, 2011 5:21 pm    Post subject: Reply with quote

Code:
localtux ramaswamy # emerge -1av $(grep "^[[:space:]]*opts=" /etc/init.d/* | cut -d : -f 1 | grep -v "\\.sh$" | xargs qfile -CSq | uniq)
Usage: emerge [options]

emerge: error: no such option: -[
localtux ramaswamy #       


then i have noted which scripts i edited from opts= to extra_commands=
is it not sufficient to edit them back to opts=
is remerging necessary?

i get no such options for emerge.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
Polynomial-C
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 1432
Location: Germany

PostPosted: Sun Oct 23, 2011 6:27 pm    Post subject: Reply with quote

padoor wrote:
Code:
localtux ramaswamy # emerge -1av $(grep "^[[:space:]]*opts=" /etc/init.d/* | cut -d : -f 1 | grep -v "\\.sh$" | xargs qfile -CSq | uniq)
Usage: emerge [options]

emerge: error: no such option: -[
localtux ramaswamy #       


then i have noted which scripts i edited from opts= to extra_commands=
is it not sufficient to edit them back to opts=
is remerging necessary?

i get no such options for emerge.

This happens when the script doesn't find any file containing opts= variable.
Just re-emerge all packages that hold files you edited manually. For example the /etc/init.d/reboot.sh and /etc/init.d/shutdown.sh files should not get their opts variable renamed. They have this variable for a completely different purpose.
_________________
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Mon Oct 24, 2011 5:23 am    Post subject: Reply with quote

well i re-emerged all sripts edited.
all of them have got changed from opts= to extra_started_commands= or /and extra_commands
as follows

Code:
localtux ramaswamy # emerge -1av $(grep "^[[:space:]]*extra_commands=" /etc/init.d/* | cut -d : -f 1 | grep -v "\\.sh$" | xargs qfile -CSq | uniq)

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-power/acpid-2.0.12  0 kB
[ebuild   R    ] app-admin/syslog-ng-3.2.4  USE="ipv6 pcre ssl tcpd -caps -hardened (-selinux) -spoof-source -sql -static" 0 kB
[ebuild   R    ] media-sound/alsa-utils-1.0.24.2-r1  USE="nls -doc -minimal" 0 kB
[ebuild   R    ] sys-apps/openrc-0.9.4  USE="ncurses pam unicode -debug (-selinux)" 0 kB
[ebuild   R    ] net-misc/openssh-5.9_p1-r3  USE="hpn pam tcpd -X -X509 -kerberos -ldap -libedit (-selinux) -skey -static" 0 kB
[ebuild   R    ] net-dialup/capi4k-utils-20050718-r5  USE="pppd -fax -rcapid" 0 kB

Total: 6 packages (6 reinstalls), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] n


Code:
localtux ramaswamy # emerge -1av $(grep "^[[:space:]]*extra_started_commands=" /etc/init.d/* | cut -d : -f 1 | grep -v "\\.sh$" | xargs qfile -CSq | uniq)

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] net-misc/mDNSResponder-212.1-r1  USE="-debug -doc -java" 0 kB
[ebuild   R    ] sys-apps/dbus-1.4.16-r1  USE="X -debug -doc (-selinux) -static-libs -test" 0 kB
[ebuild   R    ] sys-apps/xinetd-2.3.14-r1  USE="tcpd -perl -rpc" 0 kB
[ebuild   R    ] net-fs/samba-3.5.11  USE="acl aio client cups netapi pam readline server smbclient -addns -ads -avahi -caps -cluster -debug -doc -examples -fam -ldap -ldb -quota -smbsharemodes -smbtav2 -swat -syslog -winbind" 0 kB
[ebuild   R    ] net-misc/openssh-5.9_p1-r3  USE="hpn pam tcpd -X -X509 -kerberos -ldap -libedit (-selinux) -skey -static" 0 kB

Total: 5 packages (5 reinstalls), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]n           

after etc-update
none of them new or old does have opts=
i have not changed anything in shutdown restart or any other files than which i have mentioned in the OP
i hope now my system is uptodate.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1611
Location: U.S.A.

PostPosted: Mon Oct 24, 2011 8:06 am    Post subject: Reply with quote

krinn wrote:
padoor :(

why did you do that ? it's just a warning message !
with your "bad luck" at finding problems no one have seen before, you shouldn't do things like that.

you have a little gremlin on your shoulder whispering to you?

:lol:
_________________
patrix_neo wrote:
The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it.
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Mon Oct 24, 2011 1:46 pm    Post subject: Reply with quote

as the boot messages were cleared before login prompt some people would not have noticed these messages.
anyways by this exercise i happened to re emerge most the packages which make the init script.
and now i don't get the warning messages.
BoneKracker krinn
the messages are supposed to be read i think :)
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Mon Oct 24, 2011 2:09 pm    Post subject: Reply with quote

padoor wrote:
the messages are supposed to be read i think :)

yes, but the messages aren't always suppose to be handle by users :)
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Mon Oct 24, 2011 5:34 pm    Post subject: Reply with quote

well ok :D
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1611
Location: U.S.A.

PostPosted: Mon Oct 24, 2011 8:39 pm    Post subject: Reply with quote

The message could be a lot more useful. For one thing, it could identify the initscript having the problem For another, it could suggest one or more corrective actions (like submitting a bug, for example).
_________________
patrix_neo wrote:
The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it.
Back to top
View user's profile Send private message
muhsinzubeir
l33t
l33t


Joined: 29 Sep 2007
Posts: 948
Location: /home/muhsin

PostPosted: Thu Nov 03, 2011 8:59 pm    Post subject: Reply with quote

Polynomial-C wrote:
padoor wrote:
i read through all cripts in init.d and edited all opts= to extra_commands=
the scripts those had extra_commands= were probably newly merged packages
those had opts= were 5 scrpts in my system

the total edited scripts are

alsasound,capi,dnsextd,hwclock,mdnsd,mDNSResonderPosix,samba,sshd,syslog-ng,xinetd
i will try restart and see if the messages go from rc.log

Well, this shouldn't be fixed by users manually. I'd rather suggest to use something like this script to re-emerge all packages still containing opts= and then report packages that still complain when using their init scripts (but please search for already existing bug reports first):
Code:
emerge -1av $(grep "^[[:space:]]*opts=" /etc/init.d/* | cut -d : -f 1 | grep -v "\\.sh$" | xargs qfile -CSq | uniq)

And using extra_commands= on all the opts= entries is plain wrong. Most of these scripts need extra_started_commands=. I was involved in some of these changes and I can tell you that you should re-sync your portage-tree and re-emerge at least the following packages to get proper init scripts:
  • sys-apps/openrc (hwclock)
  • net-fs/samba
  • net-misc/sshd
  • app-admin/syslog-ng
  • sys-apps/xinetd
All these packages have already fixed init scripts but many maintainers renounced doing a revision bump for such kind of fixes as long as openrc still works with the old variable as well.

All packages I didn't mention in that list still need fixes and I gonna try to open bugs for them and/or submit patches.


Thanks :)
_________________
~x86
p5k-se
Intel Core 2 Duo
Nvidia GT200
http://www.zanbytes.com
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 688
Location: USA

PostPosted: Thu Dec 22, 2011 3:43 am    Post subject: Reply with quote

Polynomial-C wrote:
I'd rather suggest to use something like this script to re-emerge all packages still containing opts= and then report packages that still complain when using their init scripts (but please search for already existing bug reports first):
Code:
emerge -1av $(grep "^[[:space:]]*opts=" /etc/init.d/* | cut -d : -f 1 | grep -v "\\.sh$" | xargs qfile -CSq | uniq)


Many thanks. This followed by etc-update fixed my opts= error message problem.
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Sat Dec 24, 2011 10:32 am    Post subject: Reply with quote

Thanks for the snippet, finally a simple solution. Needed to re-emerge alsa-utils and nzbget on my machines.
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1611
Location: U.S.A.

PostPosted: Sat Dec 24, 2011 5:01 pm    Post subject: Reply with quote

avx wrote:
Thanks for the snippet, finally a simple solution. Needed to re-emerge alsa-utils and nzbget on my machines.

What's wrong with good ol' "emerge -e world"? :P
_________________
patrix_neo wrote:
The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it.
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Sat Dec 24, 2011 5:08 pm    Post subject: Reply with quote

BoneKracker wrote:
avx wrote:
Thanks for the snippet, finally a simple solution. Needed to re-emerge alsa-utils and nzbget on my machines.

What's wrong with good ol' "emerge -e world"? :P
what's wrong with releasing a ...-r1? :(
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
titanofold
Developer
Developer


Joined: 30 Dec 2003
Posts: 235
Location: Bryson City, NC USA

PostPosted: Sat Dec 24, 2011 5:14 pm    Post subject: Reply with quote

avx wrote:
BoneKracker wrote:
avx wrote:
Thanks for the snippet, finally a simple solution. Needed to re-emerge alsa-utils and nzbget on my machines.

What's wrong with good ol' "emerge -e world"? :P
what's wrong with releasing a ...-r1? :(


Some of us like to wait until there's a real problem to fix.
_________________
The best things in life are free.
Guy-1: Surely, you will fold with me...
Guy-2: Alright, but don't call me Shirley
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sat Dec 24, 2011 6:32 pm    Post subject: Reply with quote

Hm... I think portage needs a way to say "don't bother updating from $x to $x-r1 automatically unless we're reinstalling anyway", for things like this and no-op IUSE changes...
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1611
Location: U.S.A.

PostPosted: Sat Dec 24, 2011 6:46 pm    Post subject: Reply with quote

Ant P. wrote:
Hm... I think portage needs a way to say "don't bother updating from $x to $x-r1 automatically unless we're reinstalling anyway", for things like this and no-op IUSE changes...

I don't think so. I think simply improving the warning to include the name of the offending package would have been adequate.

We've already got an option pertaining to USE changes.
_________________
patrix_neo wrote:
The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum