[asterisk-bugs] [Asterisk 0016416]: [patch] Portability tweaks to contrib/scripts/safe_asterisk

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jan 11 21:21:41 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16416 
====================================================================== 
Reported By:                bklang
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   16416
Category:                   Core/Portability
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     closed
Target Version:             1.6.1.14
Asterisk Version:           SVN 
JIRA:                       SWP-510 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 233774 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-12-08 17:03 CST
Last Modified:              2010-01-11 21:21 CST
====================================================================== 
Summary:                    [patch] Portability tweaks to
contrib/scripts/safe_asterisk
Description: 
The attached patch addresses several minor issues that have to do with
improving the script's operation on non-Linux platforms:

1) Use mail instead of mailx (the latter supports specifying the subject
with -s)
2) Change several test cases to work with old versions of test
3) Change the invocation of the date(1) command to work with non-GNU
versions
4) Fix some minor bugs (such as the way id(1) is called and the order of
shell output redirects)
5) Improve the error message to be more helpful when/if Asterisk crashes.

There may be other portability issues, but this script has been tested on
OSX, Linux and OpenSolaris and works on those platforms.
====================================================================== 

---------------------------------------------------------------------- 
 (0116490) svnbot (reporter) - 2010-01-11 21:21
 https://issues.asterisk.org/view.php?id=16416#c116490 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 239308

_U  trunk/
U   trunk/contrib/scripts/safe_asterisk

------------------------------------------------------------------------
r239308 | tilghman | 2010-01-11 21:21:41 -0600 (Mon, 11 Jan 2010) | 15
lines

Merged revisions 239307 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r239307 | tilghman | 2010-01-11 21:18:36 -0600 (Mon, 11 Jan 2010) | 8
lines
  
  Portability and other fixes for the safe_asterisk script
  (closes issue https://issues.asterisk.org/view.php?id=16416)
   Reported by: bklang
   Patches: 
         safe_asterisk-compat-1.patch uploaded by bklang (license 919)
         20100106__issue16416__trunk.diff.txt uploaded by tilghman
(license 14)
   Tested by: bklang
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=239308 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-11 21:21 svnbot         Checkin                                      
2010-01-11 21:21 svnbot         Note Added: 0116490                          
======================================================================




More information about the asterisk-bugs mailing list