net-print/hplip fail at configure time when built against python 3.8 checking libusb-1.0/libusb.h usability... yes checking libusb-1.0/libusb.h presence... yes checking for libusb-1.0/libusb.h... yes checking whether /usr/bin/python3.8 version is >= 2.2... yes checking for /usr/bin/python3.8 version... 3.8 checking for /usr/bin/python3.8 platform... linux checking for /usr/bin/python3.8 script directory... ${prefix}/lib/python3.8/site-packages checking for /usr/bin/python3.8 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 !!! Please attach the following file when seeking support: !!! /var/tmp/portage/net-print/hplip-3.19.11/work/hplip-3.19.11/config.log * ERROR: net-print/hplip-3.19.11::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 125: Called src_configure * environment, line 3280: Called econf '--disable-cups11-build' '--disable-lite-build' '--disable-foomatic-rip-hplip-install' '--disable-shadow-build' '--disable-qt3' '--disable-qt4' '--disable-udev_sysfs_rules' '--with-cupsbackenddir=/usr/libexec/cups/backend' '--with-cupsfilterdir=/usr/libexec/cups/filter' '--with-docdir=/usr/share/doc/hplip-3.19.11' '--with-htmldir=/usr/share/doc/hplip-3.19.11/html' '--disable-libusb01_build' '--enable-hpcups-install' '--enable-cups-drv-install' '--disable-cups-ppd-install' '--enable-hpijs-install' '--enable-foomatic-drv-install' '--disable-foomatic-ppd-install' '--enable-hpps-install' '--disable-class-driver' '--disable-doc-build' '--disable-fax-build' '--enable-gui-build' '--enable-dbus-build' '--disable-pp-build' '--enable-policykit' '--enable-qt5' '--enable-scan-build' '--enable-network-build' * phase-helpers.sh, line 681: Called __helpers_die 'econf failed' * isolated-functions.sh, line 112: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=net-print/hplip-3.19.11::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-print/hplip-3.19.11::gentoo'`. * The complete build log is located at '/var/log/portage/build/net-print/hplip-3.19.11:20191125-015740.log.gz'. * The ebuild environment file is located at '/var/tmp/portage/net-print/hplip-3.19.11/temp/environment'. * Working directory: '/var/tmp/portage/net-print/hplip-3.19.11/work/hplip-3.19.11' * S: '/var/tmp/portage/net-print/hplip-3.19.11/work/hplip-3.19.11' Reproducible: Always
Created attachment 597532 [details] config.log
[I had the same problem on Arch Linux](https://aur.archlinux.org/packages/hplip-3.18/#comment-724715), and a solution was to add the output of `python-config --includes` to the `CFLAGS` before invoking `./configure`, e.g. to add CFLAGS+=" $(python-config --includes)" export CFLAGS to the script which does the compilation. `python-config --includes` returns, on my machine, `-I/usr/include/python3.8 -I/usr/include/python3.8`, and more special versions of it are `python3-config --includes` and `python3.8-config --includes`.
[...] > 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 > [...] [I had the same problem on Arch Linux](https://aur.archlinux.org/packages/hplip-3.18/#comment-724715), and a solution was to add the output of `python-config --includes` to the `CFLAGS` before invoking `./configure`, e.g. to add CFLAGS+=" $(python-config --includes)" export CFLAGS to the script which does the compilation. `python-config --includes` returns, on my machine, `-I/usr/include/python3.8 -I/usr/include/python3.8`, and more special versions of it are `python3-config --includes` and `python3.8-config --includes`.
Should be fixed in Git. Please reopen if there are still issues.