Skip to content

Commit cf07509

Browse files
committed
making it work
1 parent c7be964 commit cf07509

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ def repackedPlatforms = [
7878
['name':'windows', 'arch':'amd64']
7979
]
8080

81-
if (pgMajorVersionParam > 14
82-
|| (pgMajorVersionParam == 14 && pgMinorVersionParam >= 1)) {
81+
if (pgMajorVersionParam >= 13) {
8382
repackedPlatforms << ['name':'darwin', 'arch':'arm64v8']
8483
}
8584

build_and_release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function do_build {
1414
cp repacked-platforms/build/tmp/buildAmd64DarwinBundle/bundle/postgres-darwin-x86_64.txz "release/postgresql-${version}-darwin-amd64.txz"
1515
cp repacked-platforms/build/tmp/buildArm64v8DarwinBundle/bundle/postgres-darwin-arm_64.txz "release/postgresql-${version}-darwin-arm64.txz"
1616

17-
./gradlew clean install -Pversion="${version}.0" -PpgVersion="${version}" -ParchName=amd64
17+
./gradlew clean install -Pversion="${version}.0" -PpgVersion="${version}" -ParchName=amd64 -PpostgisVersion=3.4.0
1818
cp custom-debian-platform/build/tmp/buildCustomDebianBundle/bundle/postgres-linux-debian.txz "release/postgresql-${version}-linux-amd64.txz"
1919
}
2020

@@ -26,7 +26,7 @@ function do_release {
2626
gh release create "${release_name}" --notes "${sums}" --title "" release/postgresql-${version}-*
2727
}
2828

29-
for version in "14.10" "15.5" "16.1"; do
29+
for version in "13.14" "14.11" "15.6" "16.2"; do
3030
do_build "$version"
3131
do_release "$version"
3232
done

scripts/build-postgres-debian.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ docker run -i --rm -v ${TRG_DIR}:/usr/local/pg-dist \
3636
-e PG_VERSION=$PG_VERSION \
3737
-e POSTGIS_VERSION=$POSTGIS_VERSION \
3838
-e ICU_ENABLED=$ICU_ENABLED \
39-
-e PROJ_VERSION=6.0.0 \
39+
-e PROJ_VERSION=8.2.1 \
4040
-e PROJ_DATUMGRID_VERSION=1.8 \
41-
-e GEOS_VERSION=3.7.2 \
42-
-e GDAL_VERSION=2.4.1 \
41+
-e GEOS_VERSION=3.8.3 \
42+
-e GDAL_VERSION=3.4.3 \
4343
$DOCKER_OPTS $IMG_NAME /bin/bash -ex -c 'echo "Starting building postgres binaries" \
4444
&& sed "[email protected]@us.archive.ubuntu.com@" -i /etc/apt/sources.list \
4545
&& ln -snf /usr/share/zoneinfo/Etc/UTC /etc/localtime && echo "Etc/UTC" > /etc/timezone \
@@ -100,7 +100,7 @@ $DOCKER_OPTS $IMG_NAME /bin/bash -ex -c 'echo "Starting building postgres binari
100100
&& make -C contrib install \
101101
\
102102
&& if [ -n "$POSTGIS_VERSION" ]; then \
103-
apt-get install -y --no-install-recommends curl libjson-c-dev libsqlite3-0 libsqlite3-dev sqlite3 unzip \
103+
apt-get install -y --no-install-recommends curl libjson-c-dev libsqlite3-0 libsqlite3-dev libtiff5-dev libcurl4-openssl-dev sqlite3 unzip \
104104
&& mkdir -p /usr/src/proj \
105105
&& curl -sL "https://download.osgeo.org/proj/proj-$PROJ_VERSION.tar.gz" | tar -xzf - -C /usr/src/proj --strip-components 1 \
106106
&& cd /usr/src/proj \
@@ -124,7 +124,7 @@ $DOCKER_OPTS $IMG_NAME /bin/bash -ex -c 'echo "Starting building postgres binari
124124
&& cd /usr/src/gdal \
125125
&& curl -sL "https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=b8ee5f79949d1d40e8820a774d813660e1be52d3" > config.guess \
126126
&& curl -sL "https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=b8ee5f79949d1d40e8820a774d813660e1be52d3" > config.sub \
127-
&& ./configure --disable-static --prefix=/usr/local/pg-build \
127+
&& ./configure --disable-static --prefix=/usr/local/pg-build --with-proj=/usr/local/pg-build \
128128
&& make -j$(nproc) \
129129
&& make install \
130130
&& mkdir -p /usr/src/postgis \
@@ -138,6 +138,7 @@ $DOCKER_OPTS $IMG_NAME /bin/bash -ex -c 'echo "Starting building postgres binari
138138
--with-geosconfig=/usr/local/pg-build/bin/geos-config \
139139
--with-projdir=/usr/local/pg-build \
140140
--with-gdalconfig=/usr/local/pg-build/bin/gdal-config \
141+
--without-protobuf \
141142
&& make -j$(nproc) \
142143
&& make install \
143144
; fi \

0 commit comments

Comments
 (0)