Bug#949864: qgis: FTBFS with default python3.8

Sebastiaan Couwenberg sebastic at xs4all.nl
Sun Jan 26 10:22:20 GMT 2020


Control: tags -1 pending

On 1/26/20 11:00 AM, Gianfranco Costamagna wrote:
> 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:

We just need to add a test for python3 >= 3.8 and set PYTHON_LIBRARY
accordingly.

> --- 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)

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



More information about the Pkg-grass-devel mailing list