Bug 712355 - mksh should depend on chkconfig
Summary: mksh should depend on chkconfig
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: mksh
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Michal Hlavinka
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-10 11:55 UTC by Jan Stodola
Modified: 2011-07-06 13:44 UTC (History)
5 users (show)

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.
Clone Of:
Environment:
Last Closed: 2011-07-06 13:44:51 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0923 0 normal SHIPPED_LIVE mksh bug fix update 2011-07-06 13:44:47 UTC

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


Note You need to log in before you can comment on or make changes to this bug.