From 4490560c84bcdf05320b4ac7079e870178c36535 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mar 05 2024 02:00:05 +0000 Subject: Add alternatives symlink trigger Alternatives-based symlinks work when building RPMs, but break in flatpaks because /etc/alternatives is not writable. Since flatpak RPMs are only installed, not removed, this retargets such symlinks to their intended destination. --- diff --git a/flatpak-runtime-config.spec b/flatpak-runtime-config.spec index 7000bde..ac6750b 100644 --- a/flatpak-runtime-config.spec +++ b/flatpak-runtime-config.spec @@ -22,6 +22,7 @@ License: MIT BuildRequires: python3 BuildRequires: python3-rpm-macros +Requires: findutils Requires: fontpackages-filesystem %description @@ -98,6 +99,11 @@ HOME=/root /usr/bin/fc-cache -s for d in `find /app/share/java -type d`; do mkdir -p /usr${d#/app}; done for f in `find /app/share/java ! -type d`; do ln -s $f /usr${f#/app}; done +%transfiletriggerin -P 1 -- /app +for l in `find /app -type l`; do \ + case `readlink $l` in /etc/alternatives/*) ln -fns `readlink -f $l` $l ;; esac \ +done + %files %dir %{_prefix}/cache %dir %{_prefix}/cache/fontconfig @@ -111,6 +117,7 @@ for f in `find /app/share/java ! -type d`; do ln -s $f /usr${f#/app}; done * Fri Mar 01 2024 Yaakov Selkowitz - 39-6 - Add Java symlink trigger - Add /app-built X11 font directories to fontconfig path +- Add alternatives symlink trigger * Fri Dec 15 2023 Yaakov Selkowitz - 39-5 - Add graphviz install trigger