Skip to content

Commit

Permalink
force rpath on libgdal
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongi-ac committed Jan 14, 2024
1 parent f55e420 commit 1e5c650
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ RUN rm -f $PREFIX/lib/libturbojpeg.so* \

# FIX
RUN for i in $PREFIX/bin/*; do patchelf --force-rpath --set-rpath '$ORIGIN/../lib' $i; done
RUN patchelf --force-rpath --set-rpath '$ORIGIN' $PREFIX/lib/libgdal.so

# Build final image
FROM public.ecr.aws/lambda/provided:al2 as runner
Expand Down
3 changes: 2 additions & 1 deletion tests/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ if [[ ! "$(ogrinfo --formats | grep 'DXF')" ]]; then echo "DXF NOK" && exit 1; f
echo "OK"

echo "Checking sqlite build"
if [[ ! "$(ldd $PREFIX/bin/gdalwarp | grep '/opt/bin/../lib/libsqlite3')" ]]; then echo "libsql NOK" && exit 1; fi
if [[ ! "$(ldd $PREFIX/bin/gdalwarp | grep '/opt/bin/../lib/libsqlite3')" ]]; then echo "gdalwarp libsql NOK" && exit 1; fi
if [[ ! "$(ldd $PREFIX/lib/libgdal.so | grep '/opt/lib/libsqlite3')" ]]; then echo "libgdal libsql NOK" && exit 1; fi
echo "OK"

echo "Checking OGR"
Expand Down

0 comments on commit 1e5c650

Please sign in to comment.