svn commit: r534166 - head/Mk/Uses

Mathieu Arnold mat at FreeBSD.org
Wed May 6 11:53:56 UTC 2020


Author: mat
Date: Wed May  6 11:53:56 2020
New Revision: 534166
URL: https://svnweb.freebsd.org/changeset/ports/534166

Log:
  Automatically mark ports as DEPRECATED when they use Python 2.
  
  Reviewed by:	antoine
  Differential Revision:	https://reviews.freebsd.org/D24732

Modified:
  head/Mk/Uses/python.mk

Modified: head/Mk/Uses/python.mk
==============================================================================
--- head/Mk/Uses/python.mk	Wed May  6 10:07:33 2020	(r534165)
+++ head/Mk/Uses/python.mk	Wed May  6 11:53:56 2020	(r534166)
@@ -463,6 +463,11 @@ PYTHON_ABIVER=		m
 .endif
 .endif
 
+.if ${PYTHON_MAJOR_VER} == 2
+DEPRECATED?=	Uses Python 2.7 which is EOLed upstream
+EXPIRATION_DATE?=	2020-12-31
+.endif
+
 .if !defined(PYTHONBASE)
 PYTHONBASE!=	(${PYTHON_CMD} -c 'import sys; print(sys.prefix)' \
 			2> /dev/null || ${ECHO_CMD} ${LOCALBASE}) | ${TAIL} -1


More information about the svn-ports-all mailing list