Skip to content
Browse files

debian packaging: depend on grass abi

  • Loading branch information
jef-n committed Sep 27, 2017
1 parent 8c3939e commit a7d1a66e5dd0dccf75d276890fd969e6c07519c9
Showing with 4 additions and 1 deletion.
  1. +2 −1 debian/
  2. +2 −0 debian/rules
@@ -273,7 +273,8 @@ Depends:
qgis-provider-grass (= ${binary:Version}),
Description: GRASS plugin for QGIS
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
@@ -54,6 +54,7 @@ QGIS_PATCH=$(shell sed -ne 's/SET(CPACK_PACKAGE_VERSION_PATCH "\([0-9]*\)")/\1/p
GRASS=grass$(subst .,,$(shell pkg-config --modversion grass|cut -d. -f1,2))
GRASSVER=$(subst .,,$(shell pkg-config --modversion grass|cut -d. -f1))
GRASSABI=$(subst .,,$(shell pkg-config --modversion grass))

This comment has been minimized.

Copy link

sebastic Sep 28, 2017


Please note that the virtual package for GRASS release candidates is: <MAJOR><MINOR><PATCH>-<RC> (e.g. 722-1 for 7.2.2-RC1).

If the qgis package is never built with GRASS RCs the lack of support for its ABI package is fine, otherwise the logic used in the libgdal-grass package can be used:

GRASS_ABI=grass$(subst .,,$(shell pkg-config --modversion grass | cut -d. -f1,2,3 | sed -e 's/RC/-/'))

This comment has been minimized.

Copy link

jef-n Sep 28, 2017

Author Member

Thanks. See ebec25f

-G Ninja \
@@ -187,6 +188,7 @@ $(2): $(1)
-e "s/\{QGIS_ABI\}/$(QGIS_ABI)/g" \
-e "s/\{GRASS\}/$(GRASS)/g" \
-e "s/\{GRASSVER\}/$(GRASSVER)/g" \
-e "s/\{GRASSABI\}/$(GRASSABI)/g" \
$$^ >$$@

0 comments on commit a7d1a66

Please sign in to comment.
You can’t perform that action at this time.