Summary: | sys-fs/mdadm: mdraid uses addon code which is deprecated | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | DEMAINE Benoît-Pierre, aka DoubleHP <dhp_gentoo> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | idl0r, xmw |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 251730 | ||
Attachments: | /tmp/emerge--info |
Description
DEMAINE Benoît-Pierre, aka DoubleHP
2010-06-26 12:45:01 UTC
Created attachment 236639 [details]
/tmp/emerge--info
I think it's /etc/init.d/mdraid from sys-fs/mdadm. you're mixing stable & unstable Looks like we should re-open this bug as openrc is stable, finally and it still uses deprecated addon code. <snip> _addon_warn() { eindent ewarn "$RC_SVCNAME uses addon code which is deprecated" ewarn "and may not be available in the future." eoutdent } import_addon() { if [ -e /@LIB@/rc/addons/"$1".sh ]; then _addon_warn . /@LIB@/rc/addons/"$1".sh elif [ -e /@LIB@/rcscripts/addons/"$1".sh ]; then _addon_warn . /@LIB@/rcscripts/addons/"$1".sh else return 1 fi } </snip> <snip> # equery f mdadm ... /lib64/rcscripts/addons/raid-start.sh /lib64/rcscripts/addons/raid-stop.sh </snip> <snip> # cat /etc/init.d/mdraid ... run_addon() { local f=/lib64/rcscripts/addons/$1.sh if [ -r "$f" ]; then ( . "$f" ) fi } start_addon() { run_addon "$1"-start } stop_addon() { run_addon "$1"-stop } </snip> sys-fs/mdadm-3.1.4 This is done already |