From owner-freebsd-python@FreeBSD.ORG Tue Nov 18 16:08:56 2014 Return-Path: Delivered-To: freebsd-python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DB77EC63 for ; Tue, 18 Nov 2014 16:08:56 +0000 (UTC) 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 A84B6AF7 for ; Tue, 18 Nov 2014 16:08:56 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAIG8uBR023951 for ; Tue, 18 Nov 2014 16:08:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-python@FreeBSD.org Subject: [Bug 195152] New: The ports infrastructure will build dependencies against the default version of Python rather than what the desired port requires Date: Tue, 18 Nov 2014 16:08:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Infrastructure X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: aberg010@my.hennepintech.edu X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- 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: 7bit 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.18-1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2014 16:08:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195152 Bug ID: 195152 Summary: The ports infrastructure will build dependencies against the default version of Python rather than what the desired port requires Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Infrastructure Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: aberg010@my.hennepintech.edu CC: freebsd-python@FreeBSD.org, mva@FreeBSD.org There are two affected ports that I know of so far: sysutils/py-salt and sysutils/qzeitgeist. I will use Salt as the example of the "master" port and pyzmq as the example of the dependency here. First some background information on this example: Unless overridden by the user, Python 2.7 is the default version of Python. This issue is triggered only when 3.x is specified as the default (in my case, 3.4). Salt can only use Python 2. In its Makefile, it has net/py-pyzmq and many other Python-based dependencies. The Makefile uses ${PYTHON_PKGNAMEPREFIX} to ensure that it will use only packages of these dependencies that are built against the same version of Python that Salt itself will use (I do not know if this is strictly necessary for every single one, but it makes sense, and I will assume that it is). net/py-pyzmq is compatible with both Python 2 and Python 3. A package can be successfully built with any supported version of Python. When Salt needs to be built, net/py-pyzmq is (correctly) identified as a dependency. The problem: When net/py-pyzmq is built to satisfy the dependency for Salt, it is built for the default version of Python, and the actual requirement for Salt is not met. If the user simply wants only pyzmq, perhaps for their own development project, then building for the default version of Python is desired behavior. Poudriere results for this condition: https://candace.robotsondrugs.com/poudriere/build.html?mastername=101x64-porttest&build=2014.11.18_09:51:10 Note: This is my test ports jail because I needed to modify net/openpgm (see bug 194917). -- You are receiving this mail because: You are on the CC list for the bug.