Can't emerge protobuf-python-5.28.2 #4117

Closed
opened 2024-11-15 20:17:02 +01:00 by RayOfLight · 1 comment

Hello, I'm getting

 * Messages for package dev-python/protobuf-python-5.28.2:

 * ERROR: dev-python/protobuf-python-5.28.2::HomeAssistantRepository failed (compile phase):
 *   Unable to obtain build-backend from pyproject.toml
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3927:  Called distutils-r1_src_compile
 *   environment, line 1902:  Called _distutils-r1_run_foreach_impl 'python_compile'
 *   environment, line  751:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 3533:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 3083:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 3081:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 1186:  Called distutils-r1_run_phase 'python_compile'
 *   environment, line 1886:  Called python_compile
 *   environment, line 3329:  Called distutils-r1_python_compile
 *   environment, line 1708:  Called distutils_pep517_install '/var/tmp/portage/dev-python/protobuf-python-5.28.2/work/protobuf-28.2/python-python3_11/install'
 *   environment, line 2223:  Called _distutils-r1_get_backend
 *   environment, line  542:  Called die
 * The specific snippet of code:
 *           die "Unable to obtain build-backend from pyproject.toml";                                                                                                                                            *
 * If you need support, post the output of `emerge --info '=dev-python/protobuf-python-5.28.2::HomeAssistantRepository'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/protobuf-python-5.28.2::HomeAssistantRepository'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/protobuf-python-5.28.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/protobuf-python-5.28.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/protobuf-python-5.28.2/work/protobuf-28.2/python'
 * S: '/var/tmp/portage/dev-python/protobuf-python-5.28.2/work/protobuf-28.2/python'

I don't know why or how it happens, maybe is because of some protobuf-python -> protobuf main repo ebuild refactoring?

Hello, I'm getting ``` * Messages for package dev-python/protobuf-python-5.28.2: * ERROR: dev-python/protobuf-python-5.28.2::HomeAssistantRepository failed (compile phase): * Unable to obtain build-backend from pyproject.toml * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 3927: Called distutils-r1_src_compile * environment, line 1902: Called _distutils-r1_run_foreach_impl 'python_compile' * environment, line 751: Called python_foreach_impl 'distutils-r1_run_phase' 'python_compile' * environment, line 3533: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile' * environment, line 3083: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile' * environment, line 3081: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_compile' * environment, line 1186: Called distutils-r1_run_phase 'python_compile' * environment, line 1886: Called python_compile * environment, line 3329: Called distutils-r1_python_compile * environment, line 1708: Called distutils_pep517_install '/var/tmp/portage/dev-python/protobuf-python-5.28.2/work/protobuf-28.2/python-python3_11/install' * environment, line 2223: Called _distutils-r1_get_backend * environment, line 542: Called die * The specific snippet of code: * die "Unable to obtain build-backend from pyproject.toml"; * * If you need support, post the output of `emerge --info '=dev-python/protobuf-python-5.28.2::HomeAssistantRepository'`, * the complete build log and the output of `emerge -pqv '=dev-python/protobuf-python-5.28.2::HomeAssistantRepository'`. * The complete build log is located at '/var/tmp/portage/dev-python/protobuf-python-5.28.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/protobuf-python-5.28.2/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/protobuf-python-5.28.2/work/protobuf-28.2/python' * S: '/var/tmp/portage/dev-python/protobuf-python-5.28.2/work/protobuf-28.2/python' ``` I don't know why or how it happens, maybe is because of some protobuf-python -> protobuf main repo ebuild refactoring?

Indeed; until @onkelbeh changes the ebuild, you could add the following to the file /etc/portage/profile/package.provided
(create the file if it does not exist; remove the items here once the ebuild has been updated)

# provided by dev-python/jinja2-3.1.4
dev-python/jinja-3.1.4
# proviced by dev-python/protobuf-4.25.4
dev-python/protobuf-python-4.25.4

See also #4116

Indeed; until @onkelbeh changes the ebuild, you could add the following to the file `/etc/portage/profile/package.provided` (create the file if it does not exist; remove the items here once the ebuild has been updated) ``` # provided by dev-python/jinja2-3.1.4 dev-python/jinja-3.1.4 # proviced by dev-python/protobuf-4.25.4 dev-python/protobuf-python-4.25.4 ``` See also #4116
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: onkelbeh/HomeAssistantRepository#4117
No description provided.