Date: Mon, 31 Oct 2016 20:54:25 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 212273] Mk/Uses/python.mk: [PATCH] PYTHON_VERSION improperly propagated through DEPENDS_ARGS Message-ID: <bug-212273-13-HLQQhZkBEu@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-212273-13@https.bugs.freebsd.org/bugzilla/> References: <bug-212273-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212273 --- Comment #5 from Bryan Drewery <bdrewery@FreeBSD.org> --- Example to recreate: /etc/make.conf: DEFAULT_VERSIONS+=3Dpython=3D3.4 ``` ~/svn/ports/www/serf # make -DUSE_PACKAGE_DEPENDS depends DEPENDS_ARGS=3DPYTHON_VERSION=3Dpython3.4=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 =3D=3D=3D= >=20=20 serf-1.3.9_1 depends on file: /usr/local/sbin/pkg - found =3D=3D=3D> serf-1.3.9_1 depends on shared library: libapr-1.so - found (/usr/local/lib/libapr-1.so) =3D=3D=3D> serf-1.3.9_1 depends on file: /usr/local/bin/scons - not found= =20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 /root/svn/ports/devel/scons -- install -- PYTHON_VERSION=3Dpython3.4 =3D=3D=3D> scons-2.5.0 depends on package: py27-setuptools27>0 - not found /root/svn/ports/devel/py-setuptools27 -- install -- PYTHON_VERSION=3Dpython= 3.4=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 /!\ WARNING /!\ You have security/openssl installed but do not have DEFAULT_VERSIONS+=3Dssl=3Dopenssl set in your make.conf =3D=3D=3D> License PSFL accepted by the user =3D=3D=3D> py34-setuptools34-28.1.0 depends on file: /usr/local/sbin/pkg = - found =3D> setuptools-28.1.0.tar.gz doesn't seem to exist in /mnt/distfiles/pytho= n. =3D> Attempting to fetch https://pypi.python.org/packages/source/s/setuptools/setuptools-28.1.0.tar.= gz ``` I don't think this is easily fixable. Here's the problem: editors/libreoffice sets DEPENDS_ARGS=3DPYTHON_VERSION=3Dpython3.4 It builds www/serf with make *argument* (to override, intended) PYTHON_VERSION=3Dpython3.4. This PYTHON_VERSION make override propagates all the way down the chain, overriding the USES=3Dpython:2 in devel/scons. It tries to set PYTHON_VERSION=3Dpytho= n2.7, but the make argument forces it back to python3.4. DEPENDS_ARGS is an interesting, and very old, hack that only really works on direct dependencies. Once it gets into a 2nd-order dependency then it can cause issues like in this bug. --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-212273-13-HLQQhZkBEu>