From nobody Wed Mar 30 20:10:21 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C209B1A30FBA for ; Wed, 30 Mar 2022 20:10:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KTHbx3KkSz3sN8 for ; Wed, 30 Mar 2022 20:10:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4EC3519BD3 for ; Wed, 30 Mar 2022 20:10:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22UKALc3081186 for ; Wed, 30 Mar 2022 20:10:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22UKALdg081185 for ports-bugs@FreeBSD.org; Wed, 30 Mar 2022 20:10:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 262948] Mk/Uses/scons.mk works only with default python version, not 3.9 Date: Wed, 30 Mar 2022 20:10:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dvl@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648671021; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xnBsCa3XA/e5Q2NFgqcL6n9nObrVoyvuksD6W+iWyjY=; b=psFMVIcG+I4vkQ2TPLXxw7EyqJ825znbHSJ4oZVcWPDMPS9TOtp8wuJLFO7j8JK1s3tbwU HtZ5JbOD7lWbhBGVyPdYXKpIcRcx6illHRRMP83rhNO23qrQJHLZ3hiTepPsjzw/BIvqzZ hqdQ/A9yKJ0SaYHzSNm2W35o7GIg9LX4gO+ZrclePzQyYV5WIiecSd5oMLovquBLWU0Pn5 v5n1UBwy64qkB/GGk7DpSdOxCeQV681qahB6C5xmFlYPUwX8K8JvaKC+CALuh3KaDYTcoA Frt2SWfgVQcuFqMKiv8wCeaNXw8Yh+rUCYhXYCWffSrS5C0NNzG7asjWkqS6Ag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648671021; a=rsa-sha256; cv=none; b=ha9LeAzDfpIF9HklU0OtXUjo1DaGd2o95P/9gLNstvtAJtzb1tt4v0mC82JJtlAws6hLlD czUQECk85RAjiPP9RNqRzyTW+gWD/4NcoYUrIubG6cMYn3nV1C79MBp+gSyd7IjDeKCaq2 WmCtCqbY8IXSsMY2BCz7HkSXodeFMSljEMIBY3G/gimr+PYUlTNWKBuxAyHeLLJFCFyvXA hArvt0zKAyE1vEmAqYmXUSLDnDPUn3MO/IPmRxWtY7PxLDwucwj6IoEA7BY3oFJ8ZjUoc9 P/NVtIgPLByQDnPESnyIj21KmV+LZxQi67q5tW4doGLPx7HQ9j9a84XKOFAcLw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262948 Bug ID: 262948 Summary: Mk/Uses/scons.mk works only with default python version, not 3.9 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: dvl@FreeBSD.org CC: ports-bugs@FreeBSD.org When building databases/mongodb36 or databases/mongodb40 with DEFAULT_VERSIONS+=3Dpython=3D3.9, I would encounter this error: build/opt/mongo/db/repl/replication_coordinator.o failed: CalledProcessErro= r : Command '['/usr/local/bin/python3.8', 'buildscripts/idl/idlc.py', '--includ= e', 'src', 'src/mongo/db/logical_session_id.idl', '--write-dependencies']' retu= rned non-zero exit status 1. =3D=3D=3D> Compilation failed unexpectedly. I tracked it down to: =3D=3D=3D> mongodb36-3.6.23 depends on file: /usr/local/bin/python3.9 - f= ound =3D=3D=3D> mongodb36-3.6.23 depends on file: /usr/local/bin/scons-3.8 - n= ot found =3D=3D=3D> Installing existing package /packages/All/scons-py38-4.3.0.pkg [130R-head-py39-job-04] Installing scons-py38-4.3.0... [130R-head-py39-job-04] `-- Installing py38-setuptools-57.0.0... [130R-head-py39-job-04] | `-- Installing python38-3.8.13... [130R-head-py39-job-04] | `-- Extracting python38-3.8.13: .......... done [130R-head-py39-job-04] `-- Extracting py38-setuptools-57.0.0: .......... d= one [130R-head-py39-job-04] Extracting scons-py38-4.3.0: .......... done With help from skered, I found a fix: diff --git a/Mk/Uses/scons.mk b/Mk/Uses/scons.mk index 8c598a6983dc..18e5d9e457f2 100644 --- a/Mk/Uses/scons.mk +++ b/Mk/Uses/scons.mk @@ -14,6 +14,7 @@ IGNORE+=3D USES=3Dscons takes no arguments . endif _SCONS_PYTHON_VER=3D ${PYTHON3_DEFAULT} +_SCONS_PYTHON_VER=3D ${_PYTHON_VERSION} _SCONS_PYTHON_FLAVOR=3D py${_SCONS_PYTHON_VER:S|.||} There are other fixes to the ports themselves to get them to build, but tha= t's what gets the right and expected version of scons. The ports also needed devel/py-yaml and devel/py-cheetah3 as BUILD_DEPENDS. --=20 You are receiving this mail because: You are on the CC list for the bug.=