Bug 22492

Summary: /var/lib/run/alternatives was missing ... why?
Product: Mageia Reporter: Morgan Leijström <fri>
Component: RPM PackagesAssignee: Base system maintainers <basesystem>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: marja11, tmb
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Morgan Leijström 2018-01-30 22:50:00 CET
( BTW this is on a system recently upgraded from mga6 to cauldron )

# urpmi gcc-c++
installerar gcc-c++-7.3.0-1.mga7.x86_64.rpm från /var/cache/urpmi/rpms                                                              
Förbereder...                    ##################################################################################################
      1/1: gcc-c++               ##################################################################################################
administrationskatalogen /var/lib/alternatives är ogiltig
administrationskatalogen /var/lib/alternatives är ogiltig
varning: %post(gcc-c++-7.3.0-1.mga7.x86_64)-skript misslyckades, slutstatus 2
ERROR: 'script' failed for gcc-c++-7.3.0-1.mga7.x86_64

And maybe that failed script is the reason qt-creator do not find g++ when i try to open a project that needs it? (QElectroTech)
Marja Van Waes 2018-01-31 11:20:29 CET

Assignee: bugsquad => basesystem
CC: (none) => marja11

Comment 1 Thomas Backlund 2018-01-31 11:56:46 CET
not a gcc bug.

you have a broken install somewhere if /var/lib/alternatives is missing...

is chkconfig installed ?

Source RPM: gcc-7.3.0-1.mga7.src.rpm => (none)
CC: (none) => tmb

Comment 2 Morgan Leijström 2018-01-31 13:29:31 CET
Yes chkconfig is installed

# ls -al /var/lib/alt*
lrwxrwxrwx 1 root root 16 okt 15 02:31 /var/lib/alternatives -> rpm/alternatives
Comment 3 Morgan Leijström 2018-01-31 13:50:24 CET
Oh! : the pointed  /var/lib/run/alternatives  is missing !

I now created it, and gcc-c++ installs OK and qt-creator finds it

But of course rest of content in alternatives is missing... whatever should be there...

Strange that that folder was gone - I can not now tell if it existed before upgrade from mga6  (i could but it is much work as i only have a full disk image of it)
Morgan Leijström 2018-01-31 13:51:10 CET

Summary: gcc-7.3.0-1 install script fails => /var/lib/run/alternatives was missing ... why?