public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/freeimage] epel10.3: Fix flatpak build
@ 2026-11-18  2:42 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-11-18  2:42 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/freeimage
            Branch : epel10.3
            Commit : 699fe104372d80e0ce4adac4d5982d76d2175567
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2025-05-02T12:21:24-04:00
            Stats  : +5/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/freeimage/c/699fe104372d80e0ce4adac4d5982d76d2175567?branch=epel10.3

            Log:
            Fix flatpak build

jxrlib headers are in a subdirectory but no means is provided to
automatically locate them (e.g. pkgconfig).  When building freeimage for
flatpaks with the /app prefix, jxrlib is not part of the runtime and is
therefore also built in /app rather than /usr.

---
diff --git a/freeimage.spec b/freeimage.spec
index f82f122..e502766 100644
--- a/freeimage.spec
+++ b/freeimage.spec
@@ -110,6 +110,11 @@ done
 
 %autopatch -p1
 
+# Fix unbundling patch for flatpak builds, where jxrlib is not in the runtime
+if [ %{_prefix} != /usr -a -d %{_includedir}/jxrlib ] ; then
+  sed -i -e 's|/usr/include/jxrlib|%{_includedir}/jxrlib|' Makefile.gnu
+fi
+
 # remove all included libs to make sure these don't get used during compile
 rm -r Source/Lib* Source/ZLib Source/OpenEXR
 

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

only message in thread, other threads:[~2026-11-18  2:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-18  2:42 [rpms/freeimage] epel10.3: Fix flatpak build Yaakov Selkowitz

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