fix(postgresql.org): install contrib extensions (#4901)

* fix(postgresql.org): install contrib extensions

in the homebrew formula, postgres does `make install-world`, not just
`make install`, which installs extensions under the `contrib/` source dir.

in my case, i need the pg_trgm (trigram index) extension

* fix(postgresql.org): disable sgml doc generation

as popular as i'm sure they are, seems better if the package builds

* fix(postgresql.org): disable incompatible pointer type warnings

causes the contrib extensions to fail with this version of clang on
linux
This commit is contained in:
Scott J. Goldman 2024-01-18 22:52:21 -08:00 committed by GitHub
parent dd02ec2804
commit da988fd829
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,6 +23,7 @@ build:
freedesktop.org/pkg-config: '*' freedesktop.org/pkg-config: '*'
#gnu.org/gcc: '*' #gnu.org/gcc: '*'
gnu.org/bison: '*' gnu.org/bison: '*'
gnu.org/sed: '*'
github.com/westes/flex: ^2.5.31 github.com/westes/flex: ^2.5.31
perl.org: '*' perl.org: '*'
script: | script: |
@ -30,9 +31,13 @@ build:
# `./configure` *specifically* checks that certain warnings are emitted. # `./configure` *specifically* checks that certain warnings are emitted.
export CFLAGS="$(echo $CFLAGS | tr ' ' '\n' | sed -e '/^-w$/d' | tr '\n' ' ')" export CFLAGS="$(echo $CFLAGS | tr ' ' '\n' | sed -e '/^-w$/d' | tr '\n' ' ')"
# disable sgml doc generation, since that seems to fail.
# sorry all you sgml-heads out there
sed -i 's|\([^\t]*sgml.*\)$|#\1|' GNUmakefile.in doc/src/Makefile
./configure $ARGS ./configure $ARGS
make --jobs {{ hw.concurrency }} make --jobs {{ hw.concurrency }}
make install make install-world
env: env:
CC: clang CC: clang
CXX: clang++ CXX: clang++
@ -46,6 +51,9 @@ build:
darwin: darwin:
LDFLAGS: LDFLAGS:
- -headerpad_max_install_names $LDFLAGS - -headerpad_max_install_names $LDFLAGS
linux:
CFLAGS:
- -Wno-incompatible-function-pointer-types $CFLAGS
provides: provides:
- bin/clusterdb - bin/clusterdb