Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Dec 2013 17:21:49 +0000 (UTC)
From:      Marcus von Appen <mva@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r336850 - in head: . Mk
Message-ID:  <201312181721.rBIHLnCv092264@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mva
Date: Wed Dec 18 17:21:49 2013
New Revision: 336850
URL: http://svnweb.freebsd.org/changeset/ports/336850

Log:
  - Remove lang/python as implicit build and run dependency from
    bsd.python.mk
  
    Ports need to use a designated python interpreter, whether this
    is the default one chosen by the user (or provided by the system)
    and pulled in via USE_PYTHON[_BUILD|_RUN]=yes or an explicit version
    or version range pulled in via USE_PYTHON[_BUILD|_RUN]=X.Y does not
    matter.
  
    Ports should however not rely on 'python' at build or installation
    time, whenever possible to avoid problems with building packages for
    different python versions.
  
    This change tries to raise the barrier for misbehaving ports and eases
    package builds for different python versions.
  
  Tested with:	exp-run (ports/184591)
  Reviewed by:	wg@, koobs@
  Supported by:	wg@
  With hat on:	python@

Modified:
  head/CHANGES
  head/Mk/bsd.python.mk

Modified: head/CHANGES
==============================================================================
--- head/CHANGES	Wed Dec 18 17:02:13 2013	(r336849)
+++ head/CHANGES	Wed Dec 18 17:21:49 2013	(r336850)
@@ -10,6 +10,28 @@ in the release notes and/or placed into 
 
 All ports committers are allowed to commit to this file.
 
+20131218:
+AUTHOR: mva@FreeBSD.org
+
+  lang/python (and as such the 'python' binary and accomplices)
+  has been removed as default dependency for the USE_PYTHON,
+  USE_PYTHON_BUILD and USE_PYTHON_RUN knobs.
+
+  Ports need to use a designated (default) python interpreter
+  to build and install and in most cases for execution in the user
+  environment. Ports that install python scripts, which are not
+  limited to a certain python version (or version range), can
+  include lang/python as build and/or run dependency.
+
+  USE_PYTHON=yes and similar knobs will only pull in the
+  default python version (e.g. lang/python27), but none
+  of the meta ports or lang/python itself.
+
+  Please use lang/python as build or run-time dependency only,
+  if there is no other way to get a port working properly, since
+  the usage of lang/python complicates package builds for different
+  python versions.
+
 20131213:
 AUTHOR: tijl@FreeBSD.org
 

Modified: head/Mk/bsd.python.mk
==============================================================================
--- head/Mk/bsd.python.mk	Wed Dec 18 17:02:13 2013	(r336849)
+++ head/Mk/bsd.python.mk	Wed Dec 18 17:21:49 2013	(r336850)
@@ -596,15 +596,13 @@ PYTHON_NO_DEPENDS?=		NO
 
 .if ${PYTHON_NO_DEPENDS} == "NO"
 .if defined(USE_PYTHON_BUILD)
-BUILD_DEPENDS+=	${PYTHON_CMD}:${PYTHON_PORTSDIR} \
-				python:${PORTSDIR}/lang/python
+BUILD_DEPENDS+=	${PYTHON_CMD}:${PYTHON_PORTSDIR}
 .if defined(_WANTS_META_PORT)
 BUILD_DEPENDS+=	python${_WANTS_META_PORT}:${PORTSDIR}/lang/python${_WANTS_META_PORT}
 .endif
 .endif
 .if defined(USE_PYTHON_RUN)
-RUN_DEPENDS+=	${PYTHON_CMD}:${PYTHON_PORTSDIR} \
-				python:${PORTSDIR}/lang/python
+RUN_DEPENDS+=	${PYTHON_CMD}:${PYTHON_PORTSDIR}
 .if defined(_WANTS_META_PORT)
 RUN_DEPENDS+=	python${_WANTS_META_PORT}:${PORTSDIR}/lang/python${_WANTS_META_PORT}
 .endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312181721.rBIHLnCv092264>