Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878415 - app-portage/portpeek runtime issue
Summary: app-portage/portpeek runtime issue
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Pagano
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-27 00:37 UTC by CaptainBlood
Modified: 2022-10-31 12:44 UTC (History)
0 users

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


Attachments
/etc/portage/package.use compressed (package.use.tar.gz,80.72 KB, application/gzip)
2022-10-27 16:55 UTC, CaptainBlood
Details
Fix for hidden files (portpeek,67.83 KB, text/x-python)
2022-10-29 19:48 UTC, Mike Pagano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CaptainBlood 2022-10-27 00:37:20 UTC
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
Comment 1 Mike Pagano gentoo-dev 2022-10-27 11:02:56 UTC
Please provide the command you ran and the contents of package.use
Comment 2 CaptainBlood 2022-10-27 16:55:12 UTC
Created attachment 825647 [details]
/etc/portage/package.use compressed

As described in github issue report, the run command is:
portpeek -ar
Comment 3 Mike Pagano gentoo-dev 2022-10-27 17:37:39 UTC
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.
Comment 4 CaptainBlood 2022-10-27 22:26:29 UTC
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
Comment 5 CaptainBlood 2022-10-28 00:00:10 UTC
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.
Comment 6 CaptainBlood 2022-10-28 00:09:54 UTC
File is too big, please consult github.
Comment 7 Mike Pagano gentoo-dev 2022-10-29 19:48:52 UTC
Created attachment 826069 [details]
Fix for hidden files

Can you try this version ?
Comment 8 CaptainBlood 2022-10-31 02:21:05 UTC
(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 :)
Comment 9 Larry the Git Cow gentoo-dev 2022-10-31 12:44:38 UTC
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(+)