[QGIS-trac] [Quantum GIS] #3431: fix build from pure-git clone

Quantum GIS qgis at qgis.org
Sat Jan 22 06:56:10 EST 2011


#3431: fix build from pure-git clone
--------------------------------+-------------------------------------------
   Reporter:  strk              |              Owner:  nobody       
       Type:  bug               |             Status:  new          
   Priority:  minor: annoyance  |          Milestone:  Version 1.7.0
  Component:  Build/Install     |            Version:  Trunk        
   Keywords:                    |   Platform_version:               
   Platform:  Debian            |           Must_fix:  No           
Status_info:  0                 |  
--------------------------------+-------------------------------------------
 When fetching qgis from github directly there's no way git-svn can obtain
 the svn version number. This is instead attempted by CMake.

 The attached patch uses (when source is a git repo) only the git history,
 w/out involving svn, and extracts the svn revision id from git commit log
 (metadata).

 Only works if git history didn't diverge from svn history for more than 10
 commits.

 Patch is here: http://strk.keybit.net/tmp/0001-Make-it-possible-to-
 generate-qgissvnversion.h-from-a.patch

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3431>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list