Bug 20746

Summary: mate-menus post scripts break the upgrade process (5 to 6)
Product: Mageia Reporter: Rémi Verschelde <rverschelde>
Component: RPM PackagesAssignee: Atilla ÖNTAŞ <tarakbumba>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: release_blocker CC: luigiwalser
Version: CauldronKeywords: 6RC
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: mate-menus-1.18.0-1.mga6 CVE:
Status comment:
Attachments: report.bug.xz from a test upgrade by Ben McMonagle

Description Rémi Verschelde 2017-04-28 13:25:22 CEST
As reported on the qa-discuss mailing list against the current set of testing Mageia 6 RC ISOs (28.04.2017), mate-menus packages (at least matemenu-mageia-layout)'s %post scripts cause upgrade failures:

* urpmi error: ERROR: 'script' failed for matemenu-mageia-layout-1.18.0-1.mga6.x86_64
* p11-kit not installed, %post(matemenu-mageia-layout-1.18.0-1.mga6.x86_64) scriptlet failed, exit status 127
* iputils not installed, %post(matemenu-mageia-layout-1.18.0-1.mga6.x86_64) scriptlet failed, exit status 127
/var/tmp/rpm-tmp.vkBAlI: line 6: update-alternatives: command not found
%post(matemenu-mageia-layout-1.18.0-1.mga6.x86_64) scriptlet failed, exit status 127

It's likely just a missing dependency (Requires(post)).
Comment 1 Rémi Verschelde 2017-04-28 13:26:02 CEST
Created attachment 9235 [details]
report.bug.xz from a test upgrade by Ben McMonagle
Comment 2 Rémi Verschelde 2017-04-28 13:27:53 CEST
> It's likely just a missing dependency (Requires(post)).

CC'ing David who has some experience setting the correct Requires in such cases :)

I guess it should be something like `Requires(postun): chkconfig`, but I did not test it to confirm.

Priority: Normal => release_blocker
CC: (none) => luigiwalser
Keywords: (none) => 6RC

Comment 3 David Walser 2017-04-28 18:03:03 CEST
Should be fixed in mate-menus-1.18.0-2.mga6.
Comment 4 Rémi Verschelde 2017-05-02 09:53:28 CEST
Closing.

Status: NEW => RESOLVED
Resolution: (none) => FIXED