hplip fails to build (python header missing)
Hello,
I'm trying to build hplip on 3.11 (from git aports, not available for 3.11 yet). It fails with:
libtool: compile: gcc "-DPACKAGE_NAME=\"HP Linux Imaging and Printing\"" "-DPACKAGE_TARNAME=\"hplip\"" "-DPACKAGE_VERSION=\"3.19.11\"" "-DPACKAGE_STRING=\"HP Linux Imaging and Printing 3.19.11\"" "-DPACKAGE_BUGREPORT=\"3.19.11\"" "-DPACKAGE_URL=\"\"" "-DPACKAGE=\"hplip\"" "-DVERSION=\"3.19.11\"" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 "-DLT_OBJDIR=\".libs/\"" -DHAVE_LIBDL=1 -DHAVE_PTHREAD_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_UINT32_T=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBNETSNMP=1 -DHAVE_NET_SNMP_NET_SNMP_CONFIG_H=1 -DHAVE_CUPS_CUPS_H=1 -DHAVE_LIBUSB_1_0_LIBUSB_H=1 -I. -Iip -Iio/hpmud -Iscan/sane -Iprnt/hpijs -Icommon/ -Os -fomit-frame-pointer -I/usr/include/python2.7 -Iprotocol -Os -fomit-frame-pointer "-DCONFDIR=\"/etc/hp\"" -MT cupsext_la-cupsext.lo -MD -MP -MF .deps/cupsext_la-cupsext.Tpo -c prnt/cupsext/cupsext.c -fPIC -DPIC -o .libs/cupsext_la-cupsext.o
prnt/cupsext/cupsext.c:77:10: fatal error: Python.h: No such file or directory
77 | #include <Python.h>
| ^~~~~~~~~~
compilation terminated.
make: *** [Makefile:5591: cupsext_la-cupsext.lo] Error 1
make: *** Waiting for unfinished jobs....
mv -f .deps/libapdk_la-utils.Tpo .deps/libapdk_la-utils.Plo
>>> ERROR: hplip: build failed
>>> hplip: Uninstalling dependencies...
(1/16) Purging .makedepends-hplip (20200131.064933)
(2/16) Purging libjpeg-turbo-dev (2.0.4-r0)
(3/16) Purging net-snmp-dev (5.8-r3)
(4/16) Purging net-snmp-agent-libs (5.8-r3)
(5/16) Purging cups-dev (2.2.12-r1)
(6/16) Purging libgcrypt-dev (1.8.5-r0)
(7/16) Purging gnutls-dev (3.6.10-r0)
(8/16) Purging gnutls-c++ (3.6.10-r0)
(9/16) Purging libusb-dev (1.0.23-r0)
(10/16) Purging gawk (5.0.1-r0)
(11/16) Purging python3-dev (3.8.1-r0)
(12/16) Purging libgpg-error-dev (1.36-r2)
(13/16) Purging nettle-dev (3.5.1-r0)
(14/16) Purging gmp-dev (6.1.2-r1)
(15/16) Purging libgmpxx (6.1.2-r1)
(16/16) Purging libtasn1-dev (4.15.0-r0)
Executing busybox-1.31.1-r9.trigger
OK: 3973 MiB in 1056 packages
Even though python3-dev is correctly installed as dependency prior the build.
Any ideas?