Skip to content

Commit

Permalink
debian packaging: fix install of sip files on impish and unstable
Browse files Browse the repository at this point in the history
(cherry picked from commit 6c95845)
  • Loading branch information
jef-n committed Oct 27, 2021
1 parent 14c5caa commit 1011cc3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions debian/libqgis-dev.install.in
Expand Up @@ -9,5 +9,4 @@ usr/lib/libqgis_server.so
usr/lib/libqgisgrass?.so
usr/lib/libqgispython.so
usr/share/qgis/FindQGIS.cmake
usr/share/sip/qgis
#sid#usr/lib/python?/*-packages/qgis
#!sid !impish#usr/share/sip/qgis
8 changes: 8 additions & 0 deletions debian/rules
Expand Up @@ -329,6 +329,12 @@ override_dh_auto_install:
install -o root -g root -m 755 $(CURDIR)/debian/qgis.sh $(CURDIR)/debian/qgis/usr/bin/qgis
install -o root -g root -m 755 $(CURDIR)/debian/qgis.sh $(CURDIR)/debian/qgis/usr/bin/qgis_process

ifneq (,$(findstring $(DISTRIBUTION),"sid impish"))
mkdir -p $(CURDIR)/debian/libqgis-dev
cd $(CURDIR)/debian/tmp && find . -name "*.sip" | tar --remove-files -cf - -T - | tar -C $(CURDIR)/debian/libqgis-dev -xf - --xform 's,\./usr/lib/python./dist-packages/qgis,usr/share/sip/qgis,'
find $(CURDIR)/debian/tmp/ -depth -empty -type d -delete
endif

override_dh_missing:
dh_missing --fail-missing

Expand All @@ -349,7 +355,9 @@ override_dh_installmime:
override_dh_python3:
dh_python3
dh_python3 usr/share/qgis/grass/scripts
ifeq (,$(findstring $(DISTRIBUTION),"sid impish"))
dh_sip3 -ppython3-qgis
endif

override_dh_compress:
dh_compress --exclude=pdf
Expand Down

0 comments on commit 1011cc3

Please sign in to comment.