Bug 712362

Summary: portreserve should depend on chkconfig
Product: Red Hat Enterprise Linux 6 Reporter: Jan Stodola <jstodola>
Component: portreserveAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: azelinka, mbanas, pknirsch, syeghiay
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: portreserve-0.0.4-7.el6 Doc Type: Bug Fix
Doc Text:
The portreserve package requires the "chkconfig" command because it is run in installation scriptlets. However, this was previously not reflected in the package metadata, and error messages could be displayed during installation. To prevent this issue, this update adds requirement tags for chkconfig.
Story Points: ---
Clone Of:
: 718173 718199 (view as bug list) Environment:
Last Closed: 2012-04-03 15:20:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 718173, 718199    
Attachments:
Description Flags
patch to the portreserve spec file to include chkconfig to Requires(post) and Requires(preun) mkpai: review?

Description Jan Stodola 2011-06-10 12:37:52 UTC
Description of problem:
portreserve runs '/sbin/chkconfig' in its installation scriplets, but the
package doesn't depend on chkconfig:

[root@rtt6 ~]# rpm --nogpg -q --scripts -p rpms/portreserve-0.0.4-4.el6.s390x.rpm | grep chkconfig
/sbin/chkconfig --add portreserve
  /sbin/chkconfig --del portreserve
[root@rtt6 ~]# rpm -qf /sbin/chkconfig
chkconfig-1.3.47-1.el6.s390x
[root@rtt6 ~]# rpm --nogpg -q --requires -p rpms/portreserve-0.0.4-4.el6.s390x.rpm | grep chkconfig
[root@rtt6 ~]#


It causes error messages in some cases:
...
  Installing : ncurses-libs-5.7-3.20090208.el6.s390x                      10/12 
  Installing : bash-4.1.2-8.el6.s390x                                     11/12 
  Installing : portreserve-0.0.4-4.el6.s390x                              12/12
Non-fatal POSTIN scriptlet failure in rpm package portreserve-0.0.4-4.el6.s390x
 
/var/tmp/rpm-tmp.UJ2OZ2: line 3: /sbin/chkconfig: No such file or directory
warning: %post(portreserve-0.0.4-4.el6.s390x) scriptlet failed, exit status 127


Version-Release number of selected component (if applicable):
portreserve-0.0.4-4.el6

How reproducible:
always

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

Actual results:
errors during installation

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

Comment 1 Madhavprasad Pai 2011-07-01 09:17:59 UTC
Created attachment 510825 [details]
patch to the portreserve spec file to include chkconfig to Requires(post) and Requires(preun)

patch to the portreserve spec file to include chkconfig to Requires(post) and Requires(preun)

Comment 2 RHEL Program Management 2011-07-06 00:34:31 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 7 RHEL Program Management 2011-08-19 18:08:59 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 10 Eliska Slobodova 2012-01-20 12:54:08 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:
The portreserve package requires the "chkconfig" command because it is run in installation scriptlets. However, this was previously not reflected in the package metadata, and error messages could be displayed during installation. To prevent this issue, this update adds requirement tags for chkconfig.

Comment 14 errata-xmlrpc 2012-04-03 15:20:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0447.html