Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 May 2014 21:09:25 +0400
From:      Dmitry Sivachenko <trtrmitya@gmail.com>
To:        python@freebsd.org
Subject:   Wrong python_CMD in shebangfix?
Message-ID:  <0AE311F0-87F8-4376-8E24-742C6C54F564@gmail.com>

next in thread | raw e-mail | index | archive | help
Hello!

Imagine that I have python-2 as default version, so that =
/usr/local/bin/python points to python2.7
And I have a port which USE_PYTHON=3D3 and USES=3Dshebangfix.

It will "fix" python path as "/usr/local/bin/python" which is wrong (it =
should point to python3).

I propose the following patch:
--- shebangfix.mk.orig  2014-03-15 14:31:54.000000000 +0400
+++ shebangfix.mk       2014-05-14 21:08:37.000000000 +0400
@@ -38,7 +38,7 @@
 php_OLD_CMD?=3D  /usr/bin/php
 php_CMD?=3D      ${LOCALBASE}/bin/php
 python_OLD_CMD?=3D       /usr/bin/python
-python_CMD?=3D   ${LOCALBASE}/bin/python
+python_CMD?=3D   ${PYTHON_CMD}
 ruby_OLD_CMD?=3D /usr/bin/ruby
 ruby_CMD?=3D     ${LOCALBASE}/bin/ruby
 tcl_OLD_CMD?=3D  /usr/bin/tclsh


What do you think?=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0AE311F0-87F8-4376-8E24-742C6C54F564>