From owner-freebsd-ports-bugs@freebsd.org Tue Sep 17 10:23:10 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 83095FE355 for ; Tue, 17 Sep 2019 10:23:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46XfML2Tmqz3L0F for ; Tue, 17 Sep 2019 10:23:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 55213FE354; Tue, 17 Sep 2019 10:23:10 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 54E41FE353 for ; Tue, 17 Sep 2019 10:23:10 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46XfML0kVKz3L0D for ; Tue, 17 Sep 2019 10:23:10 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F0BA27107 for ; Tue, 17 Sep 2019 10:23:09 +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 x8HAN9BS084764 for ; Tue, 17 Sep 2019 10:23:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x8HAN9EU084757 for ports-bugs@FreeBSD.org; Tue, 17 Sep 2019 10:23:09 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 240634] Build uses Python 2.7 on system that has Python 3.6 as default Python version Date: Tue, 17 Sep 2019 10:23:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vince@vincentbentley.co.uk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@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 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 MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Sep 2019 10:23:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240634 Bug ID: 240634 Summary: Build uses Python 2.7 on system that has Python 3.6 as default Python version Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: vince@vincentbentley.co.uk The maintenance period of Python 2.7 ends on 1 January 2020. I noticed that building Rust under Poudriere on FreeBSD 12.0p10 uses Python= 2.7 even when the build host has been configured to default to Python 3.6 . Using Python 2.7 does not prevent building Rust successfully in 2019 but it= may become an issue in three and a half months time. Excerpts from Poudriere build log for Rust... --CONFIGURE_ENV-- MAKE=3Dgmake PKG_CONFIG=3Dpkgconf PYTHON=3D"/usr/local/bin/python2.7" XDG_DATA_HOME=3D/wrkdirs/usr/ports/lang/rust/work=20 XDG_CONFIG_HOME=3D/wrkdirs/usr/ports/lang/rust/work=20 HOME=3D/wrkdirs/usr/ports/lang/rust/work TMPDIR=3D"/tmp" PATH=3D/wrkdirs/usr/ports/lang/rust/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin= :/usr/local/sbin:/usr/local/bin:/root/bin SHELL=3D/bin/sh CONFIG_SHELL=3D/bin/sh CMAKE_PREFIX_PATH=3D"/usr/local" --End CONFIGURE_ENV-- ... --PLIST_SUB-- RUST_TARGET=3Dx86_64-unknown-freebsd PORTDOCS=3D"" PYTHON_INCLUDEDIR=3Dinclude/python2.7 PYTHON_LIBDIR=3Dlib/python2.7=20 PYTHON_PLATFORM=3Dfreebsd12 PYTHON_SITELIBDIR=3Dlib/python2.7/site-package= s=20 PYTHON_SUFFIX=3D27 PYTHON_VER=3D2.7 PYTHON_VERSION=3Dpython2.7 PYTHON2=3D= "" PYTHON3=3D"@comment " OSREL=3D12.0 PREFIX=3D%D LOCALBASE=3D/usr/local=20 RESETPREFIX=3D/usr/local LIB32DIR=3Dlib DOCSDIR=3D"share/doc/rust"=20 EXAMPLESDIR=3D"share/examples/rust" DATADIR=3D"share/rust" WWWDIR=3D"www/= rust"=20 ETCDIR=3D"etc/rust" --End PLIST_SUB-- ... =3D=3D=3D> Returning to build of rust-1.37.0 =3D=3D=3D> rust-1.37.0 depends on file: /usr/local/bin/python2.7 - not fo= und =3D=3D=3D> Installing existing package /packages/All/python27-2.7.16_1.txz [s205] Installing python27-2.7.16_1... [s205] `-- Installing libffi-3.2.1_3... [s205] `-- Extracting libffi-3.2.1_3: .......... done [s205] Extracting python27-2.7.16_1: .......... done ... =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D> Building for rust-1.37.0 cd /wrkdirs/usr/ports/lang/rust/work/rustc-1.37.0-src && /usr/bin/env HOME=3D"/wrkdirs/usr/ports/lang/rust/work" LIBGIT2_SYS_USE_PKG_CONFIG=3D1= =20 LIBSSH2_SYS_USE_PKG_CONFIG=3D1 OPENSSL_DIR=3D"/usr" /usr/local/bin/python= 2.7 /wrkdirs/usr/ports/lang/rust/work/rustc-1.37.0-src/x.py build --verbose=20 --config ./config.toml --jobs 4 --=20 You are receiving this mail because: You are the assignee for the bug.=