From owner-freebsd-ports-bugs@freebsd.org Thu Jan 26 05:58:39 2017 Return-Path: Delivered-To: freebsd-ports-bugs@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 924E3CC286C for ; Thu, 26 Jan 2017 05:58:39 +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 6854C1D10 for ; Thu, 26 Jan 2017 05:58:39 +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 v0Q5wdlk047287 for ; Thu, 26 Jan 2017 05:58:39 GMT (envelope-from bugzilla-noreply@freebsd.org) 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 Date: Thu, 26 Jan 2017 05:58:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dbn@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: 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-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2017 05:58:39 -0000 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.=