Summary: | sys-apps/portage: vardbapi.unpack_contents not compatible with multiprocessing spawn start method | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Zac Medico <zmedico> |
Component: | Core | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | InVCS |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/portage/pull/1149 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 916031 | ||
Bug Blocks: | 914876 |
Description
Zac Medico
![]() It looks like it's the pw_file variable here:
> if binpkg_format == "xpak":
> tar_cmd = ("tar", "-x", "--xattrs", "--xattrs-include=*", "-C", dest_dir)
> pr, pw = os.pipe()
> proc = await asyncio.create_subprocess_exec(*tar_cmd, stdin=pr)
> os.close(pr)
> with os.fdopen(pw, "wb", 0) as pw_file:
> excluded_config_files = await loop.run_in_executor(
> ForkExecutor(loop=loop),
> functools.partial(
> self._dblink(cpv).quickpkg,
> pw_file,
> include_config=opts.include_config == "y",
> include_unmodified_config=opts.include_unmodified_config == "y",
> ),
> )
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=0b9fbe389db3c3b9e625e1f5f526b3a921d2e0ce commit 0b9fbe389db3c3b9e625e1f5f526b3a921d2e0ce Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2023-10-22 19:57:16 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2023-10-22 19:58:20 +0000 vardbapi.unpack_contents: Use multiprocessing.Pipe for spawn compat Bug: https://bugs.gentoo.org/916112 Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/portage/dbapi/vartree.py | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b9128b401def05cac46f9e6d66048e5a0d888b8 commit 2b9128b401def05cac46f9e6d66048e5a0d888b8 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-10-25 05:48:31 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-10-25 05:48:40 +0000 sys-apps/portage: add 3.0.54 Closes: https://bugs.gentoo.org/905869 Closes: https://bugs.gentoo.org/915551 Closes: https://bugs.gentoo.org/915896 Closes: https://bugs.gentoo.org/916106 Closes: https://bugs.gentoo.org/916108 Closes: https://bugs.gentoo.org/916112 Closes: https://bugs.gentoo.org/916116 Closes: https://bugs.gentoo.org/916139 Closes: https://bugs.gentoo.org/916141 Closes: https://bugs.gentoo.org/916142 Closes: https://bugs.gentoo.org/916149 Closes: https://bugs.gentoo.org/916182 Closes: https://bugs.gentoo.org/916231 Closes: https://bugs.gentoo.org/916235 Closes: https://bugs.gentoo.org/916240 Closes: https://bugs.gentoo.org/916242 Closes: https://bugs.gentoo.org/916245 Closes: https://bugs.gentoo.org/916248 Closes: https://bugs.gentoo.org/899898 Closes: https://bugs.gentoo.org/906129 Closes: https://bugs.gentoo.org/906156 Closes: https://bugs.gentoo.org/916031 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-3.0.54.ebuild | 238 +++++++++++++++++++++++++++++++++ 2 files changed, 239 insertions(+) |