Bug 507556

Summary: postinstall scriptlet of oprofile fails
Product: Red Hat Enterprise Linux 6 Reporter: Alexander Todorov <atodorov>
Component: oprofileAssignee: William Cohen <wcohen>
Status: CLOSED CURRENTRELEASE QA Contact: Alexander Todorov <atodorov>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: rwilliam, syeghiay, wcohen
Target Milestone: beta   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: oprofile-0.9.5-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 501357 Environment:
Last Closed: 2010-07-02 19:40:20 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 Alexander Todorov 2009-06-23 10:15:33 UTC
+++ This bug was initially created as a clone of Bug #501357 +++

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

--- Additional comment from fedora-triage-list on 2009-06-09 12:03:44 EDT ---


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 Alexander Todorov 2009-06-23 10:17:18 UTC
happens when installing @everything

Comment 3 William Cohen 2009-07-16 19:11:59 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. 

The fix for bz#501357 should also fix this.

Comment 4 William Cohen 2009-08-17 19:57:28 UTC
Could someone verify oprofile-0.9.4-12 fixes this problem.

Comment 5 William Cohen 2009-09-23 13:31:10 UTC
This correction is in the RHEL6 builds now. Some just needs to verifies that the patch fixes the problem.

Comment 6 releng-rhel@redhat.com 2009-11-02 23:13:30 UTC
Fixed in 'oprofile-0.9.5-1.el6', included in compose 'RHEL6.0-20091102.0'.
Moving to ON_QA.

Comment 8 releng-rhel@redhat.com 2010-07-02 19:40:20 UTC
Red Hat Enterprise Linux Beta 2 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.