As per subject line. To reproduce, make a copy of /var/lib/rpm/alternatives and run "rpm --rebuilddb". That directory will have been removed, breaking all existing alternatives symlinks and the "alternatives" command as well since the symlink from /var/lib/alternatives is now broken. If the rebuilddb action (clearing the /var/lib/rpm directory) is correct, then /var/lib/rpm is probably not a good place for the alternatives admindir.
Assignee: bugsquad => rpmstackCC: (none) => marja11
I can reproduce this here (mga 7 cauldron x86-64)/
CC: (none) => shlomif
The alternatives directory should have been moved to /var/lib/alternatives in Mageia 6. We did that as part of the transition to chkconfig's implementation of alternatives...
CC: (none) => ngompa13
/var/lib/alternatives exists, but it's a symlink to /var/lib/rpm/alternatives.
I am also getting these messages when updating just now. 11/21: gcc ################################################################# bad mode on line 1 of /var/lib/alternatives/gcc bad mode on line 1 of /var/lib/alternatives/gcc-ar bad mode on line 1 of /var/lib/alternatives/gcc-nm bad mode on line 1 of /var/lib/alternatives/gcc-ranlib 17/21: gcc-c++ ################################################################# bad mode on line 1 of /var/lib/alternatives/g++
CC: (none) => smelror
It hasn't moved, files live in /var/lib/rpm/alternatives with /var/lib/alternatives being a symlink http://svnweb.mageia.org/packages/cauldron/chkconfig/current/SPECS/chkconfig.spec ?view=markup&pathrev=1296121#l95 like it was in old package http://svnweb.mageia.org/packages/obsolete/update-alternatives/current/SPECS/update-alternatives.spec?revision=985854&view=markup
CC: (none) => pterjan
(In reply to Pascal Terjan from comment #5) > It hasn't moved, files live in /var/lib/rpm/alternatives with > /var/lib/alternatives being a symlink > http://svnweb.mageia.org/packages/cauldron/chkconfig/current/SPECS/chkconfig. > spec ?view=markup&pathrev=1296121#l95 like it was in old package > http://svnweb.mageia.org/packages/obsolete/update-alternatives/current/SPECS/ > update-alternatives.spec?revision=985854&view=markup I see that in the SPEC, but chkconfig created this for me: /var/lib/alternatives/alternatives/alternatives/alternatives/alternatives/alternatives/alternatives/alternatives/
CC: (none) => waterbearer54
The reason we're supposed to have moved it is because rpm's --rebuilddb implementation changed. It now regenerates the /var/lib/rpm directory, which means it's a really bad idea to put other things in there.
wich means chkconfig package is broken then... in pre on upgrade it should check for /var/lib/alternatives symlink, nuke it, check for /var/lib/rpm/alternatives dir, move it to /var/lib/alternatives and add a symlink in rpm/alternatives to keep upgrade path until all packages depending on the location is installed... after that no-one should need to care about if/when the rpm/alternatives symlink gets nuked.
CC: (none) => tmb
Marking this bug as a release blocker for Mageia 7.
Severity: major => criticalCC: (none) => davidwhodginsPriority: Normal => release_blocker
Should now be fixed by wally in chkconfig-1.10-3.mga7
Resolution: (none) => FIXEDStatus: NEW => RESOLVED