Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Sep 2019 10:23:09 +0000
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
Message-ID:  <bug-240634-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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<phase=
: build          >=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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240634-7788>