Github messages for voidlinux
 help / color / mirror / Atom feed
From: ahesford <ahesford@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Closed]: New package: python3.11 3.11.6
Date: Fri, 13 Oct 2023 03:50:32 +0200	[thread overview]
Message-ID: <20231013015032.bt9ShqTHE7rtnK6WVEKgkO9CY7dMuzuf154n03-JYhA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46631@inbox.vuxu.org>

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

There's a closed pull request on the void-packages repository

New package: python3.11 3.11.6
https://github.com/void-linux/void-packages/pull/46631

Description:
Python minor upgrades are all-or-nothing commitments to Void. Working through revbumps and runtime tests uncover a lot of incompatibilities, but runtime testing is limited to whatever testers happen to use. We are all familiar with the post-upgrade press to fix the tens of broken packages that shake out once the broader community gets the packages.

Even worse, large and sometimes important projects (`firefox`, `chromium` and `electron*`) use Python for their build processes and tend to slip past the upgrade testing procedure. These packages generally FTBFS and can require extensive patching of a litany of vendored Python packages. This is a painful process but, if we waited for upstream fixes for everything, we might lag behind several Python minor cycles. (Firefox *still* requires patching for Python 3.11.)

To make this upgrade easier in the future, I propose to provide the `python3-legacy` package, which will lag behind `python3` by at least one minor version. This package (and its `-devel` subpackage) provide us a few nice advantages:
1. It is sufficient to bootstrap a virtual environment. Users that have packages fundamentally incompatible with new Python can install `python3-legacy` and create an older venv that will provide some consistency.
2. It can live alongside the system `python3`, so users that have existing virtual environments which link against the prior Python libraries can be kept functional by installing `python3-legacy`. (Right now, any existing venvs will break on upgrade because the requisite shared library will be removed.)
3. Our `firefox`, `electron19` and `electron24` packages can use the legacy version for builds, so we avoid breaking these major packages without being forced to patch them. (I have started builds of `electron*` and watched them continue through ~7k files so far, and I've watched `firefox` for the first several minutes. I'll need to actually run through the complete builds to be sure.)

Note that `python3-legacy` is NOT intended to be an alternative to the system Python. It is a minimal installation ONLY and its sole purpose for end users is to create virtual environments. We should NEVER allow any package in the repository to provide files in the `site-packages` tree for this version or link against its `libpython`. (To enforce this, I am deliberately leaving `python3-legacy` out of `common/shlibs`.) Any future upgrade of `python3` must still ensure that *every* Python package at least installes in the new `$py3_sitelib`.

I've left `idle` out of this package but kept `tkinter` built in, although we can drop `tkinter` or add `idle` if others think there is merit in doing so.

#### Testing the changes
- I tested the changes in this PR: **IN PROCESS**

[ci skip]

cc: @void-linux/pkg-committers 

      parent reply	other threads:[~2023-10-13  1:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-12  3:02 [PR PATCH] New package: python3-legacy 3.11.6 ahesford
2023-10-12  3:05 ` Vaelatern
2023-10-12  3:16 ` [PR PATCH] [Updated] " ahesford
2023-10-12  3:17 ` ahesford
2023-10-12  3:18 ` ahesford
2023-10-12  7:26 ` New package: python3.11 3.11.6 classabbyamp
2023-10-12 11:44 ` [PR PATCH] [Updated] " ahesford
2023-10-12 11:46 ` ahesford
2023-10-12 11:49 ` leahneukirchen
2023-10-12 13:05 ` [PR PATCH] [Updated] " ahesford
2023-10-13  1:50 ` ahesford
2023-10-13  1:50 ` ahesford [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=20231013015032.bt9ShqTHE7rtnK6WVEKgkO9CY7dMuzuf154n03-JYhA@z \
    --to=ahesford@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).