Date: Sun, 19 Jun 2016 07:28:28 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 209204] Changing default Python version unduly difficult Message-ID: <bug-209204-13-RkCyHi5oFc@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-209204-13@https.bugs.freebsd.org/bugzilla/> References: <bug-209204-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209204 --- Comment #13 from Iblis Lin <iblis@hs.ntnu.edu.tw> --- Created attachment 171563 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D171563&action= =3Dedit propose patch Please give this patch a try, It follows the rule i proposed in bug 209551, comment 1. Here describe the testing flow: 1. prepare a new jail 2. check the current priority of `${LOCALBASE}/bin/python` $ pkg install python # should create a symlink `/usr/local/bin/python` $ cd /usr/ports/databases/py-sqlite3 $ make -V PYTHON_VERSION DEFAULT_VERSIONS=3Dpython=3D3.5 python2.7 # the symlink win now 3. apply this patch 4. check that DEFAULT_VERSIONS got higher priority $ cd /usr/ports/databases/py-sqlite3 $ make -V PYTHON_VERSION python2.7 $ make -V PYTHON_VERSION DEFAULT_VERSIONS=3Dpython=3D3.5 python3.5 5. one more check for priority of symlink `/usr/local/bin/python` $ pkg delete python $ pkg install python3 # we will get python3.4 installed $ cd /usr/local/bin $ ln -s python3 python $ ls -l python lrwxr-xr-x 1 root wheel 7 Jun 19 14:16 python@ -> python3 $ cd /usr/ports/databases/py-sqlite3 $ make -V PYTHON_VERSION DEFAULT_VERSIONS=3Dpython=3D3.5 python3.5 $ make -V PYTHON_VERSION python3.4 # ya! symlink auto-detect correct! --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209204-13-RkCyHi5oFc>