Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 954391 - sys-power/nut-2.8.2-r1 fails to build with python3_13 and USE=+python
Summary: sys-power/nut-2.8.2-r1 fails to build with python3_13 and USE=+python
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-25 10:15 UTC by Kim B. Sindalsen
Modified: 2025-04-25 18:57 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kim B. Sindalsen 2025-04-25 10:15:10 UTC
sys-power/nut-2.8.2-r1 with USE=python relies on telnetlib which was deprecated in Python3.11 and removed in Python3.13 - hence fails to build.

checking for OpenSSL version via pkg-config... 3.5.0 found
checking for OpenSSL cflags...
checking for OpenSSL ldflags... -lssl -lcrypto
checking for openssl/ssl.h... yes
checking for SSL_CTX_new... yes
checking whether to enable SSL support... yes (OpenSSL)
checking whether to enable libwrap (tcp-wrappers) support... no
checking for libltdl cflags...
checking for libltdl ldflags...
checking for ltdl.h... yes
checking for library containing lt_dlinit... -lltdl
checking whether to enable libltdl (Libtool dlopen abstraction) support... yes
checking whether to build nut-scanner... yes
checking whether to build CGI programs... no
checking if we can and should install NUT-Monitor desktop application... no
checking if we can and should install PyNUT module... Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import telnetlib
ModuleNotFoundError: No module named 'telnetlib'
configure: error: Prerequisites for PyNUT not found, can't install as required

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-power/nut-2.8.2-r2/work/nut-2.8.2/config.log
 * ERROR: sys-power/nut-2.8.2-r2::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  136:  Called src_configure
 *             environment, line 2596:  Called econf '--datadir=/usr/share/nut' '--datarootdir=/usr/share/nut' '--disable-static' '--disable-strip' '--disable-Werror' '--sysconfdir=/etc/nut' '--with-dev' '--with-drvpath=/lib64/nut' '--with-group=nut' '--with-htmlpath=/usr/share/nut/html' '--with-logfacility=LOG_DAEMON' '--with-statepath=/run/nut' '--with-systemdsystemunitdir=/usr/lib/systemd/system' '--with-systemdtmpfilesdir=/usr/lib/tmpfiles.d' '--with-udev-dir=/usr/lib/udev' '--with-user=nut' '--without-powerman' '--without-python' '--without-python2' '--with-altpidpath=/run/nut' '--with-pidpath=/run/nut' '--without-cgi' '--without-gpio' '--without-linux_i2c' '--without-freeipmi' '--without-ipmi' '--without-nut_monitor' '--with-pynut' '--without-serial' '--with-snmp' '--with-ssl' '--without-libsystemd' '--without-wrap' '--with-usb' '--with-neon' '--without-avahi' '--with-doc=man' '--with-python3=/usr/bin/python3.13'
 *        phase-helpers.sh, line  647:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  121:  Called die
 * The specific snippet of code:
 *              die "$@"
Comment 1 Kim B. Sindalsen 2025-04-25 10:15:48 UTC
Sorry - meant sys-power/nut-2.8.2-r2