Bug #19529 autopush does not find /usr/bin/mail on Debian GNU/Linux
Submitted: 4 May 2006 7:47 Modified: 16 Mar 2009 11:13
Reporter: Ingo Strüwing Email Updates:
Status: Closed Impact on me:
None 
Category:Tests Severity:S3 (Non-critical)
Version:autopush version 2.20 OS:Linux (Debian GNU/Linux)
Assigned to: CPU Architecture:Any

[4 May 2006 7:47] Ingo Strüwing
Description:
autopush --build_host=milan1 --target_user=istruewing --background --email_addr=ingo@mysql.com

autopush: Starting at background. Please wait until you will get
a message that the program has been successfully started and
it returns to the command line.

autopush: Checking for needed tools and access to machines..

ERROR: No /bin/mail found in BUILD machine.
Cannot send messages, cannot start at background. Aborting.
You can force start with --force, but no mail will be sent.
Logs will remain in any case.

How to repeat:
autopush --use_bkd --build_host=debx86.mysql.com --build_user=istruewing --build_dir=/nfstmp1/ingo/autopush --target_user=istruewing --background --email_addr=ingo@mysql.com

But please use your own user, dir, and email settings.

Suggested fix:
Debian GNU/Linux has "mail" in /usr/bin, not in /bin.

So please search for "mail" in /bin *and* in /usr/bin.
[12 May 2006 12:08] Valeriy Kravchuk
Thank you for a problem report. From our debx86 box:

mysqldev@debx86:~$ ls /bin/mail
ls: /bin/mail: No such file or directory
mysqldev@debx86:~$ ls /usr/bin/mail
/usr/bin/mail
mysqldev@debx86:~$ uname -a
Linux debx86 2.4.27-1-386 #1 Fri Sep 3 06:24:46 UTC 2004 i686 GNU/Linux

So, yes, this should be fixed. 

/usr/bin/mail looks like a more reasonable multiplatform default pathname of a mail program anyway...
[16 Mar 2009 11:13] Daniel Fischer
autopush is not used anymore with bzr.