public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/flatpak-runtime-config] f45: Add alternatives symlink trigger
Date: Thu, 10 Sep 2026 21:21:57 GMT [thread overview]
Message-ID: <178907531708.1.13847650837594685839.rpms-flatpak-runtime-config-4490560c84bc@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/flatpak-runtime-config
Branch : f45
Commit : 4490560c84bcdf05320b4ac7079e870178c36535
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2024-03-04T21:00:05-05:00
Stats : +7/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/flatpak-runtime-config/c/4490560c84bcdf05320b4ac7079e870178c36535?branch=f45
Log:
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 <yselkowi@redhat.com> - 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 <yselkowi@redhat.com> - 39-5
- Add graphviz install trigger
reply other threads:[~2026-09-10 21:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178907531708.1.13847650837594685839.rpms-flatpak-runtime-config-4490560c84bc@fedoraproject.org \
--to=yselkowi@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox