pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Python 2 fade-out



Greg Troxel <gdt%lexort.com@localhost> writes:

> I've just applied this to my tree and will continue pkg_rr as updates
> happen and see what breaks.  I'll also try to build unifi, pinenty,
> rdiff-backup after removing everything that only it needs (pkgin ar).

There is breakage; various things that need to have 27 versions don't
say so because their upstreams apparently simply support both.  However,
adding 27 back to those is easy and seems to work.

New diff, missing doc comments.

With this, the newly-added bulk-test-python27 passes.   The list of
things known to matter for 27 is:

  DEPENDS+=       getmail<6:../../mail/getmail
  DEPENDS+=       gimp-[0-9]*:../../graphics/gimp
  DEPENDS+=       mailman<3:../../mail/mailman
  # omit for now: broken for boost reasons, not py27
  #DEPENDS+=      mongodb-[0-9]*:../../databases/mongodb3
  DEPENDS+=       rdiff-backup-[0-9]*:../../sysutils/rdiff-backup

Please let me know if I left something out.



Index: lang/python/pyversion.mk
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python/pyversion.mk,v
retrieving revision 1.157
diff -u -p -r1.157 pyversion.mk
--- lang/python/pyversion.mk	7 Nov 2023 11:36:57 -0000	1.157
+++ lang/python/pyversion.mk	8 May 2024 17:16:38 -0000
@@ -31,7 +31,7 @@
 #	preferred over later ones.
 #
 #	Possible values: 312 311 310 39 38 27
-#	Default: 312 311 310 39 38 27
+#	Default: 312 311 310 39 38
 #
 # PYTHON_VERSIONS_INCOMPATIBLE
 #	The Python versions that are NOT acceptable for the package.
@@ -107,7 +107,10 @@ PYTHON_VERSION_DEFAULT?=		311
 .else
 PYTHON_VERSION_DEFAULT?=		310
 .endif
-PYTHON_VERSIONS_ACCEPTED?=		312 311 310 39 38 27
+PYTHON_VERSIONS_ACCEPTED?=		312 311 310 39 38
+.if defined(PYTHON_27_ACCEPTED)
+PYTHON_VERSIONS_ACCEPTED+=		27
+.endif
 PYTHON_VERSIONS_INCOMPATIBLE?=		# empty by default
 
 # transform the list into individual variables
Index: lang/py-six/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/py-six/Makefile,v
retrieving revision 1.21
diff -u -p -r1.21 Makefile
--- lang/py-six/Makefile	30 Apr 2023 19:40:20 -0000	1.21
+++ lang/py-six/Makefile	8 May 2024 17:16:38 -0000
@@ -15,6 +15,7 @@ USE_LANGUAGES=	# none
 
 PYSETUPTESTTARGET=	pytest
 
+PYTHON_27_ACCEPTED=	yes
 .include "../../lang/python/pyversion.mk"
 
 .if ${PYTHON_VERSION} > 300
Index: security/py-cryptodome/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/py-cryptodome/Makefile,v
retrieving revision 1.53
diff -u -p -r1.53 Makefile
--- security/py-cryptodome/Makefile	12 Jan 2024 13:15:47 -0000	1.53
+++ security/py-cryptodome/Makefile	8 May 2024 17:16:39 -0000
@@ -18,6 +18,7 @@ CFLAGS.SunOS+=	-D_XOPEN_SOURCE=600
 
 CHECK_PORTABILITY_SKIP=	appveyor/get_wheels.sh
 
+PYTHON_27_ACCEPTED=	yes
 .include "../../lang/python/egg.mk"
 
 # Python 3 builds of this package get an extra "abi3" suffix added


Home | Main Index | Thread Index | Old Index