build: fix plpython's makefile inconsistency
Version: 9.6.0-1
This commit is contained in:
parent
08014984d3
commit
c02b42b8e8
@ -486,20 +486,13 @@ export PYTHON=/usr/bin/python3
|
|||||||
--with-system-tzdata=%{_datadir}/zoneinfo \
|
--with-system-tzdata=%{_datadir}/zoneinfo \
|
||||||
--datadir=%{_datadir}/pgsql
|
--datadir=%{_datadir}/pgsql
|
||||||
|
|
||||||
# Fortunately we don't need to build much except plpython itself
|
# Fortunately we don't need to build much except plpython itself.
|
||||||
cd src/backend
|
# TODO: remove the headers hack once this is resolved:
|
||||||
make submake-errcodes
|
# https://www.postgresql.org/message-id/1925924.izSMJEZO3x@unused-4-107.brq.redhat.com
|
||||||
cd ../..
|
make %{?_smp_mflags} submake-generated-headers
|
||||||
# This line somehow fixes build under 9.6
|
make %{?_smp_mflags} -C src/pl/plpython all
|
||||||
# originaly it contained this error:
|
|
||||||
# ../../../src/include/storage/lwlock.h:129:33: fatal error: storage/lwlocknames.h: No such file or directory
|
|
||||||
make %{?_smp_mflags}
|
|
||||||
cd src/pl/plpython
|
|
||||||
make %{?_smp_mflags} all
|
|
||||||
cd ..
|
|
||||||
# save built form in a directory that "make distclean" won't touch
|
# save built form in a directory that "make distclean" won't touch
|
||||||
cp -a plpython plpython3
|
cp -a src/pl/plpython src/pl/plpython3
|
||||||
cd ../..
|
|
||||||
|
|
||||||
# must also save this version of Makefile.global for later
|
# must also save this version of Makefile.global for later
|
||||||
cp src/Makefile.global src/Makefile.global.python3
|
cp src/Makefile.global src/Makefile.global.python3
|
||||||
|
Loading…
Reference in New Issue
Block a user