~ $ emerge --info gentoolkit Portage 3.0.8 (python 3.9.0-final-0, default/linux/amd64/17.1/no-multilib, gcc-10.2.0, glibc-2.32-r2, 5.8.13-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.8.13-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-glibc2.32 KiB Mem: 16088004 total, 7807188 free KiB Swap: 13720572 total, 13459196 free Head commit of repository pf4public: 24343b39fdb48922c5aafd27d7cf063a907b6f77 Head commit of repository gentoo: 40a1ba6db3e5a581340be31c380f670821ff5389 Head commit of repository qt: cab20a25c0947446ea8486c147f9a679a56c2d73 Head commit of repository kde: 825c67431e604d9c64ddcfcc32f205f1fed4f2b2 Head commit of repository pg_overlay: 8167a6df040c86cd0b7204862ead23366aaff553 sh bash 5.0_p18 ld GNU ld (Gentoo 2.35.1 p1) 2.35.1 ccache version 3.7.12 [disabled] app-shells/bash: 5.0_p18::gentoo dev-lang/perl: 5.32.0-r1::gentoo dev-lang/python: 2.7.18-r4::pg_overlay, 3.9.0::pg_overlay dev-util/ccache: 3.7.12::gentoo dev-util/cmake: 3.18.4::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.2::gentoo sys-devel/binutils: 2.35.1::gentoo sys-devel/gcc: 10.2.0-r2::gentoo sys-devel/gcc-config: 2.3.2::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r2::pg_overlay Repositories: pf4public location: /usr/portage/overlay/pf4public sync-type: git sync-uri: https://github.com/PF4Public/gentoo-overlay.git masters: gentoo priority: -1 eclass-overrides: gentoo qt kde pg_overlay gentoo location: /usr/portage sync-type: git sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git priority: 5 eclass-overrides: gentoo qt kde pg_overlay sync-git-clone-extra-opts: --depth=1 --progress --verbose --single-branch --branch master qt location: /usr/portage/proj/qt sync-type: git sync-uri: https://anongit.gentoo.org/git/proj/qt.git masters: gentoo priority: 9 eclass-overrides: gentoo qt kde pg_overlay kde location: /usr/portage/proj/kde sync-type: git sync-uri: https://anongit.gentoo.org/git/proj/kde.git masters: gentoo priority: 11 eclass-overrides: gentoo qt kde pg_overlay pg_overlay location: /usr/portage/overlay/pg_overlay sync-type: git sync-uri: https://gitlab.com/Perfect_Gentleman/PG_Overlay.git masters: gentoo priority: 13 eclass-overrides: gentoo qt kde pg_overlay ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O3 -pipe -fdata-sections -fdevirtualize-at-ltrans -ffunction-sections -fgraphite-identity -fipa-pta -flto=9 -floop-interchange -floop-nest-optimize -floop-parallelize-all -fomit-frame-pointer -fuse-linker-plugin -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -s" 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" CXXFLAGS="-march=native -mtune=native -O3 -pipe -fdata-sections -fdevirtualize-at-ltrans -ffunction-sections -fgraphite-identity -fipa-pta -flto=9 -floop-interchange -floop-nest-optimize -floop-parallelize-all -fomit-frame-pointer -fuse-linker-plugin -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -s" 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 -mtune=native -O3 -pipe -fdata-sections -fdevirtualize-at-ltrans -ffunction-sections -fgraphite-identity -fipa-pta -flto=9 -floop-interchange -floop-nest-optimize -floop-parallelize-all -fomit-frame-pointer -fuse-linker-plugin -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -s" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news parallel-fetch parallel-install 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 -mtune=native -O3 -pipe -fdata-sections -fdevirtualize-at-ltrans -ffunction-sections -fgraphite-identity -fipa-pta -flto=9 -floop-interchange -floop-nest-optimize -floop-parallelize-all -fomit-frame-pointer -fuse-linker-plugin -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -s" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK="/lib/systemd /usr/lib/systemd /usr/share/fish /usr/share/zsh" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--sort-common -Wl,-z,norelro -march=native -mtune=native -O3 -pipe -fdata-sections -fdevirtualize-at-ltrans -ffunction-sections -fgraphite-identity -fipa-pta -flto=9 -floop-interchange -floop-nest-optimize -floop-parallelize-all -fomit-frame-pointer -fuse-linker-plugin -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -s" LINGUAS="en en_US en-US ru ru_RU ru-RU" MAKEOPTS="-j9" 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="/tmp" USE="X acl alsa amd64 bash-completion bzip2 cairo cli cups custom-cflags cxx dbus dri elogind ffmpeg flac fontconfig gdbm gif gmp iconv icu introspection jpeg kde lcms libglvnd libtirpc lzma lzo mmap mtp ncurses nls nptl ogg opengl openmp orc pam pch pcre png pulseaudio readline seccomp split-usr ssl svg symlink threads tiff truetype udev unicode vaapi vorbis vulkan wavpack webp xattr xcb xft xmpp zip zlib zstd" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en_US en-US ru ru_RU ru-RU" 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_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= app-portage/gentoolkit-9999::gentoo was built with the following: USE="-test" PYTHON_TARGETS="python3_9 -pypy3 -python3_6 -python3_7 -python3_8" FEATURES="fixlafiles merge-sync distlocks unmerge-logs ipc-sandbox unmerge-orphans binpkg-logs assume-digests qa-unresolved-soname-deps usersync unknown-features-warn metadata-transfer config-protect-if-modified protect-owned parallel-install userfetch network-sandbox parallel-fetch usersandbox preserve-libs ccache ebuild-locks sfperms news userpriv pid-sandbox xattr multilib-strict strict binpkg-dostrip sandbox binpkg-docompress" Reproducible: Always Actual Results: r ~ $ equery u firefox Traceback (most recent call last): File "/usr/lib/python-exec/python3.9/equery", line 38, in <module> equery.main(sys.argv) File "/usr/lib/python3.9/site-packages/gentoolkit/equery/__init__.py", line 356, in main loaded_module.main(module_args) File "/usr/lib/python3.9/site-packages/gentoolkit/equery/uses.py", line 306, in main output = get_output_descriptions(pkg, global_usedesc) File "/usr/lib/python3.9/site-packages/gentoolkit/equery/uses.py", line 186, in get_output_descriptions local_usedesc = pkg.metadata.use() File "/usr/lib/python3.9/site-packages/gentoolkit/metadata.py", line 286, in use for node in self._xml_tree.getiterator('flag'): AttributeError: 'ElementTree' object has no attribute 'getiterator' Expected Results: show USE flags for package
I get the same error (app-portage/gentoolkit-0.5.0.ebuild). See https://docs.python.org/3.9/whatsnew/3.9.html on ElementTree getchildren() and getiterator(),previously deprecated, now removed. For a quick fix, bodge gentoolkit/metadata.py after the prepare : --- /usr/portage/app-portage/gentoolkit/gentoolkit-0.5.0.ebuild 2020-10-07 10:09:18.000000000 +0000 +++ gentoolkit-0.5.0.ebuild 2020-10-08 21:46:18.195286169 +0000 @@ -32,6 +32,10 @@ echo VERSION="${PVR}" "${PYTHON}" setup.py set_version VERSION="${PVR}" "${PYTHON}" setup.py set_version distutils-r1_python_prepare_all + + einfo 'prepare: fix getiterator, getchildren in metadata.py...' + find -name \*metadata.py\* | xargs sed -i -e 's/\.getiterator(/.iter(/' \ + -e 's/\(\w\+\)\.getchildren()/iter(\1)/' } pkg_preinst() {
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5198c0b71084c57b42ca1a070813afab2da2985e commit 5198c0b71084c57b42ca1a070813afab2da2985e Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2020-10-09 05:02:00 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2020-10-09 06:23:06 +0000 app-portage/gentoolkit: Bug #747034 Closes: https://bugs.gentoo.org/747034 Thanks to https://github.com/gentoo/gentoolkit/pull/11 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/17855 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> .../files/gentoolkit-0.5.0-python3_9.patch | 43 ++++++++++++++++++++++ ...kit-0.5.0.ebuild => gentoolkit-0.5.0-r1.ebuild} | 2 + 2 files changed, 45 insertions(+)