Skip to content

Commit 03db72f

Browse files
committed
Remove UUID variability now that 9.3 is gone (per comment in "update.sh")
1 parent 59e5a64 commit 03db72f

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

Dockerfile-alpine.template

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ ENV PG_MAJOR %%PG_MAJOR%%
2525
ENV PG_VERSION %%PG_VERSION%%
2626
ENV PG_SHA256 %%PG_SHA256%%
2727

28-
%%OSSP_UUID_ENV_VARS%%
2928
RUN set -ex \
3029
\
3130
&& apk add --no-cache --virtual .fetch-deps \
@@ -69,7 +68,6 @@ RUN set -ex \
6968
zlib-dev \
7069
icu-dev \
7170
\
72-
%%INSTALL_OSSP_UUID%%
7371
&& cd /usr/src/postgresql \
7472
# update "DEFAULT_PGSOCKET_DIR" to "/var/run/postgresql" (matching Debian)
7573
# see https://anonscm.debian.org/git/pkg-postgresql/postgresql.git/tree/debian/patches/51-default-sockets-in-var.patch?id=8b539fcb3e093a521c095e70bdfa76887217b89f
@@ -92,7 +90,7 @@ RUN set -ex \
9290
# skip debugging info -- we want tiny size instead
9391
# --enable-debug \
9492
--disable-rpath \
95-
%%UUID_CONFIG_FLAG%% \
93+
--with-uuid=e2fs \
9694
--with-gnu-ld \
9795
--with-pgport=5432 \
9896
--with-system-tzdata=/usr/share/zoneinfo \

update.sh

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -92,29 +92,6 @@ for version in "${versions[@]}"; do
9292
sed -i -e '/icu/d' "$version/$variant/Dockerfile"
9393
fi
9494

95-
# TODO remove all this when 9.3 is EOL (2018-10-01 -- from http://www.postgresql.org/support/versioning/)
96-
case "$version" in
97-
9.3)
98-
uuidConfigFlag='--with-ossp-uuid'
99-
sed -i \
100-
-e 's/%%OSSP_UUID_ENV_VARS%%/ENV OSSP_UUID_VERSION '"$osspUuidVersion"'\nENV OSSP_UUID_SHA256 '"$osspUuidHash"'\n/' \
101-
-e $'/%%INSTALL_OSSP_UUID%%/ {r ossp-uuid.template\n d}' \
102-
"$version/$variant/Dockerfile"
103-
104-
# configure: WARNING: unrecognized options: --enable-tap-tests
105-
sed -i '/--enable-tap-tests/d' "$version/$variant/Dockerfile"
106-
;;
107-
108-
*)
109-
uuidConfigFlag='--with-uuid=e2fs'
110-
sed -i \
111-
-e '/%%OSSP_UUID_ENV_VARS%%/d' \
112-
-e '/%%INSTALL_OSSP_UUID%%/d' \
113-
"$version/$variant/Dockerfile"
114-
;;
115-
esac
116-
sed -i 's/%%UUID_CONFIG_FLAG%%/'"$uuidConfigFlag"'/' "$version/$variant/Dockerfile"
117-
11895
travisEnv="\n - VERSION=$version VARIANT=$variant$travisEnv"
11996
done
12097

0 commit comments

Comments
 (0)