Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2020 11:53:56 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r534166 - head/Mk/Uses
Message-ID:  <202005061153.046BruQY047226@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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