Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587886 - sys-apps/portage should provide subslots and app-portage/repoman should depend on portage:=
Summary: sys-apps/portage should provide subslots and app-portage/repoman should depen...
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-03 15:01 UTC by Andrew Savchenko
Modified: 2022-07-12 03:18 UTC (History)
0 users

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


Attachments
emerge --info (emerge.info,11.13 KB, text/plain)
2016-07-03 15:01 UTC, Andrew Savchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2016-07-03 15:01:11 UTC
Created attachment 439546 [details]
emerge --info

Hi,

when repoman and portage versions mismatch, repoman is broken. E.g. with portage-2.3.0 and repoman-2.3.0_rc1-r1 I have the following:

$ repoman -p full
Exception ignored in: <bound method database.__del__ of <portage.cache.sqlite.database object at 0xa64913ac>>
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/portage/cache/template.py", line 196, in __del__
    self.sync()
  File "/usr/lib/python3.4/site-packages/portage/cache/template.py", line 185, in sync
    self.commit()
  File "/usr/lib/python3.4/site-packages/portage/cache/sqlite.py", line 249, in commit
    self._db_connection.commit()
AttributeError: 'database' object has no attribute '_db_connection'

RepoMan does a once-over of the neighborhood...
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/repoman", line 44, in <module>
    repoman_main(sys.argv[1:])
  File "/usr/lib/python3.4/site-packages/repoman/main.py", line 117, in repoman_main
    scanner.scan_pkgs(can_force)
  File "/usr/lib/python3.4/site-packages/repoman/scanner.py", line 351, in scan_pkgs
    self._scan_ebuilds(ebuildlist, dynamic_data)
  File "/usr/lib/python3.4/site-packages/repoman/scanner.py", line 378, in _scan_ebuilds
    self.modules[mod[1]] = mod_class(**self.set_kwargs(mod[0]))
  File "/usr/lib/python3.4/site-packages/repoman/modules/scan/ebuild/multicheck.py", line 25, in __init__
    checks_init(self.options.experimental_inherit == 'y')
  File "/usr/lib/python3.4/site-packages/repoman/modules/scan/ebuild/checks.py", line 921, in checks_init
    for k, kwargs in _eclass_info.items())))
  File "/usr/lib/python3.4/site-packages/repoman/modules/scan/ebuild/checks.py", line 921, in <genexpr>
    for k, kwargs in _eclass_info.items())))
AttributeError: 'module' object has no attribute '_native_kwargs'

When repoman is also updated to 2.3.0, it works fine.

Looks like repoman can't be used without portage installed, so I propose to provide subslots for portage when in breaks repoman backward compatibility and add >=sys-apps/portage-2.3.0_rc:= subslot dependency for repoman.
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2016-07-03 15:09:43 UTC
Yeah, I missed that change in portage code or I would have for sure at least adjusted the repoman deps.

And yes repoman uses portage lib code for many of it's checks and for numerous other data.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-12 03:18:15 UTC
repoman support has been removed per bug 835013.

Please file a new bug (or, I suppose, reopen this one) if you feel this check is still applicable to pkgcheck and doesn't already exist.