Bug 1496184

Summary: The RPM sapconf does not have bc as part of the pre-requisites check
Product: Red Hat Enterprise Linux 7 Reporter: Ashlee Burch <aburch>
Component: sapconfAssignee: Than Ngo <than>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.4CC: mjuricek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 0.98-13 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 11:37:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ashlee Burch 2017-09-26 15:36:00 UTC
Description of problem:

Missing dependency for sapconf (rhel-sap-for-rhel-7-server-rpms), leading to the required 'bc' package not being installed when performed after a minimal installation environment.


Version-Release number of selected component (if applicable):

sapconf-0.98-11.el7.noarch.rpm


How reproducible:

Installing sapconf on a bare minimum RHEL 7 install will work but running /bin/sapconf will fail since bc is not part of the RHEL 7 minimal install

Steps to Reproduce:
1. Bare metal RHEL 7 Install
2. After installation completion /bin/sapconf fails as 'bc' is not part of the minimal install

Actual results:

- Command fails

Expected results:

- Command runs successfully


Additional info:
Details:

 The 'sapconf' package provides a single shell script which uses the
 'bc' command, as noted below:
 ------------------------------------------------------------
 $ rpm -qp sapconf-0.98-11.el7.noarch.rpm -ql
 warning: apconf-0.98-11.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
 /usr/bin/sapconf
 /usr/share/doc/sapconf-0.98
 /usr/share/doc/sapconf-0.98/COPYING
 /usr/share/doc/sapconf-0.98/README
 /usr/share/man/man8/sapconf.8.gz
 ------------------------------------------------------------
 $ rpm2cpio sapconf-0.98-11.el7.noarch.rpm  | grep -a -E '\bbc\b' 
         if (( $(bc <<< "${!i} < 0") )); then
                 (( $(bc <<< "${!i} > ${!req}") )) && eval $req=${!i} # new = max(current, recommended)
    if (( $(bc <<< "$s == $r") )) ; then
 ------------------------------------------------------------
 https://access.redhat.com/downloads/content/sapconf/0.98-11.el7/noarch/fd431d51/package 

Current Dependencies

 Current dependency requirements for 'sapconf' are only:
 ------------------------------------------------------------
 $ rpm -qp sapconf-0.98-11.el7.noarch.rpm --requires
 warning: sapconf-0.98-11.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
 /bin/bash
 /bin/bash
 rpmlib(CompressedFileNames) <= 3.0.4-1
 rpmlib(FileDigests) <= 4.6.0-1
 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
 tuned > 2.2.2
 tuned-profiles-sap
 uuidd
 yum-utils
 rpmlib(PayloadIsXz) <= 5.2-1
 ------------------------------------------------------------

 Which do not pull in the required 'bc' package:
 ------------------------------------------------------------
 # rpm -q bc --provides
 bc = 1.06.95-13.el7
 bc(x86-64) = 1.06.95-13.el7
 ------------------------------------------------------------

Comment 11 errata-xmlrpc 2018-04-10 11:37:16 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://access.redhat.com/errata/RHBA-2018:0721