Bug 684779

Summary: Missing %post scriptlet dependencies
Product: [Fedora] Fedora Reporter: Panu Matilainen <pmatilai>
Component: apgAssignee: Kevin Fenzi <kevin>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: kevin
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-14 17:01:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Panu Matilainen 2011-03-14 13:44:00 UTC
Description of problem:
apg unconditionally uses 'grep' in its %post scriptlet, but does not have a dependency for it. This can result in scriptlet failures during installation.

Version-Release number of selected component (if applicable):
At least apg-2.3.0b-10.fc15 (f15, rawhide)

How reproducible:
Always

Steps to Reproduce:
1. yum --disablerepo="*" --enablerepo=rawhide --installroot=/home/test -y install apg
  
Actual results:
  Installing : apg-2.3.0b-10.fc15.x86_64                                  12/12 
/var/tmp/rpm-tmp.CTwIig: line 2: grep: command not found

Expected results:
No warnings/errors during install.

Additional info:
"Requires(post): grep" (or /bin/grep) should be added to ensure grep is always present when %post is run.

Comment 1 Kevin Fenzi 2011-03-14 17:01:00 UTC
Fixed in rawhide. 

If you think this is worth fixing in other branches I can do that too... feel free to re-open.