| Summary: | rpm --rebuilddb deletes but does not rebuid /var/lib/rpm/alternatives | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Frank Griffin <ftg> |
| Component: | RPM Packages | Assignee: | RPM stack maintainers <rpmstack> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | release_blocker | CC: | davidwhodgins, marja11, ngompa13, pterjan, shlomif, smelror, tmb, waterbearer54 |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | rpm | CVE: | |
| Status comment: | |||
|
Description
Frank Griffin
2018-05-04 18:05:40 CEST
Marja Van Waes
2018-05-05 06:32:16 CEST
Assignee:
bugsquad =>
rpmstack 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 =>
critical Should now be fixed by wally in chkconfig-1.10-3.mga7 Resolution:
(none) =>
FIXED |