From db5a549f53dc3413e7871cf386d9e484beab9d9c Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 9 Jul 2018 09:41:40 +0200 Subject: [PATCH] FTBFS: 'python' is not on $PATH on F29+ Version: 10.4-5 --- postgresql.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/postgresql.spec b/postgresql.spec index 967f692..8d881df 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -505,7 +505,7 @@ make distclean %endif # %%plpython3 -unset PYTHON +PYTHON=/usr/bin/python2 # Normal (python2) build begins here %configure $common_configure_options \ @@ -513,6 +513,8 @@ unset PYTHON --with-python %endif +unset PYTHON + make %{?_smp_mflags} world # Have to hack makefile to put correct path into tutorial scripts @@ -596,6 +598,7 @@ upgrade_configure () # its ideas about installation paths. # The -fno-aggressive-loop-optimizations is hack for #993532 + PYTHON="${PYTHON-/usr/bin/python2}" \ CFLAGS="$CFLAGS -fno-aggressive-loop-optimizations" ./configure \ --build=%{_build} \ --host=%{_host} \ @@ -634,7 +637,7 @@ upgrade_configure () make %{?_smp_mflags} all make -C contrib %{?_smp_mflags} all popd -%endif +%endif # %%upgrade %install @@ -1199,6 +1202,7 @@ make -C postgresql-setup-%{setup_version} check %changelog * Mon Jul 09 2018 Pavel Raiskup - 10.4-5 - re-enable -O3 for 64bit PPC boxes +- explicitly set PYTHON=python2, /bin/python doesn't exist fc29+ * Tue Jul 03 2018 Petr Pisar - 10.4-4 - Perl 5.28 rebuild