[Bug 196056] New: Wrong python interpreter set in Mk/Uses/shebangfix.mk

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 17 11:34:31 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196056

            Bug ID: 196056
           Summary: Wrong python interpreter set in Mk/Uses/shebangfix.mk
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Infrastructure
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: ftigeot at wolfpond.org

I have been recently trying to use devel/ansible.

This port depends on lang/python2 (its Makefile includes a USE=python:2 line).
However, the programs it installs expect /usr/local/bin/python to be present.

/usr/local/bin/python is provided by lang/python and could be a symbolic link
to a program provided by one of various incompatible Python versions depending
on the circumstances.

The /usr/local/bin/python string is added by a USES=shebangfix directive.

Mk/Uses/shebangfix.mk hardcodes the path of the choosen Python interpreter as
${LOCALBASE}/bin/python

I believe this is wrong and shebangfix.mk should use a more specific path such
as /usr/local/bin/python2 when the port asks for a specific Python version.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list