Bug 502443

Summary: /usr/share/ocf/resource.d/heartbeat/.ocf-binaries sets $MAILCMD wrong
Product: [Fedora] Fedora EPEL Reporter: Robert Scheck <redhat-bugzilla>
Component: heartbeatAssignee: Kevin Fenzi <kevin>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: el5CC: kevin, robert.scheck
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-12 18:26:54 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 Robert Scheck 2009-05-25 10:22:01 UTC
Description of problem:
/usr/share/ocf/resource.d/heartbeat/.ocf-binaries sets $MAILCMD wrong, change:

> : ${MAILCMD:=mailx}

please to:

> : ${MAILCMD:=mail}

Please do not use an absolute path, $PATH is available there. Issue also seems
to affect Rawhide.

Version-Release number of selected component (if applicable):
heartbeat-2.1.4-6.el5

How reproducible:
Everytime, see above.

Actual results:
/usr/share/ocf/resource.d/heartbeat/.ocf-binaries sets $MAILCMD wrong

Expected results:
Correct $MAILCMD set by /usr/share/ocf/resource.d/heartbeat/.ocf-binaries.

Comment 1 Kevin Fenzi 2009-06-06 05:41:19 UTC
I can change this, but why is 'mailx' wrong? Due to the added dependency on redhat-lsb?

Comment 2 Robert Scheck 2009-06-06 12:15:18 UTC
I did a "yum install heartbeat", no dependency here did mailx bring in:

# which mailx
/usr/bin/which: no mailx in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
# 

# rpm -q redhat-lsb
package redhat-lsb is not installed
# 

If redhat-lsb provides a symlink for mailx, it should be required, because
the package is not necessarily installed.

Comment 3 Kevin Fenzi 2009-06-06 21:13:04 UTC
Looks like just adding a 'BuildRequires: mailx' fixes this. It then sees /bin/mail as the right command and should work on both Fedora and EPEL. :) 

I will push this fix once the libnet stuff is ready.

Comment 5 Robert Scheck 2009-06-12 18:26:54 UTC
Yes, seems to work here. Thank you.