Bug#949864: qgis: FTBFS with default python3.8
Gianfranco Costamagna
locutusofborg at debian.org
Sun Jan 26 10:00:25 GMT 2020
Source: qgis
Version: 3.4.15+dfsg-1
Severity: serious
tags: patch
Hello, when built on experimental, the python3-config command needs a new flag to find correctly the python3.8 library (thanks Doko for the suggestion)
so, the following (unfortunately non-retro-compatible) patch, fixes the issue:
--- qgis-3.4.15+dfsg/debian/changelog 2020-01-22 05:57:39.000000000 +0100
+++ qgis-3.4.15+dfsg/debian/changelog 2020-01-25 22:17:14.000000000 +0100
@@ -1,3 +1,10 @@
+qgis (3.4.15+dfsg-1.1) experimental; urgency=medium
+
+ * Manually add --embed to rules file to fix FTBFS due to change in
+ behaviour of python3-config --ldflags (from doko) (Closes: #-1)
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org> Sat, 25 Jan 2020 22:17:14 +0100
+
qgis (3.4.15+dfsg-1) unstable; urgency=medium
* Move from experimental to unstable.
diff -Nru qgis-3.4.15+dfsg/debian/rules qgis-3.4.15+dfsg/debian/rules
--- qgis-3.4.15+dfsg/debian/rules 2019-11-11 09:07:24.000000000 +0100
+++ qgis-3.4.15+dfsg/debian/rules 2020-01-25 22:17:14.000000000 +0100
@@ -93,7 +93,7 @@
-DWITH_SERVER_PLUGINS=TRUE \
-DWITH_QWTPOLAR=FALSE \
-DQT_PLUGINS_DIR=$(QT_PLUGINS_DIR) \
- -DPYTHON_LIBRARY=$(shell python3-config --ldflags | sed -e 's\#-L\(.*\) -L/usr/lib -l\([^ ]*\) .*$$\#\1/lib\2.so\#')
+ -DPYTHON_LIBRARY=$(shell python3-config --ldflags --embed | sed -e 's\#-L\(.*\) -L/usr/lib -l\([^ ]*\) .*$$\#\1/lib\2.so\#')
ifneq ($(SHA),)
CMAKE_OPTS += -DSHA=$(SHA)
More information about the Pkg-grass-devel
mailing list