From owner-freebsd-python@freebsd.org  Sun Jun 19 07:50:52 2016
Return-Path: <owner-freebsd-python@freebsd.org>
Delivered-To: freebsd-python@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69E48A7A553
 for <freebsd-python@mailman.ysv.freebsd.org>;
 Sun, 19 Jun 2016 07:50:52 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org
 [IPv6:2001:1900:2254:206a::50:5])
 by mx1.freebsd.org (Postfix) with ESMTP id 53C1C141A
 for <freebsd-python@freebsd.org>; Sun, 19 Jun 2016 07:50:52 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: by mailman.ysv.freebsd.org (Postfix)
 id 53025A7A552; Sun, 19 Jun 2016 07:50:52 +0000 (UTC)
Delivered-To: python@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 52AC8A7A551
 for <python@mailman.ysv.freebsd.org>; Sun, 19 Jun 2016 07:50:52 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org (kenobi.freebsd.org
 [IPv6:2001:1900:2254:206a::16:76])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 2A4A81418
 for <python@FreeBSD.org>; Sun, 19 Jun 2016 07:50:52 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from bugs.freebsd.org ([127.0.1.118])
 by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u5J7opnd026344
 for <python@FreeBSD.org>; Sun, 19 Jun 2016 07:50:52 GMT
 (envelope-from bugzilla-noreply@freebsd.org)
From: bugzilla-noreply@freebsd.org
To: python@FreeBSD.org
Subject: [Bug 209551] Python bits ignore DEFAULT_VERSIONS
Date: Sun, 19 Jun 2016 07:50:51 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Ports & Packages
X-Bugzilla-Component: Ports Framework
X-Bugzilla-Version: Latest
X-Bugzilla-Keywords: patch
X-Bugzilla-Severity: Affects Only Me
X-Bugzilla-Who: koobs@FreeBSD.org
X-Bugzilla-Status: Open
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: python@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: 
Message-ID: <bug-209551-21822-g6fyRsxJRN@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-209551-21822@https.bugs.freebsd.org/bugzilla/>
References: <bug-209551-21822@https.bugs.freebsd.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-python>, 
 <mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python/>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 19 Jun 2016 07:50:52 -0000

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

--- Comment #5 from Kubilay Kocak <koobs@FreeBSD.org> ---
@Mikhail, can you please provide a few example cases that show:

- The port that is affected
- The intended/expected result
- The actual result
- The result with any workarounds claimed to fix the issue (if there are an=
y)

Currently, and as far as I know/believe, the existing logic is intended as
there are cases where the user-specified DEFAULT_VERSION of python desired,=
 may
*not* be appropriate/correct for the port in question, based on the version=
s of
Python that port is declared to support (whether those declared are correct=
 or
not). This is further complicated in dependency cases where some ports depe=
nd
on only one or more Python versions.

A shorter way of saying the above is that the user literally cannot know, be
expected to know, nor state the exact and only version of Python they want =
to
be used in any particular case.

Obvious examples are:=20

- User specifies default version 3.x, port only supports 2.x
- User specifies default version 2.x, port only supports 3.x
- User specifies default version x.y, port explicitly does not work with x.y
(say, for example, older 3.x versions)

Having said that, there *are* ports in the tree right now that incorrectly,
incompletely or inaccurately declare those versions. These all need to be
fixed, with the documentation (at least in Uses/python) improved to make it
clearer how to do it, and do it correctly.

Examples are:

Ports that specify USES=3Dpython:2 (or 3). This declaration means *only* th=
at the
port depends on the python2 or python3 *symlink* (and thus port). These sho=
uld
instead be USES=3Dpython:X.Y[+] or [-]X.Y, with an additional *_DEPENDS on =
the
respective lang/python{2,3} symlink port.

Ports that specify X.Y+ arbitrarily, as almost all Python packages support =
only
up to the latest Python X.Y, and often break with future/newer ones until t=
hey
are tested/verified.

Additionally, our USES syntax is unable to specify SOME version specificati=
ons
that are perfectly normal (and common) for Python packages. There is an open
task documented here: https://wiki.freebsd.org/Python#Goals

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