pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/54791: python version choosing logic doesn't test what's installed

>Number:         54791
>Category:       pkg
>Synopsis:       python version choosing logic doesn't test what's installed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 21 08:55:00 +0000 2019
>Originator:     David Holland
>Release:        NetBSD-8 (oldish), pkgsrc 20191220
System: n/a
Architecture: i386
Machine: i386

The logic in that picks a Python version to depend on
   # prefer an already installed version, in order of "accepted"
but it doesn't actually do it.

The consequence of this is that if you set PYTHON_VERSION_DEFAULT back
(in this case setting it to 27 is necessary at least for a while for
migration reasons)... even if you install say python37, a lot of
things go and build bleeding-edge python instead, unexpectedly, and
then the right modules aren't there and other parts of the build fail.

I think this is a regression, in that I'm pretty sure it used to work
as described. But it's been a while since it mattered.


install python27 and python37
cd devel/glib2-tools	(or quite a few other things)
watch it go build python38

(then confirm in


Home | Main Index | Thread Index | Old Index