Skip to content

Commit 9c98741

Browse files
committed
run patchelf on the additional binaries
1 parent ff72080 commit 9c98741

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/build-postgres-debian.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ $DOCKER_OPTS $IMG_NAME /bin/bash -ex -c 'echo "Starting building postgres binari
146146
&& cp /lib/*/libssl.so.1.0.0 /lib/*/libcrypto.so.1.0.0 ./lib || cp /usr/lib/*/libssl.so.1.0.0 /usr/lib/*/libcrypto.so.1.0.0 ./lib \
147147
&& if [ "$ICU_ENABLED" = true ]; then cp --no-dereference /usr/lib/*/libicudata.so* /usr/lib/*/libicuuc.so* /usr/lib/*/libicui18n.so* ./lib; fi \
148148
&& if [ -n "$POSTGIS_VERSION" ]; then cp --no-dereference /lib/*/libjson-c.so* /usr/lib/*/libsqlite3.so* ./lib ; fi \
149-
&& find ./bin -type f \( -name "initdb" -o -name "pg_ctl" -o -name "postgres" \) -print0 | xargs -0 -n1 patchelf --set-rpath "\$ORIGIN/../lib" \
149+
&& find ./bin -type f \( -name "initdb" -o -name "pg_ctl" -o -name "postgres" -o -name "pg_dump" -o -name "pg_dumpall" -o -name "pg_restore" -o -name "psql" \) -print0 | xargs -0 -n1 patchelf --set-rpath "\$ORIGIN/../lib" \
150150
&& find ./lib -maxdepth 1 -type f -name "*.so*" -print0 | xargs -0 -n1 patchelf --set-rpath "\$ORIGIN" \
151151
&& find ./lib/postgresql -maxdepth 1 -type f -name "*.so*" -print0 | xargs -0 -n1 patchelf --set-rpath "\$ORIGIN/.." \
152152
&& tar -cJvf /usr/local/pg-dist/postgres-linux-debian.txz --hard-dereference \
@@ -155,7 +155,7 @@ $DOCKER_OPTS $IMG_NAME /bin/bash -ex -c 'echo "Starting building postgres binari
155155
bin/initdb \
156156
bin/pg_ctl \
157157
bin/postgres \
158-
bin/pg_dump \
159-
bin/pg_dumpall \
160-
bin/pg_restore \
161-
bin/psql'
158+
bin/pg_dump \
159+
bin/pg_dumpall \
160+
bin/pg_restore \
161+
bin/psql'

0 commit comments

Comments
 (0)