Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701166 - net-print/hplip-3.19.11 will fail to build against python 3.8
Summary: net-print/hplip-3.19.11 will fail to build against python 3.8
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: python3.8-compat
  Show dependency tree
 
Reported: 2019-11-25 20:28 UTC by Francesco Riosa
Modified: 2020-01-14 13:32 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (config.log,65.33 KB, text/x-log)
2019-11-25 20:29 UTC, Francesco Riosa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Riosa 2019-11-25 20:28:22 UTC
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
Comment 1 Francesco Riosa 2019-11-25 20:29:18 UTC
Created attachment 597532 [details]
config.log
Comment 2 dreieck 2020-01-14 13:32:05 UTC
[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`.
Comment 3 dreieck 2020-01-14 13:32:40 UTC
[...]
> 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`.