[openib-general] Initial Plan for userspace git trees

Eitan Zahavi eitan at mellanox.co.il
Mon Nov 27 05:15:40 PST 2006


Michael S. Tsirkin wrote:
> Mutt Label Removed By VIM
>   
>>>> - Use git-describe to get symbolic version name. This finds the closest tag,
>>>>   so you'll get vofed-1.1 if that's what you checked out.
>>>>   Useful for e.g. opensm Makefile.
>>>>     
>>>>         
>>> What do you mean? To use this in Makefile as "version generator"
>>> (instead of osm_svn_revision.h stuff)?
>>>       
>> This is a good point.
>> I think we need a standardized method for each of our libs be providing 
>> a "version" function.
>> We then should be able to automatically update that version with both 
>> the "lib version" and the git version (last commit date?).
>>     
>
> IMO lib versioning is not something you should do automatically - versions there
> have meaning for backward compatibility etc.
>
> For e.g. opensm, git-describe probably does exectly what you want already.
>   
Only the last change date is supposed to be automatic. The lib version 
is something originating in
the automake configure.in or in many cases uses a source file: 
lib<package>.ver





More information about the general mailing list