Hello, since update to openrc-4.0 mdraid gives warning about the usage of deprecated addon code "mdraid uses addon code which is deprectaded and my not be available in future" Best Regards Martin Bauer Reproducible: Always mb2 ~ # emerge -pv openrc These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-apps/openrc-0.4.0 USE="ncurses pam unicode -debug" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB mb2 ~ # emerge -pv mdadm These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-fs/mdadm-2.6.7.1 USE="-static" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB mb2 ~ # emerge --info Portage 2.1.6.1 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r0, 2.6.27-gentoo-r7 x86_64) ================================================================= System uname: Linux-2.6.27-gentoo-r7-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-glibc2.2.5 Timestamp of tree: Sat, 20 Dec 2008 09:05:01 +0000 app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.5.2-r8 dev-util/cmake: 2.6.2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.0 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.romnet.org/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 amr apache2 arts asf audiofile bash-completion berkdb bitmap-fonts bluetooth boost bzip2 cairo cddb cdr cli cracklib crypt cups dbus doc dri dts dv dvb dvd dvdr dvdread dxr3 eds encode esd evo exif fax firefox font-server fontconfig foomaticdb fortran ftp gcj gd gdbm gif glut gphoto2 gpm graphviz gstreamer gtk hal howl iconv ieee1394 imagemagick inkjar ipv6 isdnlog java javascript jbig jpeg jpeg2k kde kpathsea lcd lcms ldap lesstiff libcaca lirc lm_sensors lzo mad midi mime mmap mmx mmxext mng modplug mono motif mozbranding mozdevelop mp3 mpeg mplayer msn mudflap multilib musicbrainz nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh ncurses network nfs nls nptl nptlonly nsplugin ntpl nvidia ogg openal opengl openmp oss pam pcre pdf perl php phyton png postgres pppd python qt qt3 qt3support qt4 quicktime readline reflection rrdcgi samba sasl scanner sdl session smartcard smp sndfile snmp soap sockets sound sox speex spell spl sse sse2 sse3 ssl subversion svg sysfs tcpd tetex theora threads tiff truetype truetype-fonts type1 type1-fonts unicode usb v4l v4l2 vcd vdr videos visualization vorbis wavpack webdav wmf xcb xcomposite xine xinerama xml xmlrpc xorg xosd xpm xsl xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon" DVB_CARDS="ttpci" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="g15" LINGUAS="de" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS mb2 ~ # rc-update local | nonetwork default postgresql | default xdm | default cupsd | default timidity | default apache2 | default mount-ro | shutdown modules | boot sysctl | boot nfs | default net.eth1 | boot vixie-cron | default killprocs | shutdown vmware | default xinetd | default mdraid | boot consolefont | boot udev | sysinit dnsmasq | boot lm_sensors | default esound | default bluetooth | default vnc | default sshd | default net.lo | boot swap | boot ntpd | default gentoo32 | default firebird | default devfs | sysinit haupaugekeymap | boot lircd | default root | boot dmesg | sysinit netmount | default acpid | default mtab | boot hald | default device-mapper | boot ntp-client | default openvpn | default nfsmount | default xfs | default termencoding | boot net.eth0 | boot hostname | boot postfix | default gpm | default portmap | default fsck | boot bootmisc | boot microcode_ctl | default urandom | boot savecache | shutdown localmount | boot syslog-ng | default alsasound | boot net.vpn0 | boot procfs | boot keymaps | boot hwclock | boot dbus | default
Thanks for the report, assigning to maintainers.
Several packages need to change to install their own init scripts entirely instead of just using init script to wrap the previous baselayout-1 addon code. Off the top of my head that include mdadm, mdraid, and lvm2.
device-mapper is also affected... so we have now: * mdadm * mdraid * lvm2 * device-mapper
You'll want to add evms to that list too... (In reply to comment #3) > device-mapper is also affected... so we have now: > > * mdadm > * mdraid > * lvm2 > * device-mapper >
Quick and dirty solution for device-mapper (thx to UberLord) Just edit your /etc/init.d/device-mapper and replace "start_addon dm" line in /etc/init.d/device-mapper with ". /lib/rcscripts/addons/dm-start.sh" ... Enjoy!
cryptsetup/dm-crypt also belongs on the list...
Sorry, scratch that, it turns out dmcrypt had a hard dependency on device-mapper (which it looks like it doesn't need) and that was the deprecation warning I was getting...
i can confirm this warning on openrc-0.5.2 too
(In reply to comment #5) > Quick and dirty solution for device-mapper (thx to UberLord) > > Just edit your /etc/init.d/device-mapper and replace "start_addon dm" line in > /etc/init.d/device-mapper with ". /lib/rcscripts/addons/dm-start.sh" ... Enjoy! I assume this would work as well for mdraid? Edit /etc/init.d/mdraid to use /lib/rcscripts/addons/raid-start.sh ? I hesitate to just try ... ;-) thanks
(In reply to comment #9) > I assume this would work as well for mdraid? > Edit /etc/init.d/mdraid to use /lib/rcscripts/addons/raid-start.sh ? > I hesitate to just try ... ;-) thanks off-topic, I know: did that edit and it works (I assume it was intended to do so ;-))
making these edits worked for me.
All, is this completed? If not, what is the status? Thanks, William
(In reply to comment #12) > is this completed? If not, what is the status? If the addon fix is in mdadm, as of earlier in the week, it was a silent one, not bumped, as I still see the deprecation notice here (on ~amd64 with sys-fs/mdadm-3.1.1).
All, as I see it, the list still consists of: * device-mapper * evms * mdadm * mdraid * lvm2 Thanks, William
* device-mapper/lvm2 are fixed, now there is a stable request blocking the openrc stabilization tracker. So the list consists of: * evms * mdadm * mdraid
evms is now fixed. There is a stable request blocking the openrc stabilization tracker. We still have mdadm and mdraid.
sys-fs/mdadm is fixed now. Not sure what you meant by mdraid. Within sys-fs/mdadm, the init.d/mdraid script used addon, but the init.d/mdadm scripts does NOT.
(In reply to comment #17) > Not sure what you meant by mdraid. > Within sys-fs/mdadm, the init.d/mdraid script used addon, but the init.d/mdadm > scripts does NOT. In comment #0 and comment #2, mdraid was listed, so I just followed that and initially looked for a separate mdraid package. But, since mdraid is part of mdadm, we are done, so we should be able to close this bug. Thanks, William
I was asked to check on some other packages; here are those results: sys-fs/dmraid does not have an init script sys-fs/cryptsetup (dm-crypt) is correct. app-crypt/truecrypt has a stop addon, but no init script to run it.
All, all of the packages mentioned in this bug have been fixed afaik. Can we close this at this point? Thanks, William
I spoke with robbat2 on IRC, and we confirmed that all of these are fixed. This bug is being closed.