Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2017 05:58:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 216479] Uses/python.mk: specifying USES=python3.3+ and USE_PYTHON=concurrent doesn't produce any ports with USE_DEFAULT_LINKS
Message-ID:  <bug-216479-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216479

            Bug ID: 216479
           Summary: Uses/python.mk: specifying USES=3Dpython3.3+ and
                    USE_PYTHON=3Dconcurrent doesn't produce any ports with
                    USE_DEFAULT_LINKS
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: dbn@FreeBSD.org
                CC: freebsd-ports-bugs@FreeBSD.org

If a port is python 3 only, and it specifies 'concurrent' then all scripts
installed into $PREFIX/bin will have a suffix.  Since python defaults to
version 2 no port ever gets a script without a suffix.=20=20

However, some ports are split in two: a python2 and a python3 version.  In =
this
case the latter port is correctly handled.=20=20

I can suggest either (or both):
 1) Adding another flag to indicate with version of python the
USE_DEFAULT_LINKS should be applied, or
 2) Dynamically detecting that a port only supports a specific major versio=
n of
python, then specify USE_DEFAULT_LINKS for the default python version for t=
he
port's supported major version.  This will exclude ports who's directory na=
me
does not start with 'py-'.

I suggest both approaches.=20=20

The affected ports appear to be:
# find . -name Makefile | xargs grep USE_PYTHON | grep concurrent | cut -f =
1 -d
: | xargs grep USES | grep python:3 | cut -f 1 -d : | sed -e 's|/Makefile||=
g'
-e 's|\./||g'
sysutils/py-diffoscope
ports-mgmt/py-skog
(false positives)
devel/py3-babel
devel/py3-Jinja2
textproc/py3-pager
textproc/py3-MarkupSafe
textproc/py3-chardet

--=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-216479-13>