Hi,
At the moment portgen will add
`MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}`
to new python3 port's Makefile by default, which seems to be outdated.
The following patch stop that from happening.
comment? feedback?
Index: infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm
===================================================================
RCS file: /cvs/ports/infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm,v
retrieving revision 1.19
diff -u -r1.19 PyPI.pm
--- infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm 30 Apr 2020 23:04:48
-0000 1.19
+++ infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm 14 Aug 2021 11:48:17
-0000
@@ -119,7 +119,7 @@
$self->{reset_values}{MODPY_VERSION} = 1;
$self->set_other( 'FLAVORS', "python$_" ) for @versions;
$self->set_other( 'FLAVOR', "python$versions[-1]" );
- } elsif ( @versions && $versions[0] != 2 ) {
+ } elsif ( @versions && $versions[0] != 2 && $versions[0] != 3 ) {
$self->{reset_values}{$_} = 1 for qw( FLAVORS FLAVOR );
$self->set_other(
MODPY_VERSION => "\${MODPY_DEFAULT_VERSION_$_}" )