Bug report #3431

fix build from pure-git clone

Added by Sandro Santilli over 10 years ago. Updated over 10 years ago.

Assignee:nobody -
Affected QGIS version: Regression?:No
Operating System:Debian Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:13491


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


#1 Updated by Sandro Santilli over 10 years ago

BTW, the patch is in mailbox format, good for reading by git-am.

#2 Updated by Jürgen Fischer over 10 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

fixed in 975b0fc7 (SVN r15066). surprisingly git doesn't have a builtin sed - or I just didn't find it yet.

Also available in: Atom PDF