[Bug 229749] lang/python36: python3.6-config breaks when symlinked e.g. by using BINARY_ALIAS in ports

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jul 13 09:18:42 UTC 2018


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

            Bug ID: 229749
           Summary: lang/python36: python3.6-config breaks when symlinked
                    e.g. by using BINARY_ALIAS in ports
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: python at FreeBSD.org
          Reporter: tobik at freebsd.org
             Flags: maintainer-feedback?(python at FreeBSD.org)
          Assignee: python at FreeBSD.org

When using BINARY_ALIAS together with python3.6-config, i.e.  symlinking
it to another location, it starts outputting bogus paths.

USES=           python:3.6+
BINARY_ALIAS=   python3-config=python${PYTHON_VER}-config

It is convenient to use when porting applications that hardcode use
of python3-config etc.

It works fine with python2.7-config.  However when I try a similar
thing with python3.6-config it starts outputting bogus paths.  For
example

$ pwd
/home/tobias
$ python2.7-config --includes
-I/usr/local/include/python2.7 -I/usr/local/include/python2.7
$ ln -s /usr/local/bin/python2.7-config python2-config
$ ./python2-config --includes
-I/usr/local/include/python2.7 -I/usr/local/include/python2.7
$ python3.6-config --includes
-I/usr/local/include/python3.6m -I/usr/local/include/python3.6m
$ ln -s /usr/local/bin/python3.6-config python3-config
$ ./python3-config --includes
-I/home/include/python3.6m -I/home/include/python3.6m

It would be nice if this could just work as it does with Python 2.7.

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


More information about the freebsd-ports-bugs mailing list