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.
  • Loading branch information
theory committed Dec 13, 2024
1 parent f3b2a28 commit eab01c8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 3 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 --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
3 changes: 1 addition & 2 deletions contrib/vectorscale/Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ 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
RUSTFLAGS="-C target-feature=+avx2,+fma" cargo pgrx install --release
"""

0 comments on commit eab01c8

Please sign in to comment.