Stirling-PDF: patch libicudata execstack flag for LXC container compatibility (#15531)

This commit is contained in:
CanbiZ (MickLesk) 2026-07-01 22:40:55 +02:00 committed by GitHub
parent ce11015489
commit 88458c5837
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View file

@ -38,6 +38,11 @@ function update_script() {
PYTHON_VERSION="3.12" setup_uv
JAVA_VERSION="25" setup_java
msg_info "Patching Native Libraries for LXC Compatibility"
ensure_dependencies patchelf
find /usr/lib -name "libicudata.so.*" -exec patchelf --clear-execstack {} \; || true
msg_ok "Patched Native Libraries"
msg_info "Stopping Services"
systemctl stop stirlingpdf libreoffice-listener unoserver
msg_ok "Stopped Services"

View file

@ -27,7 +27,8 @@ $STD apt install -y \
fonts-urw-base35 \
qpdf \
poppler-utils \
jbig2
jbig2 \
patchelf
msg_ok "Installed Dependencies"
PYTHON_VERSION="3.12" setup_uv
@ -115,6 +116,10 @@ EOF
fi
msg_ok "Created Environment Variables"
msg_info "Patching Native Libraries for LXC Compatibility"
find /usr/lib -name "libicudata.so.*" -exec patchelf --clear-execstack {} \; || true
msg_ok "Patched Native Libraries"
msg_info "Refreshing Font Cache"
$STD fc-cache -fv
msg_ok "Font Cache Updated"