• [gentoo-dev] [PATCH 0/3] python*-r1.eclass: dev-lang/pypy use

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Mon Oct 21 20:00:01 2024
    Hello,

    Here's a series of patches to update the eclasses for dev-lang/pypy dep.
    Or to put it more precisely, a bugfix for `python_gen_any_dep()`
    with USE dependencies, removal of dead code and then the dependency
    change.

    As noted in the commit message, dev-python/pypy3 will need to remain
    around at least for some time after the next subslot bump so that users
    get everything rebuilt with the new dep.

    This also requires pkgcheck update. The relevant changes have been
    merged already, so pending the release + stabilization + infra upgrade
    cycle. This should also gives us enough time to test the new package
    layout a bit before we commit to it finally (currently the system can gracefully switch back on revert).



    Michał Górny (3):
    python-any-r1.eclass: Fix python_gen_any_dep w/ PYTHON_REQ_USE
    python-any-r1.eclass: Remove obsolete variable
    python-utils-r1.eclass: Depend on dev-lang/pypy directly

    eclass/python-any-r1.eclass | 5 ++---
    eclass/python-utils-r1.eclass | 9 ++-------
    eclass/tests/python-utils-r1.sh | 4 +++-
    3 files changed, 7 insertions(+), 11 deletions(-)

    --
    2.47.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Mon Oct 21 20:00:01 2024
    Depend on `>=dev-lang/pypy-3.10:=` rather than the backwards
    compatibility `dev-python/pypy3` package. Note that the package needs
    to remain at least for some time after the next subslot bump, so that
    users rebuild all packages and get the updated dependency across
    the system.

    Note that this requires pkgcheck to be updated first.

    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    ---
    eclass/python-utils-r1.eclass | 9 ++-------
    eclass/tests/python-utils-r1.sh | 4 +++-
    2 files changed, 5 insertions(+), 8 deletions(-)

    diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 555b6c561a18..1c0e63a2621f 100644
    --- a/eclass/python-utils-r1.eclass
    +++ b/eclass/python-utils-r1.eclass
    @@ -450,20 +450,15 @@ _python_export() {
    local d
    case ${impl} in
    python*)
    - PYTHON_PKG_DEP="dev-lang/python:${impl#python}"
    + PYTHON_PKG_DEP="dev-lang/python:${impl#python}${PYTHON_REQ_USE:+[${PYTHON_REQ_USE}]}"
    ;;
    pypy3)
    - PYTHON_PKG_DEP="dev-python/${impl}:="
    + PYTHON_PKG_DEP=">=dev-lang/pypy-3.10:=[symlink${PYTHON_REQ_USE:+,${PYTHON_REQ_USE}}]"
    ;;
    *)
    die "Invalid implementation: ${impl}"
    esac

    - # use-dep
    - if [[ ${PYTHON_REQ_USE} ]]; then
    - PYTHON_PKG_DEP+=[${PYTHON_REQ_USE}]
    - fi
    -
    export PYTHON_PKG_DEP
    debug-print "${FUNCNAME}: PYTHON_PKG_DEP = ${PYTHON_