public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/flatpak-runtime-config] f45: Add Java symlink trigger
@ 2026-09-10 21:21 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-09-10 21:21 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/flatpak-runtime-config
            Branch : f45
            Commit : 83e26bd6c3e64b7be4ebe5f434284f94381230e7
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2024-03-04T20:29:27-05:00
            Stats  : +8/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/flatpak-runtime-config/c/83e26bd6c3e64b7be4ebe5f434284f94381230e7?branch=f45

            Log:
            Add Java symlink trigger

This avoids broken symlinks in maven-lib when one of maven's
dependencies are built in /app for flatpaks (e.g. apache-commons-cli,
for freecol and jmol).

---
diff --git a/flatpak-runtime-config.spec b/flatpak-runtime-config.spec
index b2b0301..82c34ca 100644
--- a/flatpak-runtime-config.spec
+++ b/flatpak-runtime-config.spec
@@ -4,7 +4,7 @@
 
 Name:           flatpak-runtime-config
 Version:        39
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Configuration files that live inside the flatpak runtime
 Source1:        50-flatpak.conf
 Source2:        sitecustomize.py
@@ -94,6 +94,10 @@ HOME=/root /usr/bin/fc-cache -s
 %transfiletriggerin -- /app/lib/graphviz /app/lib64/graphviz
 /app/bin/dot -c 2>/dev/null || :
 
+%transfiletriggerin -- /app/share/java
+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
+
 %files
 %dir %{_prefix}/cache
 %dir %{_prefix}/cache/fontconfig
@@ -104,6 +108,9 @@ HOME=/root /usr/bin/fc-cache -s
 %{_sysconfdir}/ld.so.conf.d/app.conf
 
 %changelog
+* Fri Mar 01 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 39-6
+- Add Java symlink trigger
+
 * Fri Dec 15 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 39-5
 - Add graphviz install trigger
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-10 21:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-10 21:21 [rpms/flatpak-runtime-config] f45: Add Java symlink trigger Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox