Received: by mail.netbsd.org (Postfix, from userid 605) id 0F62684EB7; Sun, 2 Oct 2022 22:58:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 3E37A84E8E for ; Sun, 2 Oct 2022 22:58:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id PYKF5aS56M6X for ; Sun, 2 Oct 2022 22:58:52 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id A8C8A84C71 for ; Sun, 2 Oct 2022 22:58:52 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 978D3FA90; Sun, 2 Oct 2022 22:58:52 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1664751532285790" MIME-Version: 1.0 Date: Sun, 2 Oct 2022 22:58:52 +0000 From: "Greg Troxel" Subject: CVS commit: pkgsrc/lang/python To: pkgsrc-changes@NetBSD.org Reply-To: gdt@netbsd.org X-Mailer: log_accum Message-Id: <20221002225852.978D3FA90@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1664751532285790 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: gdt Date: Sun Oct 2 22:58:52 UTC 2022 Modified Files: pkgsrc/lang/python: pyversion.mk Log Message: pyversion.mk: Define PYPKGPREFIX in error case The specification for pyversion.mk says that it defines PYPKGPREFIX and PYVERSSUFFIX. Various buildlink files rely on these being defined, as they are tested without guarding them for being empty. When there is no valid python version, _PYTHON_VERSION was set to "none", and PKG_FAIL_REASON defined, so the user gets a reasonable error. However, if a buildlink3 uses an unguarded PYPKGPREFIX, a syntax error results, and the PKG_FAIL_REASON is not display. This commit defines the two variables to "none" in the case of no valid version, mirroring the treatment of _PYTHON_VERSION and correcting a failure to follow the specification. In this case the build is going to fail one way or another, but it's vastly better to have a useful error message. (Tested earlier, but deferred during freeze.) To generate a diff of this commit: cvs rdiff -u -r1.141 -r1.142 pkgsrc/lang/python/pyversion.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1664751532285790 Content-Disposition: inline Content-Length: 735 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/python/pyversion.mk diff -u pkgsrc/lang/python/pyversion.mk:1.141 pkgsrc/lang/python/pyversion.mk:1.142 --- pkgsrc/lang/python/pyversion.mk:1.141 Thu Jun 30 10:45:36 2022 +++ pkgsrc/lang/python/pyversion.mk Sun Oct 2 22:58:52 2022 @@ -1,4 +1,4 @@ -# $NetBSD: pyversion.mk,v 1.141 2022/06/30 10:45:36 nia Exp $ +# $NetBSD: pyversion.mk,v 1.142 2022/10/02 22:58:52 gdt Exp $ # This file determines which Python version is used as a dependency for # a package. @@ -131,6 +131,8 @@ MULTI+= PYTHON_VERSION_REQD=${_PYTHON_VE .if !defined(_PYTHON_VERSION) _PYTHON_VERSION= none PKG_FAIL_REASON+= "No valid Python version" +PYPKGPREFIX= none +PYVERSSUFFIX= none .endif # Additional CONFLICTS --_----------=_1664751532285790--