From 3cb6f4526974ad433a4c8ccc3eef9d227f4dad50 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Tue, 28 Jul 2026 05:23:24 +0000 Subject: [PATCH] [FIX] script install: Fedora wkhtmltopdf via AlmaLinux 9 RPM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wkhtmltopdf 0.12.6.1-3 no longer ships a fedora-* RPM (my URL 404'd). The AlmaLinux 9 (EL9) RPM is compatible with Fedora — tested on the Fedora 42 VM: "dnf install " resolves the deps and "wkhtmltopdf --version" reports 0.12.6.1 (with patched qt). Use it, with an AlmaLinux 8 fallback. Co-Authored-By: Claude Opus 4.8 (1M context) --- script/install/install_fedora_dependency.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/script/install/install_fedora_dependency.sh b/script/install/install_fedora_dependency.sh index 8f5a250..f0e6067 100755 --- a/script/install/install_fedora_dependency.sh +++ b/script/install/install_fedora_dependency.sh @@ -108,9 +108,13 @@ fi if [ "${EL_INSTALL_WKHTMLTOPDF}" = "True" ]; then if ! command -v wkhtmltopdf >/dev/null 2>&1; then echo -e "\n---- Installing wkhtml (best-effort) ----" - _url="https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox-0.12.6.1-3.fedora-38.x86_64.rpm" - sudo dnf install -y "${_url}" \ - || echo "wkhtmltopdf non installé (optionnel) : ${_url}" + # wkhtmltopdf ne publie plus de build « fedora-* » ; le RPM AlmaLinux 9 + # (EL9) est compatible Fedora (testé sur F42 : dnf résout les deps). + # Repli AlmaLinux 8 au besoin. + _base="https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3" + sudo dnf install -y "${_base}/wkhtmltox-0.12.6.1-3.almalinux9.x86_64.rpm" \ + || sudo dnf install -y "${_base}/wkhtmltox-0.12.6.1-3.almalinux8.x86_64.rpm" \ + || echo "wkhtmltopdf non installé (optionnel)." else echo -e "\n---- Already installed wkhtml ----" fi