Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2024 22:28:07 +0200
From:      Baptiste Daroussin <bapt@freebsd.org>
To:        Gleb Popov <arrowd@freebsd.org>
Cc:        Charlie Li <vishwin@freebsd.org>, Joseph Mingrone <jrm@freebsd.org>,  Ruslan Makhmatkhanov <rm@freebsd.org>, ports-committers <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:  <7mwhr244z33obcsagjyozsbb5w2ydmiwgehmi5kp2pnihmhm7l@t4ztvn5e2z2f>
In-Reply-To: <zsdhjkmlvdt3lu6dqvra2ggx57dhqynaumowfhlccc52mqs3ye@47vp6jji5iqv>
References:  <202405291420.44TEKdBd073352@gitrepo.freebsd.org> <pupckib4hcq2tiqesuyxfodzz7q6rcjnzn6625qhsazzehaotd@gxm54qjiyxuq> <86frtu6rxz.fsf@phe.ftfl.ca> <xu6munpe2xqir4iwk7k4suprjvxym7dob5ebqz5yodphbaxe56@cf63vkgioyqe> <8d5be29c-94a7-4edd-bc61-c50e8b0ff754@freebsd.org> <lri7xdt6hkxf2udachtafxqijaa7lp2kbshhv7mi7ityqkc3mj@h63p5raqu4yr> <c0002bdd-92e3-4052-a53f-4ad39a9b3707@freebsd.org> <p4oqlbl6ou3zidsvkdrevjy7ts5fxk72uhuwsd6w7lf6njq3tq@wun5kelrgmsa> <CALH631mO=r4jF1qRt=sHYNmWyG0A=d7bKnYqEpUij-PT=Sy6vQ@mail.gmail.com> <zsdhjkmlvdt3lu6dqvra2ggx57dhqynaumowfhlccc52mqs3ye@47vp6jji5iqv>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue 04 Jun 12:14, Baptiste Daroussin wrote:
> On Tue 04 Jun 12:00, Gleb Popov wrote:
> > I don't quite get what's being talked about here. I update PHP packages the
> > same way as Python ones.
> > 
> > When I want to switch Nextcloud to a newer PHP version, I uninstall it,
> > then do an autoremove sweep, then install a new one.
> > 
> > I just upgraded my Python packages the same way - remove old applications,
> > autoremove deps, install the same applications with a new py311 prefix.
> > 
> > Getting conflicts is actually good there, as it either alerts me of a
> > py39-only software or remove py39 leftovers.
> 
> except that without a pkg set, the number of conflicts is so huge that it
> results in too complex problem for a solver to deal with and the outcome is it
> proposes the user to delete half of kde for example or many other bad scenario
> for the end user.
> 
> Perl upgrades and php upgrades do not generate such complicated issues because
> the way they we deal with them in the ports tree is way more upgradable
> friendly.
> 
> I don't know how this should be done with python, and maybe I should spend some
> time diving into it, but clearly the way it is done now is not friendly and
> something either on the technical side or the policy side should be done.
> 
> each time a procedure involves pkg set, it means we have not thought enough
> about it to make it user friendly.
> 
> Best regards,
> Bapt

Self replying: example of impossible solving issues generated by the current
policy in python world

let say you have py39-mutagen and py39-matrix-synapse installed.

There is absolutly no way for pkg to discover that because default python was
changed to python 3.11 then those package should now be named py311-mutagen and
py311-matrix-synapse.

Which means the solver will current propose to remove them and all they depend
on, as they do not exist anymore in remote repositories, or if we have stronger
rules than we have now pkg will die in a non solveable situation and let the
user try to figure out what should be done.

This is our role as ports committers to find something which don't let users be
trapped in such situation.

Best regards,
Bapt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7mwhr244z33obcsagjyozsbb5w2ydmiwgehmi5kp2pnihmhm7l>