[Git][debian-gis-team/grass][master] Add patch to use GRASS version for non-git builds.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Tue Oct 25 18:17:02 BST 2022



Bas Couwenberg pushed to branch master at Debian GIS Project / grass


Commits:
12a8192c by Bas Couwenberg at 2022-10-25T18:43:17+02:00
Add patch to use GRASS version for non-git builds.

- - - - -


3 changed files:

- debian/changelog
- debian/patches/series
- + debian/patches/version-check.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+grass (8.2.0-3) UNRELEASED; urgency=medium
+
+  * Add patch to use GRASS version for non-git builds.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Tue, 25 Oct 2022 18:42:55 +0200
+
 grass (8.2.0-2) unstable; urgency=medium
 
   * Bump Standards-Version to 4.6.1, no changes.


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@ pager
 instdir
 no-fail-html.patch
 jquery.patch
+version-check.patch


=====================================
debian/patches/version-check.patch
=====================================
@@ -0,0 +1,16 @@
+Description: Use GRASS version for non-git builds.
+ Value is used in version check which fails when the value changes.
+Author: Bas Couwenberg <sebastic at debian.org>
+Bug: https://github.com/OSGeo/grass/issues/2610
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -139,7 +139,7 @@ changequote([,])
+ GRASS_VERSION_GIT="exported"
+ # get git short hash + date of last change in GRASS headers
+ # (and anything else in include)
+-GRASS_HEADERS_GIT_HASH=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'`
++GRASS_HEADERS_GIT_HASH="${GRASS_VERSION_NUMBER}"
+ GRASS_HEADERS_GIT_DATE=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'`
+ AC_PATH_PROG(GIT, git, no)
+ if test "$GIT" != "no" ; then



View it on GitLab: https://salsa.debian.org/debian-gis-team/grass/-/commit/12a8192cee276ec028f99e7d76af285c2c347904

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/grass/-/commit/12a8192cee276ec028f99e7d76af285c2c347904
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20221025/581ecde1/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list