[mythtv-commits] Ticket #885: Add source revision number to version information

MythTV mythtv at cvs.mythtv.org
Sat Jan 14 10:04:28 UTC 2006


#885: Add source revision number to version information
------------------------------------------------+---------------------------
 Reporter:  willu.mailingLists at cse.unsw.edu.au  |        Owner:  ijr     
     Type:  patch                               |       Status:  reopened
 Priority:  minor                               |    Milestone:  0.19    
Component:  mythtv                              |      Version:          
 Severity:  low                                 |   Resolution:          
------------------------------------------------+---------------------------
Comment (by nigel):

 I think something like this is a great idea to reduce future support
 issues. Isaac, I hope we can eventially ban any bug reports which do
 '''not''' include an exhaustive, Subversion based, revision number!
 [[BR]]My thoughts:[[BR]][[BR]]
 1.Having the generated version stuff in libs/libmyth is logical, but I am
 concerned that this will mean some changes are not documented. ''e.g.''
 someone does a svn update in programs/mythbackend, but doesn't remake in
 libs. My thought is to have the makefile of every directory that builds a
 program to generate and link new version stuff each time we
 make[[BR]][[BR]]
 2.The shell script added by Hal may be a better way of doing it, but I
 disagree with using svn info, because its inaccuracy:[[BR]]''% cd
 Programming/MythTV/latest
 [[BR]]% svn info . 2>/dev/null | grep Revision | awk '{print $2}'
 [[BR]]8469
 [[BR]]% svnversion .
 [[BR]]8469:8603M''
 [[BR]]does not make up for any slight speed difference[[BR]][[BR]]
 3.Ideally, the file revisions for everything would be itemised by using
 the --version flag. ''e.g.
 [[BR]]mythfrontend --version
 [[BR]]API: 0.18.1.20050510-1
 [[BR]]mythfrontend source: 8317M
 [[BR]]libmyth source: 8605M
 [[BR]]libmythtv source: 8523M
 [[BR]]libmythavformat source: 8605
 [[BR]]libmythavcodec source: 8605''
 [[BR]]I suspect this wouldn't actually add much to bug reports,
 though[[BR]][[BR]]
 4.Another good thing would be listing a separate version for each module.
 Maybe ''--version'' could try a practice load of all modules with an
 option to get them to print out a version? Too hard for now, though.[[BR]]
 [[BR]]I will play around with creating a new top-level qmake include,
 version.pro. Isaac/Daniel, if this sounds like a good way to go, reassign
 this to me.

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/885>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list