Bug 713704

Summary: pdksh should depend on grep
Product: Red Hat Enterprise Linux 5 Reporter: Jan Stodola <jstodola>
Component: pdkshAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED NEXTRELEASE QA Contact: qe-baseos-tools-bugs
Severity: low Docs Contact:
Priority: low    
Version: 5.6CC: atodorov, mfranc
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-15 15:59:24 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 Jan Stodola 2011-06-16 10:08:16 UTC
Description of problem:
pdksh uses 'grep' in its installation scriplets, but the package doesn't depend on grep:

[root@rtt6 ~]# rpm -q pdksh
pdksh-5.2.14-36.el5
[root@rtt6 ~]# rpm -q --scripts pdksh | grep grep
     if ! grep -q '^/bin/ksh$' /etc/shells ; then
if ! grep -q '^/usr/bin/ksh$' /etc/shells ; then
if ! grep -q '^/usr/bin/pdksh$' /etc/shells ; then
if ! grep '^/bin/ksh$' /etc/shells > /dev/null; then
[root@rtt6 ~]# rpm -q --requires pdksh | grep grep
[root@rtt6 ~]#

This causes error messages in some cases:
...
  Installing     : libtermcap                            11/13 
  Installing     : bash                                  12/13 
  Installing     :  dksh                                 13/13 
/var/tmp/rpm-tmp.21381: line 4: grep: command not found
/var/tmp/rpm-tmp.21381: line 8: grep: command not found
/var/tmp/rpm-tmp.21381: line 11: grep: command not found


Version-Release number of selected component (if applicable):
pdksh-5.2.14-36.el5

How reproducible:
always

Steps to Reproduce:
1. yum --installroot=/root/new_root install pdksh
  
Actual results:
error messages while installing the package, pdksh doesn't depend on grep

Expected results:
no errors during installation

Comment 1 RHEL Program Management 2011-09-23 00:10:55 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.

Comment 2 RHEL Program Management 2012-06-12 01:03:30 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.

Comment 4 Michal Hlavinka 2013-03-15 15:59:24 UTC
I am sorry, but it is now too late in the RHEL-5 release cycle.
RHEL-5.10 (the next RHEL-5 minor release) is going to be the first
production phase 2 [1] release of RHEL-5. Since phase 2 we'll be
addressing only security and critical issues.
This issue should fixed in RHEL-6 therefore I am closing the bug as
NEXTRELEASE.

[1] https://access.redhat.com/support/policy/updates/errata/