Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349273 - sys-apps/portage-2.2_alpha*: fakedbapi doesn't expose getFetchMap() required by doebuild()
Summary: sys-apps/portage-2.2_alpha*: fakedbapi doesn't expose getFetchMap() required ...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All All
: High normal
Assignee: Portage team
URL: http://bugs.sabayon.org/show_bug.cgi?...
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks:
 
Reported: 2010-12-21 10:19 UTC by Fabio Erculiani (RETIRED)
Modified: 2010-12-21 21:20 UTC (History)
0 users

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 Fabio Erculiani (RETIRED) gentoo-dev 2010-12-21 10:19:40 UTC
I suppose there could be multiple ways of fixing this bug, and I'm uncertaing regarding what's the best strategy.

Calling the usual portage.doebuild() on a binpkg tree causes this:
Traceback (most recent call last):
  File "../libraries/entropy/spm/plugins/interfaces/portage_plugin/__init__.py", line 2124, in _pkg_fooinst
    self._pkg_setup(package_metadata, skip_if_found = True)
  File "../libraries/entropy/spm/plugins/interfaces/portage_plugin/__init__.py", line 2102, in _pkg_setup
    licenses = package_metadata.get('accept_license'))
  File "../libraries/entropy/spm/plugins/interfaces/portage_plugin/__init__.py", line 1970, in _portage_doebuild
    debug = etpUi['debug']
  File "/usr/lib64/portage/pym/portage/proxy/objectproxy.py", line 31, in __call__
    return result(*args, **kwargs)
  File "/usr/lib64/portage/pym/portage/package/ebuild/doebuild.py", line 696, in doebuild
    alist = mydbapi.getFetchMap(mycpv, useflags=useflags,
AttributeError: 'fakedbapi' object has no attribute 'getFetchMap'

You can view the caller function code here:
http://gitweb.sabayon.org/?p=entropy.git;a=blob;f=libraries/entropy/spm/plugins/interfaces/portage_plugin/__init__.py;hb=HEAD#l1826

In the meantime, we're reverting to portage 2.1.9.x. Which works just fine (beside pkgsets, preserved-libs functionalities are disabled via portage.const).



Reproducible: Always
Comment 1 Fabio Erculiani (RETIRED) gentoo-dev 2010-12-21 11:04:36 UTC
Workarounding the bug above, generates another problem:
!!! Manifest file not found: '/var/tmp/entropy/packages/amd64/5/net-analyzer_metasploit-3.5.0~1.tbz2/xpak/data/Manifest'
Comment 3 Zac Medico gentoo-dev 2010-12-21 19:46:48 UTC
This is fixed in 2.2.0_alpha10.
Comment 4 Fabio Erculiani (RETIRED) gentoo-dev 2010-12-21 21:20:53 UTC
Thanks Zac.