Skip to content

Commit

Permalink
temporary postgis 3.5.0beta1 build workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
ImreSamu committed Sep 17, 2024
1 parent 75ed703 commit 9c2f517
Show file tree
Hide file tree
Showing 23 changed files with 95 additions and 33 deletions.
3 changes: 2 additions & 1 deletion 12-3.5/alpine3.19/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 12-3.5/alpine3.20/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 13-3.5/alpine3.19/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 13-3.5/alpine3.20/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 14-3.5/alpine3.19/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 14-3.5/alpine3.20/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion 14-l3.1.9gcp/bookworm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 15-3.5/alpine3.19/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 15-3.5/alpine3.20/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions 15-master/bookworm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions 15-recent/bookworm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 16-3.5/alpine3.19/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 16-3.5/alpine3.20/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions 16-l3.5.0beta1/bookworm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions 16-master/bookworm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions 16-recent/bookworm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 17rc1-3.5/alpine3.19/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 17rc1-3.5/alpine3.20/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions 17rc1-l3.5.0beta1/bookworm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions 17rc1-master/bookworm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions 17rc1-recent/bookworm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Dockerfile.alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ RUN set -eux \
&& su postgres -c 'pg_ctl -D /tempdb init' \
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
&& cd regress \
{{ if .[env.variant].POSTGIS_CHECKOUT == "tags/3.5.0beta1" then ( -}}
# postgis=3.5.0beta1 -j1 workaround activated; https://trac.osgeo.org/postgis/ticket/5779
&& make -j1 check RUNTESTFLAGS=--extension PGUSER=postgres \
{{ ) else ( -}}
&& make -j$(nproc) check RUNTESTFLAGS=--extension PGUSER=postgres \
{{ ) end -}}
\
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_raster;"' \
Expand Down
13 changes: 11 additions & 2 deletions Dockerfile.master.template
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ RUN set -eux \
liblz4-dev \
liblzma-dev \
libwebp-dev \
libzstd-dev
libzstd-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

ARG PGIS1_CMAKE_BUILD_TYPE
ENV PGIS1_CMAKE_BUILD_TYPE=${PGIS1_CMAKE_BUILD_TYPE}
Expand Down Expand Up @@ -328,7 +330,9 @@ RUN set -eux \
libopenjp2-7-dev \
libpng-dev \
libqhull-dev \
libspatialite-dev
libspatialite-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
{{ ) else ( -}}
#
{{ ) end -}}
Expand Down Expand Up @@ -653,7 +657,12 @@ RUN set -eux \
# https://anonscm.debian.org/cgit/pkg-grass/postgis.git/tree/debian/rules?h=jessie
&& ./configure \
--enable-lto \
{{ if .[env.variant].POSTGIS_CHECKOUT == "tags/3.5.0beta1" then ( -}}
# postgis=3.5.0beta1 -j1 workaround activated; https://trac.osgeo.org/postgis/ticket/5779
&& make -j1 \
{{ ) else ( -}}
&& make -j$(nproc) \
{{ ) end -}}
&& make install \
# refresh proj data - workarounds: https://trac.osgeo.org/postgis/ticket/5316
&& if command -v projsync >/dev/null 2>&1; then \
Expand Down

0 comments on commit 9c2f517

Please sign in to comment.