[Bug 212273] Mk/Uses/python.mk: [PATCH] PYTHON_VERSION improperly propagated through DEPENDS_ARGS

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Oct 31 20:54:25 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212273

--- Comment #5 from Bryan Drewery <bdrewery at FreeBSD.org> ---
Example to recreate:
/etc/make.conf:
DEFAULT_VERSIONS+=python=3.4
```
~/svn/ports/www/serf # make -DUSE_PACKAGE_DEPENDS depends
DEPENDS_ARGS=PYTHON_VERSION=python3.4                                          
                                                                               
                                                                               
                                                                  ===>  
serf-1.3.9_1 depends on file: /usr/local/sbin/pkg - found
===>   serf-1.3.9_1 depends on shared library: libapr-1.so - found
(/usr/local/lib/libapr-1.so)
===>   serf-1.3.9_1 depends on file: /usr/local/bin/scons - not found          
                                                                               
                                                                               
                                                                               
                                            /root/svn/ports/devel/scons --
install -- PYTHON_VERSION=python3.4
===>   scons-2.5.0 depends on package: py27-setuptools27>0 - not found
/root/svn/ports/devel/py-setuptools27 -- install -- PYTHON_VERSION=python3.4   
                                                                               
                                                                               
                                                                               
                                            /!\ WARNING /!\
You have security/openssl installed but do not have
DEFAULT_VERSIONS+=ssl=openssl set in your make.conf

===>  License PSFL accepted by the user
===>   py34-setuptools34-28.1.0 depends on file: /usr/local/sbin/pkg - found
=> setuptools-28.1.0.tar.gz doesn't seem to exist in /mnt/distfiles/python.
=> 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=PYTHON_VERSION=python3.4
It builds www/serf with make *argument* (to override, intended)
PYTHON_VERSION=python3.4.

This PYTHON_VERSION make override propagates all the way down the chain,
overriding
the USES=python:2 in devel/scons.  It tries to set PYTHON_VERSION=python2.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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list