Bug 501357

Summary: postinstall scriptlet of oprofile fails
Product: [Fedora] Fedora Reporter: Bruce Jerrick <bmj001>
Component: oprofileAssignee: William Cohen <wcohen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: wcohen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.9.4-12.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 507556 (view as bug list) Environment:
Last Closed: 2009-08-11 22:34:36 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:

Description Bruce Jerrick 2009-05-18 17:41:43 UTC
Description of problem:
The postinstall scriptlet of oprofile fails during installation
of Fedora 11 (rawhide).

Version-Release number of selected component (if applicable):
oprofile-0.9.4-6.fc11

How reproducible:
Depends on the exact package mix.  Always happens if oprofile
gets installed before shadow-utils .

Steps to Reproduce:
1. Install Fedora 11 OS, with oprofile included.
2. grep -A 2 "Installing oprofile" /root/install.log
  
Actual results:
Installing oprofile-0.9.4-6.fc11.i586
/var/tmp/rpm-tmp.aoVzhx: line 1: groupadd: command not found
/var/tmp/rpm-tmp.aoVzhx: line 3: useradd: command not found

Expected results:
No error message in /root/install.log .

Additional info:
Examination of the postinstall scriptlet also shows the problem.
Fix is to add these to oprofile.spec:

    Requires(pre): /usr/sbin/groupadd
    Requires(pre): /usr/sbin/useradd

Comment 1 Bug Zapper 2009-06-09 16:03:44 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 William Cohen 2009-07-16 19:08:22 UTC
Added the following line to the oprofile.spec:

Requires(pre): shadow-utils

oprofile-0.9.4-12 being put through koji build system for F-10, F-11, and rawhide.

Comment 3 Fedora Update System 2009-07-16 20:19:19 UTC
oprofile-0.9.4-12.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/oprofile-0.9.4-12.fc11

Comment 4 William Cohen 2009-07-20 15:11:22 UTC
Could someone check that the revised oprofile rpms build for F-10/F-11/rawhide resolve this problem?

Comment 5 Fedora Update System 2009-07-22 21:41:12 UTC
oprofile-0.9.4-12.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update oprofile'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-7806

Comment 6 Fedora Update System 2009-08-11 22:34:31 UTC
oprofile-0.9.4-12.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.