[asterisk-dev] [Code Review]: Remove development header dependency for asterisk version

wdoekes reviewboard at asterisk.org
Thu Jan 26 14:40:16 CST 2012



> On Jan. 26, 2012, 1:38 p.m., Matt Jordan wrote:
> > asterisk/trunk/runtests.py, lines 345-357
> > <https://reviewboard.asterisk.org/r/1695/diff/1/?file=23660#file23660line345>
> >
> >     You can't remove this yet.  We still check buildoptions for some tests.
> >     
> >     When a run-time mechanism for that is available, then this can be removed.

Or you could adapt those tests to fetch the source path from the binary, e.g.:

$ nm `which asterisk` | sed -e '/ t main$/!d;s/ .*//' | addr2line -e `which asterisk`
/home/walter/src/asterisk-1.8.x-WRITE/main/asterisk.c:3255


- wdoekes


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1695/#review5309
-----------------------------------------------------------


On Jan. 26, 2012, 10:39 a.m., Paul Belanger wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1695/
> -----------------------------------------------------------
> 
> (Updated Jan. 26, 2012, 10:39 a.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> Like the title says, we'll now use the asterisk binary over the development headers to figure out which version of asterisk is installed.
> 
> 
> Diffs
> -----
> 
>   asterisk/trunk/lib/python/asterisk/version.py 3015 
>   asterisk/trunk/runtests.py 3015 
> 
> Diff: https://reviewboard.asterisk.org/r/1695/diff
> 
> 
> Testing
> -------
> 
> local development box
> 
> 
> Thanks,
> 
> Paul
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120126/cf7bb6d9/attachment-0001.htm>


More information about the asterisk-dev mailing list