package.use: Traceback (most recent call last): File "/usr/lib/python-exec/python3.9/portpeek", line 1701, in <module> get_recursive_info(USER_CONFIG_PATH + "/package.use") File "/usr/lib/python-exec/python3.9/portpeek", line 491, in get_recursive_info get_recursive_info(filename + os.path.sep + file_name) File "/usr/lib/python-exec/python3.9/portpeek", line 493, in get_recursive_info get_info(filename) File "/usr/lib/python-exec/python3.9/portpeek", line 531, in get_info diffs_found = parse_package_use(line, filename) File "/usr/lib/python-exec/python3.9/portpeek", line 669, in parse_package_use package_exists = portage.portdb.xmatch("match-all", check_pkg) File "/usr/lib/python3.9/site-packages/portage/dbapi/porttree.py", line 1244, in xmatch return loop.run_until_complete(self.async_xmatch(level, origdep, loop=loop)) File "/usr/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete return future.result() File "/usr/lib/python3.9/site-packages/portage/dbapi/porttree.py", line 1262, in async_xmatch mydep = dep_expand(origdep, mydb=self, settings=self.settings) File "/usr/lib/python3.9/site-packages/portage/dbapi/dep_expand.py", line 37, in dep_expand mydep = Atom(mydep, allow_repo=True) File "/usr/lib/python3.9/site-packages/portage/dep/__init__.py", line 1545, in __init__ raise InvalidAtom(self) portage.exception.InvalidAtom: (null/undo-tree-save-format-version amd64 ~ # eix portpeek Reproducible: Always github issue link: https://github.com/mpagano/portpeek/issues/2
Please provide the command you ran and the contents of package.use
Created attachment 825647 [details] /etc/portage/package.use compressed As described in github issue report, the run command is: portpeek -ar
Can you now attach the output of portpeek -ard I see an atom it's complaining about: null/undo-tree-save-format-version But I don't see that anywhere it what you attached.
package.use: parse_package_use: Line: dev-qt/qtwidgets:5 png check_pkg is : dev-qt/qtwidgets ENTERED check_useflags_all_versions: dev-qt/qtwidgets check_useflags_all_versions: package: dev-qt/qtwidgets-5.15.5-r1 use found test use found +X use found gles2-only use found gtk use found dbus use found +png use found debug iuse_item is X iuse_item is abi_x86_64 iuse_item is amd64 iuse_item is elibc_glibc iuse_item is kernel_linux iuse_item is png iuse_item is userland_GNU iuse_item is test iuse_item is +X iuse_item is gles2-only iuse_item is gtk iuse_item is dbus iuse_item is +png iuse_item is debug useflags_fromfile_item is dev-qt/qtwidgets:5 useflags_fromfile_item is png package_string is dev-qt/qtwidgets:5 found valid flag: png parse_package_use: Line: dev-qt/qtwidgets:5 X check_pkg is : dev-qt/qtwidgets ENTERED check_useflags_all_versions: dev-qt/qtwidgets check_useflags_all_versions: package: dev-qt/qtwidgets-5.15.5-r1 use found test use found +X use found gles2-only use found gtk use found dbus use found +png use found debug iuse_item is X iuse_item is abi_x86_64 iuse_item is amd64 iuse_item is elibc_glibc iuse_item is kernel_linux iuse_item is png iuse_item is userland_GNU iuse_item is test iuse_item is +X iuse_item is gles2-only iuse_item is gtk iuse_item is dbus iuse_item is +png iuse_item is debug useflags_fromfile_item is dev-qt/qtwidgets:5 useflags_fromfile_item is X package_string is dev-qt/qtwidgets:5 found valid flag: X parse_package_use: Line: dev-qt/qtwidgets:5 -gles2-only check_pkg is : dev-qt/qtwidgets ENTERED check_useflags_all_versions: dev-qt/qtwidgets check_useflags_all_versions: package: dev-qt/qtwidgets-5.15.5-r1 use found test use found +X use found gles2-only use found gtk use found dbus use found +png use found debug iuse_item is X iuse_item is abi_x86_64 iuse_item is amd64 iuse_item is elibc_glibc iuse_item is kernel_linux iuse_item is png iuse_item is userland_GNU iuse_item is test iuse_item is +X iuse_item is gles2-only iuse_item is gtk iuse_item is dbus iuse_item is +png iuse_item is debug useflags_fromfile_item is dev-qt/qtwidgets:5 useflags_fromfile_item is -gles2-only package_string is dev-qt/qtwidgets:5 found valid flag: gles2-only parse_package_use: Line: dev-haskell/assoc profile check_pkg is : dev-haskell/assoc ENTERED check_useflags_all_versions: dev-haskell/assoc check_useflags_all_versions: package: dev-haskell/assoc-1.0.2 use found hscolour use found doc use found profile iuse_item is abi_x86_64 iuse_item is amd64 iuse_item is elibc_glibc iuse_item is kernel_linux iuse_item is profile iuse_item is userland_GNU iuse_item is hscolour iuse_item is doc iuse_item is profile useflags_fromfile_item is dev-haskell/assoc useflags_fromfile_item is profile package_string is dev-haskell/assoc found valid flag: profile parse_package_use: Line: (undo-tree-save-format-version . 1) check_pkg is : (undo-tree-save-format-version Traceback (most recent call last): File "/usr/lib/python-exec/python3.9/portpeek", line 1701, in <module> get_recursive_info(USER_CONFIG_PATH + "/package.use") File "/usr/lib/python-exec/python3.9/portpeek", line 491, in get_recursive_info get_recursive_info(filename + os.path.sep + file_name) File "/usr/lib/python-exec/python3.9/portpeek", line 493, in get_recursive_info get_info(filename) File "/usr/lib/python-exec/python3.9/portpeek", line 531, in get_info diffs_found = parse_package_use(line, filename) File "/usr/lib/python-exec/python3.9/portpeek", line 669, in parse_package_use package_exists = portage.portdb.xmatch("match-all", check_pkg) File "/usr/lib/python3.9/site-packages/portage/dbapi/porttree.py", line 1244, in xmatch return loop.run_until_complete(self.async_xmatch(level, origdep, loop=loop)) File "/usr/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete return future.result() File "/usr/lib/python3.9/site-packages/portage/dbapi/porttree.py", line 1262, in async_xmatch mydep = dep_expand(origdep, mydb=self, settings=self.settings) File "/usr/lib/python3.9/site-packages/portage/dbapi/dep_expand.py", line 37, in dep_expand mydep = Atom(mydep, allow_repo=True) File "/usr/lib/python3.9/site-packages/portage/dep/__init__.py", line 1545, in __init__ raise InvalidAtom(self) portage.exception.InvalidAtom: (null/undo-tree-save-format-version
I did compress the directory using file-roller. Which didn't include emacs undo hidden files, e.g..www.client::firefox.conf.~undo-tree~ Removing all hidden files in /etc/portage/package.use fixed the processing of that directory. Still the problem raised again for /etc/portage/package.env, where hidden files have not been removed yet: package.env: Traceback (most recent call last): File "/usr/lib/python-exec/python3.9/portpeek", line 1706, in <module> get_recursive_info(USER_CONFIG_PATH + "/package.env") File "/usr/lib/python-exec/python3.9/portpeek", line 491, in get_recursive_info get_recursive_info(filename + os.path.sep + file_name) File "/usr/lib/python-exec/python3.9/portpeek", line 493, in get_recursive_info get_info(filename) File "/usr/lib/python-exec/python3.9/portpeek", line 528, in get_info diffs_found = parse_line(line, filename) File "/usr/lib/python-exec/python3.9/portpeek", line 223, in parse_line package_exists = portage.portdb.xmatch("match-all", fields[0]) File "/usr/lib/python3.9/site-packages/portage/dbapi/porttree.py", line 1244, in xmatch return loop.run_until_complete(self.async_xmatch(level, origdep, loop=loop)) File "/usr/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete return future.result() File "/usr/lib/python3.9/site-packages/portage/dbapi/porttree.py", line 1262, in async_xmatch mydep = dep_expand(origdep, mydb=self, settings=self.settings) File "/usr/lib/python3.9/site-packages/portage/dbapi/dep_expand.py", line 37, in dep_expand mydep = Atom(mydep, allow_repo=True) File "/usr/lib/python3.9/site-packages/portage/dep/__init__.py", line 1545, in __init__ raise InvalidAtom(self) portage.exception.InvalidAtom: (null/undo-tree-save-format-version I'm currently trying to find out how to compress the whole directory.
File is too big, please consult github.
Created attachment 826069 [details] Fix for hidden files Can you try this version ?
(In reply to Mike Pagano from comment #7) > Created attachment 826069 [details] > Fix for hidden files > > Can you try this version ? Worked fine here. Nice :)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5d031205439487910703378b65eee88f7b7589d commit e5d031205439487910703378b65eee88f7b7589d Author: Mike Pagano <mpagano@gentoo.org> AuthorDate: 2022-10-31 12:43:58 +0000 Commit: Mike Pagano <mpagano@gentoo.org> CommitDate: 2022-10-31 12:43:58 +0000 app-portage/portpeek: Ignore hidden files. Version bump. Closes: https://bugs.gentoo.org/878415 Signed-off-by: Mike Pagano <mpagano@gentoo.org> app-portage/portpeek/Manifest | 1 + app-portage/portpeek/portpeek-3.2.3.ebuild | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+)