Bug report #3431
fix build from pure-git clone
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | nobody - | ||
Category: | Build/Install | ||
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 |
Description
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
History
#1 Updated by Sandro Santilli almost 14 years ago
BTW, the patch is in mailbox format, good for reading by git-am.
#2 Updated by Jürgen Fischer almost 14 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.