Skip to content

Commit 08313b0

Browse files
committed
Fix extension build fail for PG_VERSION >= 11 due to enabled LLVM
1 parent e87121b commit 08313b0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile.tmpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ RUN if [ "${CHECK_CODE}" = "cppcheck" ] ; then \
1313
fi
1414

1515
RUN if [ "${CHECK_CODE}" = "false" ] ; then \
16-
echo 'http://dl-3.alpinelinux.org/alpine/edge/main' > /etc/apk/repositories; \
17-
apk --no-cache add curl python3 gcc make musl-dev;\
16+
# echo 'http://dl-3.alpinelinux.org/alpine/edge/main' > /etc/apk/repositories; \
17+
# Use alpine/v3.6/main instead of alpine/edge/main to fix version of clang to '8.*.*'
18+
# Install clang as well, since LLVM is enabled in PG_VERSION >= 11 by default
19+
apk --no-cache add curl python3 gcc clang make musl-dev --repository http://dl-cdn.alpinelinux.org/alpine/v3.6/main;\
1820
fi
1921

2022
RUN mkdir -p /pg/data && \

run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ make USE_PGXS=1 install
4848
status=$?
4949
if [ $status -ne 0 ]; then exit $status; fi
5050

51-
# add pg_pathman to shared_preload_libraries and restart cluster 'test'
51+
# add pg_wait_sampling to shared_preload_libraries and restart cluster 'test'
5252
echo "shared_preload_libraries = 'pg_wait_sampling'" >> $PGDATA/postgresql.conf
5353
echo "port = 55435" >> $PGDATA/postgresql.conf
5454
pg_ctl start -l /tmp/postgres.log -w

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy