Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831285 - sys-apps/portage-3.0.30: fails in pkg_preinst (NameError: name 'LinkageMapMachO' is not defined)
Summary: sys-apps/portage-3.0.30: fails in pkg_preinst (NameError: name 'LinkageMapMac...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-16 06:17 UTC by Sam James
Modified: 2022-01-16 10:05 UTC (History)
1 user (show)

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


Attachments
build.log.bz2 (build.log.bz2,28.88 KB, application/x-bzip2)
2022-01-16 06:17 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-16 06:17:15 UTC
Created attachment 762267 [details]
build.log.bz2

>>> Installing (1 of 2) sys-apps/portage-3.0.30::gentoo_prefix
 * checking 5336 files for package collisions
>>> Merging sys-apps/portage-3.0.30 to /
 * Using python3.9 in global scope
Traceback (most recent call last):
  File "/Users/sam/Gentoo/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Users/sam/Gentoo/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/sam/Gentoo/var/tmp/portage/sys-apps/portage-3.0.30/image/Users/sam/Gentoo/usr/lib/python3.9/site-packages/portage/_compat_upgrade/default_locations.py", line 123, in <module>
    main()
  File "/Users/sam/Gentoo/var/tmp/portage/sys-apps/portage-3.0.30/image/Users/sam/Gentoo/usr/lib/python3.9/site-packages/portage/_compat_upgrade/default_locations.py", line 40, in main
    do_distdir = os.path.samefile(config["DISTDIR"], compat_distdir)
  File "/Users/sam/Gentoo/var/tmp/portage/sys-apps/portage-3.0.30/image/Users/sam/Gentoo/usr/lib/python3.9/site-packages/portage/proxy/objectproxy.py", line 45, in __getitem__
    return object.__getattribute__(self, "_get_target")()[key]
  File "/Users/sam/Gentoo/var/tmp/portage/sys-apps/portage-3.0.30/image/Users/sam/Gentoo/usr/lib/python3.9/site-packages/portage/__init__.py", line 828, in _get_target
    return _get_legacy_global(name)
  File "/Users/sam/Gentoo/var/tmp/portage/sys-apps/portage-3.0.30/image/Users/sam/Gentoo/usr/lib/python3.9/site-packages/portage/_legacy_globals.py", line 45, in _get_legacy_global
    settings = portage.db[portage.db._target_eroot]["vartree"].settings
  File "/Users/sam/Gentoo/var/tmp/portage/sys-apps/portage-3.0.30/image/Users/sam/Gentoo/usr/lib/python3.9/site-packages/portage/util/__init__.py", line 1679, in __getitem__
    result = lazy_item.func(*pargs, **kwargs)
  File "/Users/sam/Gentoo/var/tmp/portage/sys-apps/portage-3.0.30/image/Users/sam/Gentoo/usr/lib/python3.9/site-packages/portage/proxy/objectproxy.py", line 31, in __call__
    return result(*args, **kwargs)
  File "/Users/sam/Gentoo/var/tmp/portage/sys-apps/portage-3.0.30/image/Users/sam/Gentoo/usr/lib/python3.9/site-packages/portage/dbapi/vartree.py", line 1676, in __init__
    self.dbapi = vardbapi(settings=settings, vartree=self)
  File "/Users/sam/Gentoo/var/tmp/portage/sys-apps/portage-3.0.30/image/Users/sam/Gentoo/usr/lib/python3.9/site-packages/portage/dbapi/vartree.py", line 238, in __init__
    self._linkmap = LinkageMapMachO(self)
NameError: name 'LinkageMapMachO' is not defined
 * ERROR: sys-apps/portage-3.0.30::gentoo_prefix failed (preinst phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 127:  Called __call-ebuildshell 'pkg_preinst'
 *     ebuild.sh, line 562:  Called pkg_preinst
 *   environment, line 3002:  Called die
 * The specific snippet of code:
 *       env -u DISTDIR -u PORTAGE_OVERRIDE_EPREFIX -u PORTAGE_REPOSITORIES -u PORTDIR -u PORTDIR_OVERLAY PYTHONPATH="${D}${sitedir}${PYTHONPATH:+:${PYTHONPATH}}" "${PYTHON}" -m portage._compat_upgrade.default_locations || die;
Comment 1 Fabian Groffen gentoo-dev 2022-01-16 08:46:38 UTC
The recent merge with main of prefix branch was a hell, the change from tabs to spaces caused a lot of conflicts, this is likely change that I missed.
Comment 2 Fabian Groffen gentoo-dev 2022-01-16 09:45:11 UTC
[prefix b39d820f1] lib/portage/dbapi/vartree.py: re-import LinkageMap* again
 1 file changed, 5 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2022-01-16 10:05:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=f091e18053badb883388330444a12739343f7eb1

commit f091e18053badb883388330444a12739343f7eb1
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2022-01-16 10:04:50 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2022-01-16 10:05:30 +0000

    sys-apps/portage-3.0.30.1: version bump for Darwin
    
    Closes: https://bugs.gentoo.org/831285
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 sys-apps/portage/Manifest                                           | 2 +-
 sys-apps/portage/{portage-3.0.30.ebuild => portage-3.0.30.1.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)