Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634306 - dev-python/pypy-5.7.1+ fail to build without dev-python/pycparser
Summary: dev-python/pypy-5.7.1+ fail to build without dev-python/pycparser
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-15 08:37 UTC by Ilya Trukhanov
Modified: 2017-11-11 15:07 UTC (History)
1 user (show)

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


Attachments
Build log for dev-python/pypy-5.7.1 (build.log,49.89 KB, text/x-log)
2017-10-15 08:37 UTC, Ilya Trukhanov
Details
Output of "emerge --info" (emerge--info.txt,5.48 KB, text/plain)
2017-10-15 08:38 UTC, Ilya Trukhanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Trukhanov 2017-10-15 08:37:45 UTC
Created attachment 498710 [details]
Build log for dev-python/pypy-5.7.1

dev-python/pypy-5.7.1 and later versions appear to have a new build-time dependency on dev-python/cparser, which is missing from ebuilds, and without it the build fails. The 5.6.0 version seems to build fine.

Reproducible by unmerging dev-python/cparser and trying to emerge dev-python/pypy-5.7.1+
Comment 1 Ilya Trukhanov 2017-10-15 08:38:48 UTC
Created attachment 498712 [details]
Output of "emerge --info"
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-11-11 12:20:33 UTC
Ok, so we need to depend on dev-python/pycparser for CPython but not for PyPy since it bundles it inside its built-in CFFI.
Comment 3 Larry the Git Cow gentoo-dev 2017-11-11 15:07:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c39181e9cbaa1fc3d27531a0b6c207181e3bdf7f

commit c39181e9cbaa1fc3d27531a0b6c207181e3bdf7f
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2017-11-11 15:01:42 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2017-11-11 15:07:27 +0000

    dev-python/pypy: Inline deps and include dev-python/pycparser dep
    
    Replace the autogenerated || dependency with an inlined version,
    and include dev-python/pycparser in it when using CPython 2.7 (it is
    built-in in dev-python/pypy, through CFFI). Enforce the dependency
    only when USE=-low-memory, since otherwise CPython is not used, and we
    can't enforce the dependency on PyPy anyway as it would cause circular
    deps.
    
    Closes: https://bugs.gentoo.org/634306

 dev-python/pypy/pypy-5.9.0.ebuild | 13 ++++++++++++-
 dev-python/pypy/pypy-9999.ebuild  | 13 ++++++++++++-
 2 files changed, 24 insertions(+), 2 deletions(-)