]> TLD Linux GIT Repositories - packages/postgresql.git/blobdiff - postgresql-python3.patch
- really prefer python3 over python2
[packages/postgresql.git] / postgresql-python3.patch
diff --git a/postgresql-python3.patch b/postgresql-python3.patch
new file mode 100644 (file)
index 0000000..1bb24e4
--- /dev/null
@@ -0,0 +1,11 @@
+--- postgresql-14.3/config/python.m4   2022-05-09 23:14:45.000000000 +0200
++++ postgresql-14.3/config/python.m4   2022-05-28 17:13:50.058076647 +0200
+@@ -16,7 +16,7 @@
+ # "python2" and "python3", in which case it's reasonable to prefer the
+ # newer version.
+ AC_DEFUN([PGAC_PATH_PYTHON],
+-[PGAC_PATH_PROGS(PYTHON, [python python3 python2])
++[PGAC_PATH_PROGS(PYTHON, [python3 python2 python])
+ AC_ARG_VAR(PYTHON, [Python program])dnl
+ if test x"$PYTHON" = x""; then
+   AC_MSG_ERROR([Python not found])