From nobody Mon Jun 3 15:09:27 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VtHFP3fVjz5Mfm9; Mon, 03 Jun 2024 15:09:29 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VtHFP370Yz4s8g; Mon, 3 Jun 2024 15:09:29 +0000 (UTC) (envelope-from bapt@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717427369; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9Db1bHCs/8v7ESYlgR7LAE4vQGO/Cm0jrnLAhMQ2Usw=; b=crVBP8pHkGTHn70/w+59OEPjDMwK1oAPlk827xoAUiWcQnJFX+CXpOPp2HA4U9Sx8i/s7w INeQ7cdC5ZW5IR4scdZXivC3DxvTzDLHqPJwM5Yxu7qZJzfTN7Zia3+iWjxKlhEXL4kbbr MY/NdBmuEibWC0rR40uS5UqJf4W1hQquRP5/DmZmwcgHgPUU5RW4mkfiI929Y77rD1wqTY nKl1hEBlicFFWOoJm2lpHSp8h9/s3Pghv3cAteGwTPCkoseywMT4A5eS+fIJSd/7q+vojZ HOaKgHZARVT42+s5Pk88WvLnid96jSa4qKu6pm8AMSgFUzMGiVyJzD80TxYg4w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717427369; a=rsa-sha256; cv=none; b=IZxzznjpox4Zl6i5sIJ2ZQkuzJNUHzMheb3khwRLJ/YpucTChBr/KA384Z4Cgwmh3yhp0j x27bc9t3P9xizOS8TJlIwOSAemqinUAIVWAcaLkJ2EWEm3IlmG85oKqtqivOSDPnhCsRIy bQjb9fQD3w2DjgOUBl6S/nKqvgsU5k3iQXovtKBGnJCl85nvzpoztwtPVJCVjWCw4dQLox yX0k87EWkVhr3wodKEt2j7MmSr5LZM4OmUtSmAkF73U9Zdal5BBkTMsw4gO7XY7CP8Zcg4 kGX7zrUULhGY2PIpwTohxDZBP1wEOF0au+Zn8qmOYsZO8o38lflVrv0xX1gbZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717427369; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9Db1bHCs/8v7ESYlgR7LAE4vQGO/Cm0jrnLAhMQ2Usw=; b=cqDtznzvstRuEctGQMYtvWd1Zje2iHrr94KXUZQC2CqhywS1O7dJBXePawadZoe+mcaCIt dT3qzd+3cRbAM1tjZVIVDaUS0Kk5cnIhCPht2iRxhp5SKyLAIuvhBv+sbGJNhLAqOOkOcV 4Lgod9Svy0pIkz0L3hFM4dCNybb+17H0Ww4T9AmheYGu15ji+Ps8yX2E5kCu7RLdV/F/+e wz8TQYudN7YdMS35seHIWe3SrwVG+jKJ2Ls+1u8UrOnOLA4JqeZVIQnCmhToQEqiUaxCMM x/1xTjZ/Z/onZOnIJHHhf23m3XDK/qaeycs5rf4cWAvEkG3EyskvrLAgZBzhlw== Received: from aniel.nours.eu (nours.eu [IPv6:2001:41d0:8:3a4d::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VtHFP1vVqzhJB; Mon, 3 Jun 2024 15:09:29 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id EA768D1181; Mon, 3 Jun 2024 17:09:27 +0200 (CEST) Date: Mon, 3 Jun 2024 17:09:27 +0200 From: Baptiste Daroussin To: Joseph Mingrone Cc: Ruslan Makhmatkhanov , ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Subject: Re: git: 988da7290c99 - main - ./UPDATING: mention the python default version change Message-ID: References: <202405291420.44TEKdBd073352@gitrepo.freebsd.org> <86frtu6rxz.fsf@phe.ftfl.ca> List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86frtu6rxz.fsf@phe.ftfl.ca> On Mon 03 Jun 10:07, Joseph Mingrone wrote: > On Mon, 2024-06-03 at 15:45, Baptiste Daroussin wrote: > > > On Wed 29 May 14:20, Ruslan Makhmatkhanov wrote: > >> The branch main has been updated by rm: > > >> URL: https://cgit.FreeBSD.org/ports/commit/?id=988da7290c997a29581bb828bd59257060d8ddbc > > >> commit 988da7290c997a29581bb828bd59257060d8ddbc > >> Author: Ruslan Makhmatkhanov > >> AuthorDate: 2024-05-29 14:20:07 +0000 > >> Commit: Ruslan Makhmatkhanov > >> CommitDate: 2024-05-29 14:20:07 +0000 > > >> ./UPDATING: mention the python default version change > >> --- > >> UPDATING | 33 +++++++++++++++++++++++++++++++++ > >> 1 file changed, 33 insertions(+) > > >> diff --git a/UPDATING b/UPDATING > >> index 7a5fc11c35ec..f0077905cb2d 100644 > >> --- a/UPDATING > >> +++ b/UPDATING > >> @@ -5,6 +5,39 @@ they are unavoidable. > >> You should get into the habit of checking this file for changes each time > >> you update your ports collection, before attempting any port upgrades. > > >> +20240529: > >> + AFFECTS: users of python > >> + AUTHOR: rm@FreeBSD.org > >> + > >> + The default version of python3 and python was switched to 3.11. > >> + > >> + For ports users wanting to keep version 3.9 as default, > >> + add DEFAULT_VERSIONS+= python=3.9 python3=3.9 to make.conf > >> + > >> + Following procedures may ease the upgrade: > >> + > >> + For users of pre-build packages: > >> + # sh > >> + # for i in $(pkg query -g %n 'py39-*'); do pkg set -yn ${i}:py311-${i#py39-}; done > > > I don't think it is a good advice at all, pkg set should not be necessary at > > all, what case are we trying to fix by providing this advice? > > A user has the package py39-blah, which was explicitly installed. Now, > when the user does `pkg upgrade`, py311-blah won't replace py39-blah. > IMO, that's a problem. > > We gave similar advice when the emacs ports had version information in > the package name (other than PKGVERSION at the end). And I find the advice on emacs problematic as well and make things complicated for users. In the case of python, final packages should not wear a pyXXX prefix, so during upgrades for users pkg upgrade will just propose to install the new set of dependencies which will conflicts with the old one and as such propose to remove them. (this is not done in the python world, at least not always and causes tons of problems). I am not an emacs user so I don't know what have been done there and can't argue. In any case the pkg set was a transition tool to cope with areas where we have "weak" packaging rules, which means each time pkg set is necessary we have to think how we can fix our packaging rules instead. Best regards, Bapt