[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#953095: hplip: FTBFS with python3.8 as default



Source: hplip
Version: 3.20.2+dfsg0-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)

https://buildd.debian.org/status/fetch.php?pkg=hplip&arch=amd64&ver=3.20.2%2Bdfsg0-1%2Bb1&stamp=1583222882&raw=0
> checking whether python3 version is >= 2.2... yes
> checking for python3 version... 3.8
> checking for python3 platform... linux
> checking for python3 script directory... ${prefix}/lib/python3.8/site-packages
> checking for python3 extension module directory... ${exec_prefix}/lib/python3.8/site-packages
> checking for path to Python.h... "using /usr/include/python3.8 ....  python3.8/Python.h"
> checking python3.8/Python.h usability... no
> checking python3.8/Python.h presence... no
> checking for python3.8/Python.h... no
> checking python3.8mu/Python.h usability... no
> checking python3.8mu/Python.h presence... no
> checking for python3.8mu/Python.h... no
> checking python3.8m/Python.h usability... no
> checking python3.8m/Python.h presence... no
> checking for python3.8m/Python.h... no
> configure: error: cannot find python-devel support
...
> In file included from /usr/include/python3.8/pystate.h:129,
>                  from /usr/include/python3.8/genobject.h:11,
>                  from /usr/include/python3.8/Python.h:121,
>                  from conftest.c:68:
> /usr/include/python3.8/cpython/pystate.h:9:10: fatal error: cpython/initconfig.h: No such file or directory
>     9 | #include "cpython/initconfig.h"
>       |          ^~~~~~~~~~~~~~~~~~~~~~

It looks as though this might be because HPLIP is trying to
use #include <python3.8/Python.h>, but should instead be adding
-I/usr/include/python3.8 to the compiler flags and using
#include <Python.h>?

    smcv


Reply to: