From owner-freebsd-ports@FreeBSD.ORG Sun May 6 17:13:41 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6755F106564A; Sun, 6 May 2012 17:13:41 +0000 (UTC) (envelope-from mva@FreeBSD.org) Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.31.25]) by mx1.freebsd.org (Postfix) with ESMTP id 1B5E38FC0C; Sun, 6 May 2012 17:13:41 +0000 (UTC) Received: from [89.182.21.73] (helo=localhost) by smtprelay02.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1SR4u4-0005Qk-0y; Sun, 06 May 2012 19:05:48 +0200 Date: Sun, 6 May 2012 19:07:11 +0200 From: Marcus von Appen To: FreeBSD-gnats-submit@freebsd.org, freebsd-ports-bugs@FreeBSD.org Message-ID: <20120506170711.GA1570@medusa.sysfault.org> References: <201204271848.q3RImjd5090552@medusa.sysfault.org> <201204271900.q3RJ0OY7074360@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OROCMA9jn6tkzFBc" Content-Disposition: inline In-Reply-To: <201204271900.q3RJ0OY7074360@freefall.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Df-Sender: MzAzMjU2 Cc: python@freebsd.org, freebsd-ports@freebsd.org Subject: Re: ports/167368: Python version propagation breaks USE_PYTHON= usage for dependency builds X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcus von Appen List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2012 17:13:41 -0000 --OROCMA9jn6tkzFBc Content-Type: multipart/mixed; boundary="PuGuTyElPB9bOcsM" Content-Disposition: inline --PuGuTyElPB9bOcsM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In 2003 we introduced DEPENDS_ARGS to enforce the python version on dependencies[0]. In 2005 we introduced th .MAKEFLAGS propagation to work around an issue for Zope[1]. I doubt that both are still valid after we allowed parallel python versions for quite some while now. In any case, the current implementation _breaks_ ports, if they have non-matching sets of supported python versions. The attached patch removes both entries and a local tinderbox run did not reveal any problems. However, the problem described here does usually _not_ occur in a tinderbox, since every port is treated as a single item, instead of a typical user workflow. Thus more testing (especially with zope-related ports) is highly appreciated. [0] http://www.freebsd.org/cgi/cvsweb.cgi/ports/Mk/bsd.python.mk?annotate=1.41 [1] http://www.freebsd.org/cgi/cvsweb.cgi/ports/Mk/bsd.python.mk?annotate=1.62 Regards Marcus --PuGuTyElPB9bOcsM Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="bsd.python.mk.patch" Content-Transfer-Encoding: quoted-printable Index: Mk/bsd.python.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/pcvs/ports/Mk/bsd.python.mk,v retrieving revision 1.143 diff -u -r1.143 bsd.python.mk --- Mk/bsd.python.mk 11 Apr 2012 12:52:16 -0000 1.143 +++ Mk/bsd.python.mk 6 May 2012 17:01:48 -0000 @@ -339,7 +339,6 @@ PYTHONBASE!=3D (${PYTHON_CMD} -c 'import sys; print sys.prefix' \ 2> /dev/null || ${ECHO_CMD} ${LOCALBASE}) | ${TAIL} -1 .endif -DEPENDS_ARGS+=3D PYTHON_VERSION=3D${PYTHON_VERSION} =20 # We can only use the cached version if we are using the default python ve= rsion. Otherwise it # should point to some other version we have installed, according to the p= ort USE_PYTHON @@ -354,9 +353,6 @@ PYTHON_PORTVERSION=3D ${PYTHON_DEFAULT_PORTVERSION} .endif =20 -# Propagate the chosen python version to submakes. -.MAKEFLAGS: PYTHON_VERSION=3Dpython${_PYTHON_VERSION} - # Python-3.2 .if ${PYTHON_VERSION} =3D=3D "python3.2" PYTHON_PORTVERSION?=3D3.2.3 --PuGuTyElPB9bOcsM-- --OROCMA9jn6tkzFBc Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk+mr78ACgkQi68/ErJnpkfXfQCfd/oAr457Rcohe4ai6+yu4ySi OOMAnihREOWnftpVzffjzz/a9cGAAN0R =HINZ -----END PGP SIGNATURE----- --OROCMA9jn6tkzFBc--