NetBSD Problem Report #54791

From  Sat Dec 21 08:51:29 2019
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 7B9AC7A14B
	for <>; Sat, 21 Dec 2019 08:51:28 +0000 (UTC)
Message-Id: <>
Date: Sat, 21 Dec 2019 03:50:32 -0500 (EST)
Subject: python version choosing logic doesn't test what's installed
X-Send-Pr-Version: 3.95

>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


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.45 2018/12/21 14:23:33 maya Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.