Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 735098 - x11-wm/qtile-0.16.0 fails to compile
Summary: x11-wm/qtile-0.16.0 fails to compile
Status: RESOLVED DUPLICATE of bug 734970
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-01 18:20 UTC by Agostino Sarubbo
Modified: 2020-08-29 13:03 UTC (History)
0 users

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


Attachments
build.log (build.log,11.32 KB, text/plain)
2020-08-01 18:20 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-08-01 18:20:33 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: x11-wm/qtile-0.16.0 fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2020-08-01 18:20:39 UTC
Created attachment 652110 [details]
build.log

build log and emerge --info
Comment 2 Denis 2020-08-11 14:35:58 UTC
I guess my situation takes it a little bit further. I've got setuptools_scm installed and it was unable to detect qtile version. My build.log:

 * Package:    x11-wm/qtile-0.16.0
 * Repository: gentoo
 * Maintainer: zlogene@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_7 userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking qtile-0.16.0.tar.gz to /var/tmp/portage/x11-wm/qtile-0.16.0/work
>>> Source unpacked in /var/tmp/portage/x11-wm/qtile-0.16.0/work
>>> Preparing source in /var/tmp/portage/x11-wm/qtile-0.16.0/work/qtile-0.16.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-wm/qtile-0.16.0/work/qtile-0.16.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-wm/qtile-0.16.0/work/qtile-0.16.0 ...
 * python3_7: running distutils-r1_run_phase distutils-r1_python_compile
python3.7 setup.py build -j 3
Traceback (most recent call last):
  File "setup.py", line 95, in <module>
    install_requires=["cffi>=1.0.0"],
  File "/usr/lib/python3.7/site-packages/setuptools/__init__.py", line 144, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.7/distutils/core.py", line 108, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python3.7/site-packages/setuptools/dist.py", line 426, in __init__
    k: v for k, v in attrs.items()
  File "/usr/lib/python3.7/distutils/dist.py", line 292, in __init__
    self.finalize_options()
  File "/usr/lib/python3.7/site-packages/setuptools/dist.py", line 717, in finalize_options
    ep(self)
  File "/usr/lib/python3.7/site-packages/setuptools/dist.py", line 724, in _finalize_setup_keywords
    ep.load()(self, ep.name, value)
  File "/usr/lib/python3.7/site-packages/setuptools_scm/integration.py", line 17, in version_keyword
    dist.metadata.version = _get_version(config)
  File "/usr/lib/python3.7/site-packages/setuptools_scm/__init__.py", line 148, in _get_version
    parsed_version = _do_parse(config)
  File "/usr/lib/python3.7/site-packages/setuptools_scm/__init__.py", line 118, in _do_parse
    "use git+https://github.com/user/proj.git#egg=proj" % config.absolute_root
LookupError: setuptools-scm was unable to detect version for '/var/tmp/portage/x11-wm/qtile-0.16.0/work/qtile-0.16.0'.

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
 * ERROR: x11-wm/qtile-0.16.0::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 2970:  Called distutils-r1_src_compile
 *   environment, line 1252:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  495:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2586:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2089:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2087:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  879:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1243:  Called distutils-r1_python_compile
 *   environment, line 1112:  Called esetup.py 'build' '-j' '3'
 *   environment, line 1633:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
 *
 * If you need support, post the output of `emerge --info '=x11-wm/qtile-0.16.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-wm/qtile-0.16.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-wm/qtile-0.16.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-wm/qtile-0.16.0/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-wm/qtile-0.16.0/work/qtile-0.16.0'
 * S: '/var/tmp/portage/x11-wm/qtile-0.16.0/work/qtile-0.16.0'
Comment 3 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-08-29 13:03:43 UTC

*** This bug has been marked as a duplicate of bug 734970 ***