[asterisk-bugs] [JIRA] Commented: (ASTERISK-20483) Allow Asterisk to report git SHAs in version string.
Shaun Ruffell (JIRA)
noreply at issues.asterisk.org
Thu Sep 27 11:34:27 CDT 2012
[ https://issues.asterisk.org/jira/browse/ASTERISK-20483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197674#comment-197674 ]
Shaun Ruffell commented on ASTERISK-20483:
------------------------------------------
Andrew, that's a great idea. I wasn't aware that asterisk-git-howto was in the repo). I'll add a new patch for that in the next day or so.
It's already questionable whether I should have added the check for git in configure.ac in the same patch where I edit build_tools/make_version. So it might be good if I break this up into three logical changes? [1/3] configure.ac checks for git [2/3] build_tools adds git version information [3/3] update documentation on using git with Asterisk ?
> Allow Asterisk to report git SHAs in version string.
> ----------------------------------------------------
>
> Key: ASTERISK-20483
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-20483
> Project: Asterisk
> Issue Type: Improvement
> Security Level: None
> Components: Core/BuildSystem
> Affects Versions: SVN
> Reporter: Shaun Ruffell
> Severity: Minor
> Attachments: 0001-build_tools-Allow-Asterisk-to-report-git-SHAs-in-ver.patch
>
>
> From patch to be attached:
> {noformat}
> Make git more attractive for managing work-in-progress. Especially
> convenient when a potential patch set needs to be tested on multiple
> platforms since one can use git to keep all the test environments in
> sync independent of a subversion server.
> Now the Asterisk version will show the exact git SHA5 that was used
> when building (still appended by "M" if there are local
> modifications) from a git clone of the Asterisk repository so the
> developer can more easily know what is actually under test.
> You will now get this:
> $ asterisk -V
> Asterisk GIT-1698298
> Instead of this:
> $ asterisk -V
> Asterisk UNKNOWN__and_probably_unsupported
> This has zero impact for those not using git with the exception of
> an extra test in the configure script to gather the path of the git.
> This is necessary to prevent "sudo make install" from failing since
> git may not be in the path in make's shell environment.
> {noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list