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, change into the correct directory to install emaj, and remove
a comment from the emaj control file.

Also build the test image for Postgres 17.
  • Loading branch information
theory committed Dec 13, 2024
1 parent f3b2a28 commit 02e3d4f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- large-8x8
strategy:
matrix:
pg_version: ["14", "15", "16"]
pg_version: ["14", "15", "16", "17"]
outputs:
short_sha: ${{ steps.versions.outputs.SHORT_SHA }}
steps:
Expand Down
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 --datarootdir "$(pg_config --sharedir)" --libdir "$(pg_config --pkglibdir)") \
&& make -C postgres/contrib/${EXTENSION_NAME} USE_PGXS=1
1 change: 1 addition & 0 deletions contrib/emaj/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ ARG RELEASE=4.5.0
RUN curl -O https://api.pgxn.org/dist/e-maj/${RELEASE}/e-maj-${RELEASE}.zip \
&& unzip e-maj-${RELEASE}.zip \
&& cd e-maj-${RELEASE} \
&& perl -i -pe 's/#directory/directory/' emaj.control \
&& make
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 --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 02e3d4f

Please sign in to comment.