Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 873202 - sys-apps/portage: install-by-path crashes on .gpkg.tar
Summary: sys-apps/portage: install-by-path crashes on .gpkg.tar
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 890291 (view as bug list)
Depends on: 889328
Blocks:
  Show dependency tree
 
Reported: 2022-09-27 16:18 UTC by Michał Górny
Modified: 2023-01-15 22:13 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-09-27 16:18:17 UTC
# emerge -1v /var/cache/binpkg/sys-devel/gcc/gcc-12.2.1_p20220917-1.gpkg.tar 

These are the packages that would be merged, in order:

Calculating dependencies... done!
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/emerge", line 60, in <module>
    retval = emerge_main()
             ^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/_emerge/main.py", line 1294, in emerge_main
    return run_action(emerge_config)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/_emerge/actions.py", line 4065, in run_action
    retval = action_build(emerge_config, spinner=spinner)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/_emerge/actions.py", line 403, in action_build
    success, mydepgraph, favorites = backtrack_depgraph(
                                     ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/_emerge/depgraph.py", line 11506, in backtrack_depgraph
    return _backtrack_depgraph(
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/_emerge/depgraph.py", line 11553, in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/_emerge/depgraph.py", line 4536, in select_files
    return self._select_files(args)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/_emerge/depgraph.py", line 4589, in _select_files
    mygpkg = portage.gpkg.gpkg(self.frozen_config, None, x)
                               ^^^^^^^^^^^^^^^^^^
AttributeError: 'depgraph' object has no attribute 'frozen_config'
Comment 1 Larry the Git Cow gentoo-dev 2023-01-10 03:28:52 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=a0ca453907f461d0bed987cfe7ce52520b2d59ef

commit a0ca453907f461d0bed987cfe7ce52520b2d59ef
Author:     Sheng Yu <syu.os@protonmail.com>
AuthorDate: 2023-01-10 03:03:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-10 03:28:03 +0000

    emerge: depgraph: Correctly detect installation from path for binpkgs
    
    Bug: https://bugs.gentoo.org/873202
    Bug: https://bugs.gentoo.org/890291
    Signed-off-by: Sheng Yu <syu.os@protonmail.com>
    Closes: https://github.com/gentoo/portage/pull/973
    Signed-off-by: Sam James <sam@gentoo.org>

 NEWS                    |  5 ++++-
 lib/_emerge/depgraph.py | 14 +++++++++++---
 2 files changed, 15 insertions(+), 4 deletions(-)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-10 03:29:11 UTC
*** Bug 890291 has been marked as a duplicate of this bug. ***
Comment 3 Larry the Git Cow gentoo-dev 2023-01-15 22:13:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e342b1cae0ba19e35d27fe523ce0331e1412e295

commit e342b1cae0ba19e35d27fe523ce0331e1412e295
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-15 22:13:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-15 22:13:26 +0000

    sys-apps/portage: add 3.0.44
    
    Closes: https://bugs.gentoo.org/889328
    Closes: https://bugs.gentoo.org/607696
    Closes: https://bugs.gentoo.org/867031
    Closes: https://bugs.gentoo.org/873202
    Closes: https://bugs.gentoo.org/888543
    Closes: https://bugs.gentoo.org/834038
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-3.0.44.ebuild | 288 +++++++++++++++++++++++++++++++++
 2 files changed, 289 insertions(+)