Bug 712355

Summary: mksh should depend on chkconfig
Product: Red Hat Enterprise Linux 6 Reporter: Jan Stodola <jstodola>
Component: mkshAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: mbanas, mfranc, ovasik, pkovar, pmuller
Target Milestone: rcKeywords: EasyFix
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Prior to this update, the mksh package did not specify all requirements for RPM scriptlets. As a result, the requirements were not installed during the post install setup and the scriptlets were not able to work correctly. With this update, the bug has been fixed, and the mksh package now specifies the requirements and installs them as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-06 13:44:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jan Stodola 2011-06-10 11:55:36 UTC
Description of problem:
mksh runs /usr/sbin/alternatives in its installation scriplets, but the package
doesn't depend on the chkconfig package:

[root@rtt6 ~]# rpm --nogpg -q --scripts -p rpms/mksh-39-5.el6.s390x.rpm | grep alternatives
/usr/sbin/alternatives --install /bin/ksh ksh \
        /usr/sbin/alternatives --remove ksh /bin/mksh
[root@rtt6 ~]# rpm -qf /usr/sbin/alternatives
chkconfig-1.3.47-1.el6.s390x
[root@rtt6 ~]# rpm --nogpg -q --requires -p rpms/mksh-39-5.el6.s390x.rpm | grep chkconfig
[root@rtt6 ~]#


It causes error messages in some cases:
...
  Installing : coreutils-8.4-13.el6.s390x                                 31/33 
  Installing : pam-1.1.1-8.el6.s390x                                      32/33 
  Installing : mksh-39-5.el6.s390x                                        33/33
Non-fatal POSTIN scriptlet failure in rpm package mksh-39-5.el6.s390x
/var/tmp/rpm-tmp.4KwYIK: line 4: /usr/sbin/alternatives: No such file or directory
warning: %post(mksh-39-5.el6.s390x) scriptlet failed, exit status 127


Version-Release number of selected component (if applicable):
mksh-39-5.el6

How reproducible:
always

Steps to Reproduce:
1. yum --installroot=/root/new_install_root install mksh

Actual results:
errors during installation

Expected results:
mksh depends on chkconfig, no error messages during installation

Comment 4 Petr Kovar 2011-07-04 17:04:40 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Prior to this update, the mksh package did not specify all requirements for RPM scriptlets. As a result, the requirements were not installed during the post install setup and the scriptlets were not able to work correctly. With this update, the bug has been fixed, and the mksh package now specifies the requirements and installs them as expected.

Comment 5 errata-xmlrpc 2011-07-06 13:44:51 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0923.html