[GRASS-dev] [GRASS GIS] #3880: update/drop revision check after git switch

GRASS GIS trac at osgeo.org
Fri Jan 10 09:14:32 PST 2020


#3880: update/drop revision check after git switch
------------------------+---------------------------------
  Reporter:  hellik     |      Owner:  grass-dev@…
      Type:  defect     |     Status:  reopened
  Priority:  blocker    |  Milestone:  7.8.3
 Component:  Compiling  |    Version:  svn-releasebranch76
Resolution:             |   Keywords:  svn, git, revision
       CPU:  All        |   Platform:  All
------------------------+---------------------------------

Comment (by mmetz):

 Replying to [comment:6 neteler]:
 > Note: it lead to https://github.com/OSGeo/grass/pull/278

 The patch in PR278 for gisinit.c is masking a more serious problem with
 ctypes generated for Python 3.8: the string "$Revision$" is truncated to
 its first character "$", then "$" is compared to "$Revision$" which fails
 of course. Such truncations of strings to their first character must occur
 elsewhere too, which will only become apparent at a later stage when
 executing a Python module that uses ctypes, probably causing fairly
 cryptic errors.

 The test in gisinit.c as it is now always compares "$Revision$" to
 "$Revision$" (in GRASS C modules) which always succeeds which is bad. We
 could instead use GRASS_VERSION_STRING from include/version.h to catch the
 obvious cases: module x as been compiled against GRASS 7.y and is
 attempted to be used with GRASS 7.z.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3880#comment:7>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list