public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Slotting PyPy
Date: Sun, 20 Oct 2024 12:46:28 +0200	[thread overview]
Message-ID: <3413fe34b8a530c98685a2b6bbf00eaee6e3c02f.camel@gentoo.org> (raw)
In-Reply-To: <c5725e83a0aa69054cd9edb7a8d2ada7ab8e537c.camel@gentoo.org>

[-- Attachment #1: Type: text/plain, Size: 1569 bytes --]

On Thu, 2024-10-17 at 14:12 +0200, Michał Górny wrote:
> The ebuilds could now depend e.g. on:
> 
>   >=dev-lang/pypy-3.10:=
> 
> This would ensure that only slots newer than 3.10 are acceptable,
> and that packages are rebuilt (as they are right now) once we introduce
> 3.11 slot.  Then, after the transitional period we'd update it to:
> 
>   >=dev-lang/pypy-3.11:=
> 
> and so on.
> 

Ok, I've missed something significant here.

Along all the reshuffling, dev-python/pypy3 is not really a virtual
package but supplies /usr/bin/pypy3 (vs. pypy3.x supplied by dev-
python/pypy3_x).  Switching to one-package model would require us to
install "pypy3" as part of the baseline package, and that is going to
make transitions less friendly.

In other words, with the old approach, you could have pypy3.10
and pypy3.11 installed simultaneously, and switch to 3.11 via upgrading
dev-python/pypy3 metapackage.  With the new approach, we won't be able
to have fully coexisting pypy3.10 and pypy3.11 packages without them
conflicting over /usr/bin/pypy3.  During the transition period, we'd
have to have something like USE=symlink to clearly distinguish the PyPy
version that satisfies PYTHON_TARGETS from the other one.

Not saying it's a fatal flaw but certainly makes things less nice.
I don't see any "obviously nice" solutions, other than having a separate
metapackage for the purpose of keeping /usr/bin/pypy3.  But then,
merging dev-python/pypy3_x becomes a meaningless implementation detail.

-- 
Best regards,
Michał Górny


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 512 bytes --]

      parent reply	other threads:[~2024-10-20 10:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-17 12:12 [gentoo-dev] Slotting PyPy Michał Górny
2024-10-17 12:47 ` Jérôme Carretero
2024-10-17 12:59   ` Michał Górny
2024-10-19 10:42 ` Sam James
2024-10-19 12:04   ` Michał Górny
2024-10-20  9:03     ` Sam James
2024-10-19 15:39 ` Mitchell Dorrell
2024-10-20 10:46 ` Michał Górny [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3413fe34b8a530c98685a2b6bbf00eaee6e3c02f.camel@gentoo.org \
    --to=mgorny@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox