1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

archivers/py-bup: Fix build with python-3.11

PR:		275494
Approved by:	portmgr(blanket, fix build)
This commit is contained in:
Wen Heping 2024-02-03 12:38:08 +00:00
parent f9f36a0a0a
commit df50dd485a

View File

@ -1,9 +1,10 @@
--- config/configure.orig 2021-01-09 22:11:10 UTC
--- config/configure.orig 2024-02-03 07:23:55 UTC
+++ config/configure
@@ -66,6 +66,7 @@ expr "$MAKE_VERSION" '>=' '3.81' || AC_FAIL "ERROR: $M
@@ -66,6 +66,8 @@ bup_python="$(type -p "$PYTHON")"
AC_SUB bup_make "$MAKE"
bup_python="$(type -p "$PYTHON")"
+test -z "$bup_python" && bup_python="$(bup_find_prog python3.11 '')"
+test -z "$bup_python" && bup_python="$(bup_find_prog python3.9 '')"
test -z "$bup_python" && bup_python="$(bup_find_prog python3.8 '')"
test -z "$bup_python" && bup_python="$(bup_find_prog python3.7 '')"