Skip to content

Commit

Permalink
Fix configure and install errors
Browse files Browse the repository at this point in the history
Configure postgres for extensions that need it, properly install
vectorize, and change into the correct directory to install emaj.
  • Loading branch information
theory committed Dec 13, 2024
1 parent 9a888ad commit a41e3ff
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions contrib/earthdistance/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ RUN apt-get update && apt-get install -y \
ARG EXTENSION_NAME
ARG PG_RELEASE
RUN git clone --depth 1 --branch "${PG_RELEASE}" https://github.com/postgres/postgres.git \
&& (cd postgres && ./configure --with-perl --datarootdir "$(pg_config --sharedir)" --libdir "$(pg_config --pkglibdir)") \
&& make -C postgres/contrib/${EXTENSION_NAME} USE_PGXS=1
2 changes: 1 addition & 1 deletion contrib/emaj/Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ apt = ["libstdc++6", "libgcc-s1", "libc6"]
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = "cd emaj-4.5.0 && make install"
install_command = "cd e-maj-4.5.0 && make install"
1 change: 1 addition & 0 deletions contrib/hstore/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ RUN apt-get update && apt-get install -y \
ARG EXTENSION_NAME
ARG PG_RELEASE
RUN git clone --depth 1 --branch "${PG_RELEASE}" https://github.com/postgres/postgres.git \
&& (cd postgres && ./configure --with-perl --datarootdir "$(pg_config --sharedir)" --libdir "$(pg_config --pkglibdir)") \
&& make -C postgres/contrib/${EXTENSION_NAME} USE_PGXS=1
1 change: 1 addition & 0 deletions contrib/hstore_plperl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ RUN apt-get update && apt-get install -y \
ARG EXTENSION_NAME
ARG PG_RELEASE
RUN git clone --depth 1 --branch "${PG_RELEASE}" https://github.com/postgres/postgres.git \
&& (cd postgres && ./configure --with-perl --datarootdir "$(pg_config --sharedir)" --libdir "$(pg_config --pkglibdir)") \
&& make -C postgres/contrib/${EXTENSION_NAME} USE_PGXS=1
1 change: 1 addition & 0 deletions contrib/hstore_plperlu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ RUN apt-get update && apt-get install -y \
# ARG EXTENSION_NAME
ARG PG_RELEASE
RUN git clone --depth 1 --branch "${PG_RELEASE}" https://github.com/postgres/postgres.git \
&& (cd postgres && ./configure --with-perl --datarootdir "$(pg_config --sharedir)" --libdir "$(pg_config --pkglibdir)") \
&& make -C postgres/contrib/hstore_plperl USE_PGXS=1
6 changes: 1 addition & 5 deletions contrib/vectorscale/Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@ apt = ["libc6"]
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd pgvectorscale/pgvectorscale
mv target/release/vectorscale-pg17/usr/lib/postgresql/15/lib/* /usr/lib/postgresql/15/lib
mv target/release/vectorscale-pg17/usr/share/postgresql/15/extension/* /usr/share/postgresql/15/extension
"""
install_command = "cd pgvectorscale/pgvectorscale cargo pgrx install --release"

0 comments on commit a41e3ff

Please sign in to comment.