Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 743874

Summary: net-voip/telepathy-gabble-0.18.4-r5 w/o IUSE="plugins"(?): AttributeError: '_io.TextIOWrapper' object has no attribute 'reconfigure'
Product: Gentoo Linux Reporter: Bob Johnson <bob>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: UNCONFIRMED ---    
Severity: normal CC: iordanov, mlspamcb, mplichta, phobosk, rossi.f
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: removal on 2024-05-06
Package list:
Runtime testing required: ---
Attachments: Build log

Description Bob Johnson 2020-09-21 04:49:35 UTC
Created attachment 661731 [details]
Build log

The plugins USE flag must be enabled for net-voip/telepathy-gabble-0.18.4-r2 or it fails to build with the following message:

make[2]: Leaving directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4/docs'
Making all in tools
make[2]: Entering directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4/tools'
sed -e 's![@]abs_top_builddir[@]!/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4!' telepathy-glib-env.in > telepathy-glib-env
test -e ./libglibcodegen.py && touch ./libglibcodegen.py
chmod +x telepathy-glib-env
test -e ./c-constants-gen.py && touch ./c-constants-gen.py
test -e ./glib-client-marshaller-gen.py && touch ./glib-client-marshaller-gen.py
test -e ./glib-ginterface-gen.py && touch ./glib-ginterface-gen.py
test -e ./glib-gtypes-generator.py && touch ./glib-gtypes-generator.py
test -e ./glib-interfaces-gen.py && touch ./glib-interfaces-gen.py
make[2]: Leaving directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4/tools'
Making all in extensions
make[2]: Entering directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4/extensions'
/usr/bin/python3.6 ../tools/xincludator.py \
        all.xml > _gen/all.xml.tmp && mv _gen/all.xml.tmp _gen/all.xml
Traceback (most recent call last):
  File "../tools/xincludator.py", line 8, in <module>
    sys.stdout.reconfigure(encoding='utf-8')
AttributeError: '_io.TextIOWrapper' object has no attribute 'reconfigure'
make[2]: *** [Makefile:612: _gen/all.xml] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4/extensions'
make[1]: *** [Makefile:376: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4'
make: *** [Makefile:306: all] Error 2
 * ERROR: net-voip/telepathy-gabble-0.18.4-r2::gentoo failed (compile phase):
 *   emake failed
 * 

# emerge --info
Portage 3.0.4 (python 3.7.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.31-r6, 5.4.60-gentoo x86_64)
=================================================================
System uname: Linux-5.4.60-gentoo-x86_64-Intel-R-_Core-TM-_i5-3570_CPU_@_3.40GHz-with-gentoo-2.7
KiB Mem:    32928780 total,   7153544 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 21 Sep 2020 02:45:01 +0000
Head commit of repository gentoo: 7f5cf9aa1d7e7ccf155a867082deaf0f52c652ec
Timestamp of repository stefantalpalaru: Sun, 20 Sep 2020 13:05:23 +0000
Head commit of repository stefantalpalaru: 24ed9a79a87c23107dcf41d9d7e5c41be79efbcf

sh bash 5.0_p18
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r2::gentoo, 3.6.11-r2::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo, 2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage/
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

local
    location: /usr/local/portage
    masters: gentoo

stefantalpalaru
    location: /var/db/repos/stefantalpalaru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/stefantalpalaru.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE vmware"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/vmware-installer"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 apache2 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups curl dbus declarative doc dri dts dvd dvdr elogind emboss encode examples exif flac fontconfig fortran gcj gd gdbm gif gtk gtk-doc gui handbook iconv icu ipv6 jack java jbig jpeg kde kipi kpathsea kwallet lcms libglvnd libnotify libtirpc lzma mad mbox mng mp3 mp4 mpeg multilib ncurses nls nptl odbc ogg openexr opengl openmp pam pango pcre pdf phonon plasma png policykit postgres ppds qml qt5 readline sdl seccomp semantic-desktop source spell split-usr ssl startup-notification svg t1lib tcpd threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis webp widgets wxwidgets x264 xattr xcb xinerama xml xpm xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers http2 ident imagemap include info lbmethod_byrequests log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http proxy_http2 rewrite setenvif slotmem_shm socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput vmmouse wacom joystick" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver presenter-minimizer wiki-publisher" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" RUBY_TARGETS="ruby25 ruby26" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel radeonsi vesa vmware" XFCE_PLUGINS="clock trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

The easy workaround is to simply enable the plugins USE flag for the package.
Comment 1 Andreas Sturmlechner gentoo-dev 2020-09-21 12:15:20 UTC
Not reproducible at least on my system.
Comment 2 Nathaniel 2020-09-21 16:04:37 UTC
Confirmed on my machine.


Making all in extensions
make[2]: Entering directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4/extensions'
/usr/bin/python3.6 ../tools/xincludator.py \
	all.xml > _gen/all.xml.tmp && mv _gen/all.xml.tmp _gen/all.xml
Traceback (most recent call last):
  File "../tools/xincludator.py", line 8, in <module>
    sys.stdout.reconfigure(encoding='utf-8')
AttributeError: '_io.TextIOWrapper' object has no attribute 'reconfigure'
make[2]: *** [Makefile:612: _gen/all.xml] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4/extensions'
make[1]: *** [Makefile:376: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4'
make: *** [Makefile:306: all] Error 2
 * ERROR: net-voip/telepathy-gabble-0.18.4-r2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-voip/telepathy-gabble-0.18.4-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-voip/telepathy-gabble-0.18.4-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4'
 * S: '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4'

>>> Failed to emerge net-voip/telepathy-gabble-0.18.4-r2, Log file:

>>>  '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/temp/build.log'



emerge --info
Portage 3.0.4 (python 3.6.11-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.31-r6, 5.4.60-gentoo x86_64)
=================================================================
System uname: Linux-5.4.60-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-1650_v3_@_3.50GHz-with-gentoo-2.7
KiB Mem:    32810144 total,   7758544 free
KiB Swap:   37748732 total,  37747196 free
Timestamp of repository gentoo: Mon, 21 Sep 2020 05:30:01 +0000
Head commit of repository gentoo: 7f5cf9aa1d7e7ccf155a867082deaf0f52c652ec
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r2::gentoo, 3.6.11-r2::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.12.6-r2::gentoo, 1.13.4-r2::gentoo, 1.14.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X Xaw3d a52 aac acl acpi activities alsa amd64 amdgpu berkdb branding bzip2 cairo cdda cddb cdr cli crypt css cups curl dbus declarative dga dri dts dvd dvdr egl elogind emacs emboss encode exif fftw flac fontconfig fortran ftp games gd gdbm gif gimp gnuplot gnutls gpm gsl gstreamer gtk gui hddtemp iconv icu imagemagick inotify java jit jpeg kde kipi kwallet lame latex lcms libglvnd libnotify libtirpc lm-sensors mad mng mp3 mp4 mpeg multilib mysql ncurses nls nptl nsplugin offensive ogg opengl openmp pam pango pcre pdf phonon plasma png policykit postscript ppds pulseaudio python qml qt5 raw readline samba sasl sdl seccomp semantic-desktop smp sound spell split-usr ssl startup-notification svg syslog tcl tcpd theora threads tiff tk truetype udev udisks unicode upower usb vdpau vnc vorbis widgets wxwidgets x264 xattr xcb xface xinerama xml xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev roccat_konextd libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_6 python3_7" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XFCE_PLUGINS="clock multiload-nandhp power trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Nathaniel 2020-09-21 16:06:48 UTC
Also, net-voip/telepathy-gabble-0.18.4-r1 built with no problems on 19 September, so the problem seems to be whatever was changed in -r2.
Comment 4 Bob Johnson 2020-09-21 20:20:39 UTC
Sorry. This bug report is incorrectly described. I'm not sure how I got it to recompile with the plugins USE flag--I was probably in a different environment at the time as the binutils were updating at the same time.

The correct title should be: net-voip/telepathy-gabble-0.18.4-r2 will not compile with python 3.6 as the default python3 interpreter. It has nothing to do with USE flags. The problem is that -r2 calls a 'reconfigure' attribute for the named object but that attribute was not available until python 3.7, as described in this (unrelated) bug report:

https://github.com/pytest-dev/pytest/issues/4843

My default python interpreter list is currently:

# eselect python list
Available Python interpreters, in order of preference:
  [1]   python2.7
  [2]   python3.6
  [3]   python3.8 (fallback)
  [4]   python3.7 (fallback)

Python 2.7 is still hanging around because of gimp and KDE's kross-interpreters, and 3.6 because of blender.

Recompiling net-voip/telepathy-gabble with 'EPYTHON=python 3.7 emerge ...' succeeds with the default USE flag settings (ie only USE=jingle as set by the ebuild).
Comment 5 Michal Plichta 2020-09-23 22:22:02 UTC
I have same problem


:
:
configure: WARNING: unrecognized options: --enable-file-transfer, --enable-voip, --disable-plugins

Configure summary:

        Compiler Flags.......: -march=native -O2 -pipe -fomit-frame-pointer
        Prefix...............: /usr
        Coverage profiling...: no
        Coding style checks..: no
        Debug................: yes

    Features:
        TLS Backend..........: openssl
        Prefer stream ciphers: no
        System CA certs......: /etc/ssl/certs/ca-certificates.crt
        SASL2 Tests..........: yes
        gtk-doc documentation: no
        libiphb integration..: no
        Google relay support.: yes

configure: Done configuring in lib/ext/wocky
:
:
config.status: executing libtool commands

Configure summary:

        Compiler....................:  x86_64-pc-linux-gnu-gcc
        Compiler Flags..............:  -march=native -O2 -pipe -fomit-frame-pointer  -Wall -Wextra -Wdeclaration-after-statement -Wshadow -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wsign-compare -Wnested-externs -Wpointer-arith -Wformat-security -Winit-self -Wno-missing-field-initializers -Wno-deprecated-declarations -Wno-unused-parameter
        Prefix......................:  /usr
        Coding style checks.........:  no
        Enable debug................:  yes
        Python tests................:  yes
        Install unit tests..........:  no

    Features:

        Client type.................:  "pc"
        Plugin support..............:  no
        Plugin headers installed....:  
        Channel.Type.Call support...:  yes
        Google relay support........:  yes
        File transfer support.......:  yes
        Jingle file transfer support:  yes
        VoIP support................:  yes


>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4 ...
make -j5 
make  all-recursive
make[1]: Entering directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4'
Making all in docs
make[2]: Entering directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4/docs'
sed -e 's,[@]libexecdir[@],/usr/libexec,' < telepathy-gabble.8.in > telepathy-gabble.8
xsltproc ./xep.xsl olpc.xml > olpc.html
xsltproc ./xep.xsl muc-bytestream.xml > muc-bytestream.html
xsltproc ./xep.xsl si-multiple.xml > si-multiple.html
xsltproc ./xep.xsl tubes.xml > tubes.html
make[2]: Leaving directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4/docs'
Making all in tools
make[2]: Entering directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4/tools'
sed -e 's![@]abs_top_builddir[@]!/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4!' telepathy-glib-env.in > telepathy-glib-env
test -e ./libglibcodegen.py && touch ./libglibcodegen.py
chmod +x telepathy-glib-env
test -e ./c-constants-gen.py && touch ./c-constants-gen.py
test -e ./glib-client-marshaller-gen.py && touch ./glib-client-marshaller-gen.py
test -e ./glib-ginterface-gen.py && touch ./glib-ginterface-gen.py
test -e ./glib-gtypes-generator.py && touch ./glib-gtypes-generator.py
test -e ./glib-interfaces-gen.py && touch ./glib-interfaces-gen.py
make[2]: Leaving directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4/tools'
Making all in extensions
make[2]: Entering directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4/extensions'
/usr/bin/python3.6 ../tools/xincludator.py \
	all.xml > _gen/all.xml.tmp && mv _gen/all.xml.tmp _gen/all.xml
Traceback (most recent call last):
  File "../tools/xincludator.py", line 8, in <module>
    sys.stdout.reconfigure(encoding='utf-8')
AttributeError: '_io.TextIOWrapper' object has no attribute 'reconfigure'
make[2]: *** [Makefile:612: _gen/all.xml] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4/extensions'
make[1]: *** [Makefile:376: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-voip/telepathy-gabble-0.18.4-r2/work/telepathy-gabble-0.18.4'
make: *** [Makefile:306: all] Error 2
 * ERROR: net-voip/telepathy-gabble-0.18.4-r2::gentoo failed (compile phase):
 *   emake failed




emc@clayman ~ $ sudo emerge --info 
Portage 3.0.4 (python 3.6.11-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.31-r6, 5.8.2-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.8.2-gentoo-x86_64-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8500_@_3.16GHz-with-gentoo-2.7
KiB Mem:     8083048 total,    773940 free
KiB Swap:   17835004 total,  17834484 free
Timestamp of repository gentoo: Wed, 23 Sep 2020 01:00:02 +0000
Head commit of repository gentoo: 2689b1d9911699ff4525a65431261c37a590fc47
Timestamp of repository dotnet: Thu, 17 Sep 2020 08:05:21 +0000
Head commit of repository dotnet: 5c4e2400d19d4424224752278c1763b1890edecf

Timestamp of repository src_prepare-overlay: Tue, 22 Sep 2020 21:05:23 +0000
Head commit of repository src_prepare-overlay: 95858d594f779ef1e90c94fbd46c12dc5cf77766

Timestamp of repository torbrowser: Mon, 21 Sep 2020 16:07:20 +0000
Head commit of repository torbrowser: 0cbb7d8d4cc58908e10fb021358e84bc45166847

sh bash 5.0_p18
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
ccache version 3.7.11 [enabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r2::gentoo, 3.6.11-r2::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo
dev-util/ccache:          3.7.11::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo, 2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

dotnet
    location: /var/db/repos/dotnet
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/dotnet.git
    masters: gentoo

phoebe
    location: /usr/local/portage
    masters: gentoo

src_prepare-overlay
    location: /var/db/repos/src_prepare-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/src_prepare-overlay.git
    masters: gentoo

torbrowser
    location: /var/db/repos/torbrowser
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/torbrowser.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="ftp://ftp.vectranet.pl/gentoo/ ftp://mirror.leaseweb.com/gentoo/ ftp://gentoo.wheel.sk/pub/linux/gentoo/ http://mirror.dkm.cz/gentoo/ http://ftp.fau.de/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en-US pl"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tcpd tiff tk truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xinerama xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7 python3_6" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Faraclas 2020-09-24 13:42:46 UTC
I see this issue as well. Cannot build since -r2
Comment 7 Michal Jakubowski 2020-10-14 15:23:21 UTC
The same issue.
Comment 8 radeczek 2020-10-22 08:12:50 UTC
I've had same issue. According to Python documentation (https://docs.python.org/3/library/io.html) attribute 'reconfigure' is in python since version 3.7.
So my workaround was to set default python to 3.7.
R
Comment 9 Michal Plichta 2020-10-22 09:37:27 UTC
(In reply to radeczek from comment #8)
> I've had same issue. According to Python documentation
> (https://docs.python.org/3/library/io.html) attribute 'reconfigure' is in
> python since version 3.7.
> So my workaround was to set default python to 3.7.
> R

good catch!
Comment 10 Ciprian Ciubotariu 2020-10-23 21:06:09 UTC
I am also affected by this build problem since -r2. USE=-plugins

pink ~ # eix gabble
[U] net-voip/telepathy-gabble
     Available versions:  0.18.4-r2^t {gnutls +jingle libressl plugins test}
     Installed versions:  0.18.4-r1(16:54:31 10/18/19)(jingle -gnutls -libressl -plugins -test)
     Homepage:            https://telepathy.freedesktop.org/
     Description:         A XMPP connection manager, handles single and multi user chats and voice calls
Comment 11 ramast 2020-10-23 21:44:31 UTC
Sane problem but radeczek's solution did help resolve it.
Comment 12 Guy 2020-11-12 06:29:01 UTC
I ran into the same problem on one system but not on another where I thought my python configuration was identical.

Using the comments here, I was able to determine the cause of the problem:

Failed system -
eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python3.7 (fallback)
  [5]   python2.7 (fallback)

Successful system -
eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python3.9 (fallback)
  [5]   python2.7 (fallback)

The failed system failed simply because python-3.6 was first in the list.

Commentary -

On both systems with latest final elimination for the need for python-2.7, I have make.conf configured with
make.conf:PYTHON_TARGETS="python3_7"
make.conf:PYTHON_SINGLE_TARGET="python3_7"

I've run "emerge --depclean" in the past on both systems. I would have expected dev-lang/python-3.6 to have been already removed from both systems before now.

Executing "emerge -C dev-lang/python-3.6*" on the failed system solved the problem for me. I also did this for the successful system.

I did "emerge -puNDv @world" for both systems and dev-lang/python-3.6 was not re-installed thus assuring me that it actually wasn't needed.

I suspect only those people whom had python-3.6 installed in the past AND happen to have python-3.6 appear first in their eselect list will run into this problem. As far as I know, no one should have anything requiring python-3.6.

The 'real problem' would appear to be that "emerge --depclean" can not properly clean out python-3.6 (probably due to all the complexities surrounding python (single) targets). Perhaps a 'news' item should be released specifically suggesting people check for the existence of python-3.6 on their systems and to manually delete it if it's there. I assumed --depclean would remove it after it was EOLed and masked.
Comment 13 Bob Johnson 2020-11-12 15:04:29 UTC
As I noted back in comment #4, and others have noted as well, the issue here was python 3.6 set as the default interpreter. The only thing keeping python 3.6 on my system was blender, and with a later version of blender now stabilized python 3.6 was finally depcleaned. net-voip/telepathy-gabble-0.18.4-r2 now compiles fine on my system. If there's nothing else holding python 3.6 in the tree it seems to me this bug can be closed.
Comment 14 Michal Plichta 2020-11-12 21:37:25 UTC
(In reply to Guy from comment #12)
> I ran into the same problem on one system but not on another where I thought

good findings, now it is working in my system
Comment 15 David Baƙina 2020-11-13 11:11:36 UTC
Same problem here.