Created attachment 745728 [details] emerge --info I am using binpkgs that I downloaded manually into the local PKGDIR from my build host. When I just run 'emerge' I only get this: Traceback (most recent call last): File "/usr/lib/python-exec/python3.9/emerge", line 51, in <module> retval = emerge_main() File "/usr/lib/python3.9/site-packages/_emerge/main.py", line 1319, in emerge_main return run_action(emerge_config) File "/usr/lib/python3.9/site-packages/_emerge/actions.py", line 2956, in run_action mytrees['bintree'].populate( File "/usr/lib/python3.9/site-packages/portage/dbapi/bintree.py", line 628, in populate update_pkgindex = self._populate_local( File "/usr/lib/python3.9/site-packages/portage/dbapi/bintree.py", line 814, in _populate_local if build_id < 1: TypeError: '<' not supported between instances of 'str' and 'int' Adding a "print(build_id)" above line 814 will show a long list of integer build_ids but "1.1" as last value before the traceback.
The package causing this is: /usr/portage/packages/sys-devel/llvm/llvm-11.1.0-1.1.xpak ~ # find /usr/portage/packages/ -name "llvm-11.1.0-1*.xpak" /usr/portage/packages/sys-devel/llvm/llvm-11.1.0-1.1.xpak /usr/portage/packages/sys-devel/llvm/llvm-11.1.0-1.xpak
The problematic file "/usr/portage/packages/sys-devel/llvm/llvm-11.1.0-1.1.xpak" seems to have been created by the download-tool (aria2c) that I was using to mirror the binpkgs while I had good internet access, so I could install the packages later. However: portage should handle this kind of bad filenames by ignoring the file and print a warning instead of throwing a backtrace.
I have just encountered the same problem, but by installing gentoo-kernel-bin. This downloads & installs "gentoo-kernel-5.15.5-1.amd64.xpak", which completes fine; afterwards portage is broken as long as that file exists in the download directory. Removing it gets things going again.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=0009404ee5f293fe7076d59a52c46827c3b77738 commit 0009404ee5f293fe7076d59a52c46827c3b77738 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2021-11-26 17:43:45 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2021-11-26 17:43:45 +0000 dbapi: fix logic in bintree.binarytree._parse_build_id() Resolves an error when improperly named xpak files exist in PKGDIR. Bug: https://bugs.gentoo.org/818886 Signed-off-by: Mike Gilbert <floppym@gentoo.org> lib/portage/dbapi/bintree.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
Fixed in 3.0.29.