derle.sh 913 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. patch -p1 < ../postgresql-run-socket.patch
  2. patch -p1 < ../postgresql-perl-rpath.patch
  3. local options=(
  4. --prefix=/usr
  5. --mandir=/usr/share/man
  6. --datadir=/usr/share/postgresql
  7. --sysconfdir=/etc
  8. --with-gssapi
  9. --with-libxml
  10. --with-openssl
  11. --with-perl
  12. --with-python
  13. --with-tcl
  14. --with-pam
  15. --with-system-tzdata=/usr/share/zoneinfo
  16. --with-uuid=e2fs
  17. --with-icu
  18. --with-ldap
  19. --with-llvm
  20. --enable-nls
  21. --enable-thread-safety
  22. --disable-rpath
  23. --disable-static
  24. )
  25. # only build plpython3 for now
  26. ./configure ${options[@]} \
  27. PYTHON=/usr/bin/python
  28. make -C src/pl/plpython all
  29. make -C contrib/hstore_plpython all
  30. make -C contrib/ltree_plpython all
  31. # save plpython3 build and Makefile.global
  32. cp -a src/pl/plpython{,3}
  33. cp -a contrib/hstore_plpython{,3}
  34. cp -a contrib/ltree_plpython{,3}
  35. cp -a src/Makefile.global{,.python3}
  36. make distclean
  37. # regular build with everything
  38. ./configure ${options[@]} \
  39. PYTHON=/usr/bin/python2
  40. make world