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

Paul Belanger reviewboard at asterisk.org
Thu Jan 26 14:44:46 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.
> 
> wdoekes wrote:
>     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
>
> 
> Paul Belanger wrote:
>     boo!
>     
>     Let me see what I can come up with.

@wdoekes: Another options is to add the build info to the asterisk -V command.  I'll do a quick google to see what other project do this.


- Paul


-----------------------------------------------------------
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/abda395c/attachment.htm>


More information about the asterisk-dev mailing list