tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg_alternatives broken?
Hi!
After upgrading to Python 3.14, I wanted 'python' to be 'python3.14' -
it was still starting python3.13.
However, I can't get pkg_alternatives to switch to that. I tried both
pkg_alternatives manual python314
pkg_alternatives manual python314-3.14.0
and it helpfully prints
# pkg_alternatives manual python314
pkg_alternatives: modifying configuration from `/usr/pkg/etc/pkg_alternatives/usr/pkg/bin/idle'
pkg_alternatives: modifying configuration from `/usr/pkg/etc/pkg_alternatives/usr/pkg/bin/pydoc'
pkg_alternatives: modifying configuration from `/usr/pkg/etc/pkg_alternatives/usr/pkg/bin/python'
pkg_alternatives: modifying configuration from `/usr/pkg/etc/pkg_alternatives/usr/pkg/bin/python3'
but it's not doing what it's supposed to:
# cat /usr/pkg/etc/pkg_alternatives/usr/pkg/bin/*
/usr/pkg/bin/idle3.13
/usr/pkg/bin/pydoc3.13
/usr/pkg/bin/python3.13
/usr/pkg/bin/python3.13
Deleting pkg_alternatives and /usr/pkg/etc/pkg_alternatives didn't
help either.
Even worse, when I manually edit the wrapper files to call the 3.14
versions and then call pkg_alternatives, it switches back to 3.13:
# pkg_alternatives manual python314
pkg_alternatives: modifying configuration from `/usr/pkg/etc/pkg_alternatives/usr/pkg/bin/idle'
pkg_alternatives: modifying configuration from `/usr/pkg/etc/pkg_alternatives/usr/pkg/bin/pydoc'
pkg_alternatives: modifying configuration from `/usr/pkg/etc/pkg_alternatives/usr/pkg/bin/python'
pkg_alternatives: modifying configuration from `/usr/pkg/etc/pkg_alternatives/usr/pkg/bin/python3'
# cat /usr/pkg/etc/pkg_alternatives/usr/pkg/bin/*
/usr/pkg/bin/idle3.13
/usr/pkg/bin/pydoc3.13
/usr/pkg/bin/python3.13
/usr/pkg/bin/python3.13
Am I misunderstanding how to use this or is this a bug?
Thomas
Home |
Main Index |
Thread Index |
Old Index