]> TLD Linux GIT Repositories - packages/postgresql.git/commitdiff
- really prefer python3 over python2
authorMarcin Krol <hawk@tld-linux.org>
Sat, 28 May 2022 15:32:36 +0000 (17:32 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Sat, 28 May 2022 15:32:36 +0000 (17:32 +0200)
postgresql-python3.patch [new file with mode: 0644]
postgresql.spec

diff --git a/postgresql-python3.patch b/postgresql-python3.patch
new file mode 100644 (file)
index 0000000..edae520
--- /dev/null
@@ -0,0 +1,11 @@
+--- python.m4.orig     2022-05-09 23:20:11.000000000 +0200
++++ python.m4  2022-05-28 17:32:01.992152356 +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])
+ if test x"$PYTHON" = x""; then
+   AC_MSG_ERROR([Python not found])
+ fi
index 6f7670d4a0949ab7ab198bbbf9b1cc09d6746724..a9a77d5e2be2a9e817c19fb62d94c40988e40f6b 100644 (file)
@@ -29,7 +29,7 @@ Summary(uk.UTF-8):    PostgreSQL - система керування базами 
 Summary(zh_CN.UTF-8):  PostgreSQL 客户端程序和库文件
 Name:          postgresql-%{pgsqlversion}
 Version:       %{pgsqlversion}.16
-Release:       1
+Release:       2
 License:       BSD
 Group:         Applications/Databases
 Source0:       http://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
@@ -47,6 +47,7 @@ Patch5:               postgresql-heimdal.patch
 Patch6:                postgresql-link.patch
 Patch7:                socket-dir-fixes.patch
 Patch8:                postgresql-autoconf.patch
+Patch9:                postgresql-python3.patch
 URL:           http://www.postgresql.org/
 BuildRequires: autoconf >= 2.69
 BuildRequires: automake
@@ -503,6 +504,7 @@ Różne moduły dołączone do PostgreSQL-a.
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
 
 # force rebuild of bison/flex files
 find src -name \*.l -o -name \*.y | xargs touch