From owner-freebsd-python@FreeBSD.ORG Mon Oct 7 18:09:47 2013 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B023DCB for ; Mon, 7 Oct 2013 18:09:47 +0000 (UTC) (envelope-from mva@FreeBSD.org) Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.31.29]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 42307269F for ; Mon, 7 Oct 2013 18:09:47 +0000 (UTC) Received: from [89.182.22.0] (helo=localhost) by smtprelay02.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1VTFFS-0002OA-Gq for freebsd-python@freebsd.org; Mon, 07 Oct 2013 20:09:38 +0200 Date: Mon, 7 Oct 2013 20:09:37 +0200 From: Marcus von Appen To: freebsd-python@freebsd.org Subject: Removing the lang/python dependency Message-ID: <20131007180937.GA1373@medusa.sysfault.org> Mail-Followup-To: freebsd-python@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rwEMma7ioTxnRzrJ" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Df-Sender: MTEyNTc0Mg== X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Marcus von Appen List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 18:09:47 -0000 --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear all, the last couple of weeks were quite busy for the python team. We added a new PYTHON2_DEFAULT_VERSION knob to define the default python2 version to use, moved the whole default version magic into the new bsd.default-version.mk, added new meta port versions (USE_PYTHON=3D2 or USE_PYTHON=3D3), added automatic plist support for distutils based ports as well as rm's plist replacement hack for non-distutils ports and moved the zope magic into an own USES file. I'm currently trying to remove lang/python from the implicitly set BUILD_DEPENDS and RUN_DEPENDS in bsd.python.mk. This is required to a) properly detect ports using a wrong python version (e.g. using python, although they only support version X.Y) b) make bin/python and friends a user choice (where possible) c) avoid issues with pkg I'm testing each category and am fixing ports on the fly, when everything breaks. The removal will happen in two runs. In the first run, python:${PORTSDIR}/lang/python will be added as build or run dependency to the port, so we can remove the implicit dependency =66rom bsd.python.mk. The second run will try to fix all ports using a wrong USE_PYTHON=3DX.Y version (e.g. "yes" or 2.6+ or ..., although only 2.7 or 3.2 are supported), so that we can add lang/python as implicit dependency for ports, which are truly version agnostic. Those can use USE_PYTHON=3Dyes afterwards. Within that run, port maintainers also need to ensure that previously added lang/python dependencies are either removed again and replaced with the correct python version or that the ports are tested to ensure that they are version agnostic. Personally, I do not see an easier way to do this (without causing problems for users), since too many ports rely on python in one way or another and the majority of them only work with 2.7 (see http://people.freebsd.org/~mva/ for fixes that are the result of testing accessibility/, arabic/ and archivers/ and do the math for the whole tree yourself ;-). Once this is sorted out (hopefully in a couple of weeks), we can push important changes to bsd.python.mk and bsd.port.mk (after agreeing with portmrg@ about those) to enable package builds for different python versions. Cheers Marcus --rwEMma7ioTxnRzrJ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iEYEARECAAYFAlJS+OEACgkQi68/ErJnpkdm/ACfYHJ85tKZRN2E+4uQcM3hraVH b8gAniJuA1J7QcCcMVJlHhFIGyP3H/3/ =gZ5S -----END PGP SIGNATURE----- --rwEMma7ioTxnRzrJ--