From: Vsevolod Stakhov Date: Wed, 22 Oct 2025 10:26:14 +0000 (+0100) Subject: [Fix] Add ldconfig and library path configuration to Dockerfile X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb780b1b9f4c5ad4fd47cbea199fc0ee60b8c102;p=thirdparty%2Frspamd.git [Fix] Add ldconfig and library path configuration to Dockerfile The rspamd shared libraries are installed in /usr/lib/rspamd/ which is not in the default dynamic linker search path. This causes the error: librspamd-server.so: cannot open shared object file Fixed by: - Adding /usr/lib/rspamd to /etc/ld.so.conf.d/rspamd.conf - Running ldconfig to update the dynamic linker cache This ensures all rspamd shared libraries are found at runtime. --- diff --git a/test/integration/Dockerfile.local b/test/integration/Dockerfile.local index c5c03de027..be894c1e61 100644 --- a/test/integration/Dockerfile.local +++ b/test/integration/Dockerfile.local @@ -23,7 +23,9 @@ RUN apt-get update && apt-get install -y \ COPY install /usr -RUN mkdir -p /var/lib/rspamd /var/log/rspamd /var/run/rspamd +RUN mkdir -p /var/lib/rspamd /var/log/rspamd /var/run/rspamd && \ + echo "/usr/lib/rspamd" > /etc/ld.so.conf.d/rspamd.conf && \ + ldconfig EXPOSE 11333 11334 11335