[postgis-tickets] [PostGIS] #3863: git builds always need upgrade

PostGIS trac at osgeo.org
Sat Sep 23 12:03:51 PDT 2017


#3863: git builds always need upgrade
----------------------+---------------------------
  Reporter:  komzpa   |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 2.4.0
 Component:  postgis  |    Version:  trunk
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by robe):

 okay not seeing an issue with extension building.

 I used winnie's postgis 2.4.0alpha build and SELECT
 postgis_full_version();  showed alpha and the r number.

 Then I copied over the latest dev build and did


 {{{
 ALTER EXTENSION postgis UPDATE;
 }}}


 {{{
 POSTGIS="2.4.0dev r15800" PGSQL="100" GEOS="3.7.0dev-CAPI-1.11.0 81c6d4a"
 PROJ="Rel. 4.9.1, 04 March 2015" GDAL="GDAL 2.2.1, released 2017/06/23"
 LIBXML="2.7.8" LIBJSON="0.12" LIBPROTOBUF="1.2.1" RASTER
 }}}


 Her PostGIS 2.4.0 source for builds are pulled from git.osgeo.org/gogs


 I looked at the tarball for PostGIS 2.4.0rc1 that debbie built which I
 used git.osgeo.org/gogs to build from and that has the revision number in
 it as well.


 Komzzpa -- what does the file postgis_svn_revision.h read?  I suspect in
 your case it reads 0

 which means the routine that pulls the revision number
 utils/svn_repo_revision.pl  is not working for you.

 There is logic to read both svn and git in that script.  Looks like for
 git it uses git log


 {{{
 ${git_exe}\" log --grep=git-svn -1 | grep git-svn | cut -d@ -f2 | cut -d'
 ' -f1
 }}}

 Note that with each mirror this gets tacked on to the git log

 -- this is the last one
 {{{
 git-svn-id: http://svn.osgeo.org/postgis/trunk@15802 b70326c6-7e19-0410
 -871a-916f4a2858ee
 }}}


 So that command to parse out the number after @ probably isn't working for
 you.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3863#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list