Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 251730 - [TRACKER] Update deprecated OpenRC addon code (mdadm, evms, lvm, device-mapper)
Summary: [TRACKER] Update deprecated OpenRC addon code (mdadm, evms, lvm, device-mapper)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: Tracker
Depends on: 325707
Blocks: 295613
  Show dependency tree
 
Reported: 2008-12-20 12:32 UTC by Martin
Modified: 2017-01-19 18:47 UTC (History)
23 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin 2008-12-20 12:32:10 UTC
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
Comment 1 Wormo (RETIRED) gentoo-dev 2008-12-21 07:43:00 UTC
Thanks for the report, assigning to maintainers.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2008-12-22 21:44:13 UTC
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.
Comment 3 Elias Probst 2008-12-28 20:23:58 UTC
device-mapper is also affected...  so we have now:

* mdadm
* mdraid
* lvm2
* device-mapper
Comment 4 Rob MacKinnon 2009-01-26 18:41:26 UTC
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
> 

Comment 5 michel 2009-04-27 09:19:21 UTC
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!
Comment 6 Mike Auty (RETIRED) gentoo-dev 2009-05-21 00:52:50 UTC
cryptsetup/dm-crypt also belongs on the list...
Comment 7 Mike Auty (RETIRED) gentoo-dev 2009-05-23 19:27:10 UTC
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...
Comment 8 tman 2009-10-19 10:43:46 UTC
i can confirm this warning on openrc-0.5.2 too
Comment 9 Stefan G. Weichinger 2009-11-14 15:39:37 UTC
(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
Comment 10 Stefan G. Weichinger 2009-11-19 22:49:07 UTC
(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 ;-)) 

Comment 11 Leho Kraav (:macmaN @lkraav) 2009-12-05 21:46:53 UTC
making these edits worked for me.
Comment 12 William Hubbs gentoo-dev 2009-12-17 22:34:05 UTC
All,

is this completed?  If not, what is the status?

Thanks,

William

Comment 13 Duncan 2009-12-22 00:06:54 UTC
(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).
Comment 14 William Hubbs gentoo-dev 2010-01-24 16:20:20 UTC
All,

as I see it, the list still consists of:

* device-mapper
* evms
* mdadm
* mdraid
* lvm2

Thanks,

William
Comment 15 William Hubbs gentoo-dev 2010-01-24 18:31:27 UTC
* device-mapper/lvm2 are fixed, now there is a stable request blocking the openrc stabilization  tracker.

So the list consists of:

* evms
* mdadm
* mdraid

Comment 16 William Hubbs gentoo-dev 2010-01-24 21:40:09 UTC
evms is now fixed.  There is a stable request blocking the openrc stabilization tracker.

We still have mdadm and mdraid.

Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-01-24 22:23:18 UTC
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.
Comment 18 William Hubbs gentoo-dev 2010-01-24 23:51:04 UTC
(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
Comment 19 William Hubbs gentoo-dev 2010-01-25 00:39:37 UTC
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.

Comment 20 William Hubbs gentoo-dev 2010-01-27 18:58:13 UTC
All,

all of the packages mentioned in this bug have been fixed afaik.  Can we
close this at this point?

Thanks,

William

Comment 21 William Hubbs gentoo-dev 2010-01-27 20:08:28 UTC
I spoke with robbat2 on IRC, and we confirmed that all of these are
fixed.  This bug is being closed.