On 2021-May-13, at 14:27, Tatsuki Makino <tatsuki_makino at hotmail.com> wrote:
> 20210425 of UPDATING doesn't take into care the environment where python37 > and python38 are installed at the same time. > This is a problem for people who installed 3.8 when 3.7 was the default. > (e.g. user of graphics/blender) > > Can you experiment with the commands I've been thinking about in anticipation > of 3.9 becoming the default :) > > # check dependencies. > pkg check -d -n -a > # gather the names of packages that will need to be reinstalled. > pkg query -e '( %n !~ py37-* && %n !~ *-py37-* )' %n-:%dn | grep -e > ':python37\|:py37-\|:.*-py37-' | cut -d : -f 1 | sort -u > /tmp/py37.txt > # gather the origins of manually installed packages where the FLAVOR will > change. > pkg query -e '( %n ~ py37-* || %n ~ *-py37-* ) && %a = 0 && %#''r = 0' %o:%dn > | grep -e ':python37\|:py37-\|:.*-py37-' | cut -d : -f 1 | sort -u > > /tmp/py37-o.txt > # delete the py37 packages > pkg delete -f -g py37-\* \*-py37-\* > # install the package of py37-o.txt > xargs -o -- portmaster (portmaster options of your choice) < /tmp/py37-o.txt > # reinstall the package of py37.txt > xargs -o -- portmaster (portmaster options of your choice) < /tmp/py37.txt > My context is not based on using portmaster at all. I do not create environments with multiple versions of python in use (or other such potential conflicts). So: It will not be me that tests such commands for handling such contexts. May be Bob P. will test your sequence. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) _______________________________________________ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"