Bug 712848

Summary: wpa_supplicant should depend on chkconfig
Product: Red Hat Enterprise Linux 6 Reporter: Jan Stodola <jstodola>
Component: wpa_supplicantAssignee: Lubomir Rintel <lrintel>
Status: CLOSED ERRATA QA Contact: Ken Benoit <kbenoit>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: danw, dcbw, jkoten, kdube, kzhang, lrintel, mbanas, rkhan, tpelka
Target Milestone: rc   
Target Release: 6.8   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-10 19:30:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1275424    

Description Jan Stodola 2011-06-13 11:17:28 UTC
Description of problem:
wpa_supplicant runs 'chkconfig' in its installation scriplet, but the
package doesn't depend on chkconfig:

[root@rtt5 rpms]# rpm --nogpg -q --scripts -p wpa_supplicant-0.6.8-10.el6.s390x.rpm 
postinstall scriptlet (using /bin/sh):
if [ $1 = 1 ]; then
        chkconfig --add wpa_supplicant
fi
preuninstall scriptlet (using /bin/sh):
if [ $1 = 0 ]; then
        service wpa_supplicant stop > /dev/null 2>&1
        killall -TERM wpa_supplicant >/dev/null 2>&1
        /sbin/chkconfig --del wpa_supplicant
fi

[root@rtt5 rpms]# rpm --nogpg -q --requires -p wpa_supplicant-0.6.8-10.el6.s390x.rpm | grep chkconfig
[root@rtt5 rpms]#

It causes error messages in some cases:
...
  Installing : python-libs-2.6.6-20.el6.s390x                             45/47 
  Installing : python-2.6.6-20.el6.s390x                                  46/47 
  Installing : 1:wpa_supplicant-0.6.8-10.el6.s390x                        47/47
Non-fatal POSTIN scriptlet failure in rpm package 1:wpa_supplicant-0.6.8-10.el6.s390x
 
/var/tmp/rpm-tmp.GHzq8F: line 2: chkconfig: command not found
warning: %post(wpa_supplicant-1:0.6.8-10.el6.s390x) scriptlet failed, exit status 127


Version-Release number of selected component (if applicable):
wpa_supplicant-0.6.8-10.el6

How reproducible:
always

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

Actual results:
errors during installation

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

Comment 1 RHEL Program Management 2011-10-07 16:12:25 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

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.

Comment 7 Ken Benoit 2016-02-03 13:49:53 UTC
Installed RHEL-6.8-20160125.0 on a test system and checked the dependencies for wpa_supplicant. chkconfig-0:1.3.49.5-1.el6 was listed as one of the dependencies. Marking as verified.

Comment 9 errata-xmlrpc 2016-05-10 19:30:49 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.

https://rhn.redhat.com/errata/RHBA-2016-0742.html