From efc82322822a9d61bf7caa20a648d1bda40c944c Mon Sep 17 00:00:00 2001 From: MickLesk Date: Wed, 1 Jul 2026 22:03:10 +0200 Subject: [PATCH] Stirling-PDF: ensure patchelf dependency on update and guard execstack patching --- ct/stirling-pdf.sh | 3 ++- install/stirling-pdf-install.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ct/stirling-pdf.sh b/ct/stirling-pdf.sh index 267bdaf85..1730eaaa8 100644 --- a/ct/stirling-pdf.sh +++ b/ct/stirling-pdf.sh @@ -39,7 +39,8 @@ function update_script() { JAVA_VERSION="25" setup_java msg_info "Patching Native Libraries for LXC Compatibility" - find /usr/lib -name "libicudata.so.*" -exec patchelf --clear-execstack {} \; + ensure_dependencies patchelf + find /usr/lib -name "libicudata.so.*" -exec patchelf --clear-execstack {} \; || true msg_ok "Patched Native Libraries" msg_info "Stopping Services" diff --git a/install/stirling-pdf-install.sh b/install/stirling-pdf-install.sh index f953e997b..d0a4cbfc2 100644 --- a/install/stirling-pdf-install.sh +++ b/install/stirling-pdf-install.sh @@ -117,7 +117,7 @@ fi msg_ok "Created Environment Variables" msg_info "Patching Native Libraries for LXC Compatibility" -find /usr/lib -name "libicudata.so.*" -exec patchelf --clear-execstack {} \; +find /usr/lib -name "libicudata.so.*" -exec patchelf --clear-execstack {} \; || true msg_ok "Patched Native Libraries" msg_info "Refreshing Font Cache"