Skip to content

Instantly share code, notes, and snippets.

@ruo91
Created April 2, 2022 07:29
Show Gist options
  • Select an option

  • Save ruo91/bfb446c1b3a182d49eb318e1e5245bd0 to your computer and use it in GitHub Desktop.

Select an option

Save ruo91/bfb446c1b3a182d49eb318e1e5245bd0 to your computer and use it in GitHub Desktop.
gentoo-virt-manager-build-error
ruo91 ~ # emerge --ask app-emulation/virt-manager
* IMPORTANT: 11 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] app-emulation/virt-manager-4.0.0 USE="gtk -policykit -sasl -test" PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10"
Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-emulation/virt-manager-4.0.0::gentoo
* virt-manager-4.0.0.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ]
* Using python3.9 to build
>>> Unpacking source...
>>> Unpacking virt-manager-4.0.0.tar.gz to /var/tmp/portage/app-emulation/virt-manager-4.0.0/work
>>> Source unpacked in /var/tmp/portage/app-emulation/virt-manager-4.0.0/work
>>> Preparing source in /var/tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0 ...
python3.9 setup.py configure --default-graphics=spice
error: Multiple top-level packages discovered in a flat-layout: ['po', 'ui', 'man', 'data', 'virtinst', 'virtManager'].
To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.
If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:
1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names
To find more information, look for "package discovery" on setuptools docs.
* ERROR: app-emulation/virt-manager-4.0.0::gentoo failed (configure phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 127: Called src_configure
* environment, line 3653: Called distutils-r1_src_configure
* environment, line 1477: Called _distutils-r1_run_foreach_impl 'python_configure'
* environment, line 724: Called distutils-r1_run_phase 'python_configure'
* environment, line 1451: Called python_configure
* environment, line 3172: Called esetup.py 'configure' '--default-graphics=spice'
* environment, line 1958: Called die
* The specific snippet of code:
* "${@}" || die -n;
*
* If you need support, post the output of `emerge --info '=app-emulation/virt-manager-4.0.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=app-emulation/virt-manager-4.0.0::gentoo'`.
* The complete build log is located at '/var/tmp/portage/app-emulation/virt-manager-4.0.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-emulation/virt-manager-4.0.0/temp/environment'.
* Working directory: '/var/tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0'
* S: '/var/tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0'
>>> Failed to emerge app-emulation/virt-manager-4.0.0, Log file:
>>> '/var/tmp/portage/app-emulation/virt-manager-4.0.0/temp/build.log'
* Messages for package app-emulation/virt-manager-4.0.0:
* ERROR: app-emulation/virt-manager-4.0.0::gentoo failed (configure phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 127: Called src_configure
* environment, line 3653: Called distutils-r1_src_configure
* environment, line 1477: Called _distutils-r1_run_foreach_impl 'python_configure'
* environment, line 724: Called distutils-r1_run_phase 'python_configure'
* environment, line 1451: Called python_configure
* environment, line 3172: Called esetup.py 'configure' '--default-graphics=spice'
* environment, line 1958: Called die
* The specific snippet of code:
* "${@}" || die -n;
*
* If you need support, post the output of `emerge --info '=app-emulation/virt-manager-4.0.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=app-emulation/virt-manager-4.0.0::gentoo'`.
* The complete build log is located at '/var/tmp/portage/app-emulation/virt-manager-4.0.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-emulation/virt-manager-4.0.0/temp/environment'.
* Working directory: '/var/tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0'
* S: '/var/tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment