public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [flatpaks/flatpak-sdk] f45: Sync extension support
Date: Wed, 07 Oct 2026 17:16:02 GMT	[thread overview]
Message-ID: <179139336247.1.10383358541667103873.flatpaks-flatpak-sdk-ff6b9d4fbe2f@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : flatpaks/flatpak-sdk
Branch : f45
Commit : ff6b9d4fbe2fb20a43d103583b2312d0f2bcc022
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date   : 2025-02-03T02:29:19-05:00
Stats  : +111/-136 in 1 file(s)
URL    : https://src.fedoraproject.org/flatpaks/flatpak-sdk/c/ff6b9d4fbe2fb20a43d103583b2312d0f2bcc022?branch=f45

Log:
Sync extension support

---
diff --git a/container.yaml b/container.yaml
index 713aca0..1f40b13 100644
--- a/container.yaml
+++ b/container.yaml
@@ -5,20 +5,69 @@ flatpak:
     component: flatpak-sdk
     branch: f41
     runtime: org.fedoraproject.Platform
+    add-extensions:
+        org.fedoraproject.Platform.GL:
+            directory: lib64/GL
+            versions: f41;1.4
+            add-ld-path: lib
+            merge-dirs: egl/egl_external_platform.d;glvnd/egl_vendor.d;lib/clc;lib/d3d;lib/dri;lib/gallium-pipe;lib/gbm;OpenCL/vendors;vdpau;vulkan/explicit_layer.d;vulkan/icd.d;vulkan/implicit_layer.d
+            subdirectories: true
+            autodelete: false
+            no-autodownload: true
+            download-if: active-gl-driver
+            enable-if: active-gl-driver
+            autoprune-unless: active-gl-driver
+        org.fedoraproject.Platform.VAAPI.Intel:
+            directory: lib64/dri-intel-vaapi
+            add-ld-path: lib
+            autodelete: false
+            no-autodownload: true
+            download-if: have-intel-gpu
+            autoprune-unless: have-intel-gpu
+        org.fedoraproject.Platform.VAAPI.nvidia:
+            directory: lib64/dri-nvidia-vaapi
+            autodelete: false
+            no-autodownload: true
+            download-if: have-kernel-module-nvidia
+            autoprune-unless: have-kernel-module-nvidia
+        org.fedoraproject.Platform.VulkanLayer:
+            directory: lib64/vulkan
+            add-ld-path: lib
+            merge-dirs: share/vulkan/implicit_layer.d;share/vulkan/explicit_layer.d;
+            subdirectories: true
+            no-autodownload: true
+        org.fedoraproject.Platform.Locale:
+            directory: share/runtime/locale
+            autodelete: true
+        org.fedoraproject.Platform.GStreamer:
+            directory: lib64/extensions/gstreamer-1.0
+            subdirectories: true
+            no-autodownload: true
+        org.freedesktop.Platform.openh264:
+            directory: lib64/openh264
+            add-ld-path: extra
+            no-autodownload: true
+        org.fedoraproject.Gtk3theme:
+            directory: share/runtime/share/themes
+            version: '3.22'
+            subdirectories: true
+            subdirectory-suffix: gtk-3.0
+            no-autodownload: true
+            download-if: active-gtk-theme
+        org.fedoraproject.Sdk.Extension:
+            directory: lib/sdk
+            add-ld-path: lib
+            subdirectories: true
+            no-autodownload: true
     finish-args: >
-        --env=GI_TYPELIB_PATH=/app/lib64/girepository-1.0 --env=GST_PLUGIN_SYSTEM_PATH=/app/lib64/gstreamer-1.0:/usr/lib64/gstreamer-1.0
+        --env=ALSA_CONFIG_DIR=/usr/share/alsa --env=ALSA_CONFIG_PATH=/usr/share/alsa/alsa.conf
+        --env=GI_TYPELIB_PATH=/app/lib64/girepository-1.0 --env=GST_PLUGIN_SYSTEM_PATH=/app/lib64/gstreamer-1.0:/usr/lib64/extensions/gstreamer-1.0:/usr/lib64/gstreamer-1.0
+        --env=LIBVA_DRIVERS_PATH=/usr/lib64/dri-intel-vaapi:/usr/lib64/dri-nvidia-vaapi:/usr/lib64/GL/lib/dri
         --env=LUA_PATH="/app/share/lua/5.4/?.lua;/app/share/lua/5.4/?/init.lua;/app/lib64/lua/5.4/?.lua;/app/lib64/lua/5.4/?/init.lua;;"
         --env=LUA_CPATH="/app/lib64/lua/5.4/?.so;;" --env=PATH=/app/sbin:/app/bin:/usr/sbin:/usr/bin
-        --env=PINENTRY_BINARY=/usr/bin/pinentry-gnome3 --env=TCLLIBPATH=/app/lib64/tcl8.6
-        --env=XDG_DATA_DIRS=/app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share
-        --env=GPROFNG_SYSCONFDIR=/etc --extension=org.freedesktop.Platform.GL=version=1.4
-        --extension=org.freedesktop.Platform.GL=directory=lib64/GL --extension=org.freedesktop.Platform.GL=subdirectories=true
-        --extension=org.freedesktop.Platform.GL=no-autodownload=true --extension=org.freedesktop.Platform.GL=autodelete=false
-        --extension=org.freedesktop.Platform.GL=add-ld-path=lib --extension=org.freedesktop.Platform.GL=merge-dirs=vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d;vulkan/implicit_layer.d
-        --extension=org.freedesktop.Platform.GL=download-if=active-gl-driver --extension=org.freedesktop.Platform.GL=enable-if=active-gl-driver
-        --extension=org.freedesktop.Platform.GL=autoprune-unless=active-gl-driver
-        --extension=org.freedesktop.Platform.openh264=version=2.4.1 --extension=org.freedesktop.Platform.openh264=directory=lib64/openh264
-        --extension=org.freedesktop.Platform.openh264=add-ld-path=extra --extension=org.freedesktop.Platform.openh264=no-autodownload=true
+        --env=PINENTRY_BINARY=/usr/bin/pinentry-gnome3 --env=PYTHONUSERBASE=/var/data/python
+        --env=TCLLIBPATH=/app/lib64/tcl8.6 --env=XDG_DATA_DIRS=/app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share
+        --env=GPROFNG_SYSCONFDIR=/etc
     cleanup-commands: |
         appstream-compose --verbose   \
             --prefix=/usr             \
@@ -29,23 +78,58 @@ flatpak:
         mv -f /usr/bin/flatpak-xdg-email /usr/bin/xdg-email
         mv -f /usr/bin/flatpak-xdg-open /usr/bin/xdg-open
 
+        rm -fr /usr/lib/systemd/
+        rm -fr /usr/share/{doc,info,man}
+
         # enable dynamic ld.so.cache generation
         [ -e /usr/bin/ldconfig ] || ln -s ../sbin/ldconfig /usr/bin/ldconfig
         cat /etc/ld.so.conf.d/*.conf > /etc/ld.so.conf
         rm -f /etc/ld.so.conf.d/*.conf
 
-        # Create a directory for mounting extension points
-        mkdir -p /usr/lib64/GL
-        mkdir -p /usr/lib64/openh264
+        # User ALSA configuration can conflict with flatpak setup
+        # https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/issues/857
+        sed -e '/~\/\.asoundrc/d' -e 's|/alsa/asoundrc|/asound.conf|' /usr/share/alsa/alsa.conf
+
+        # Create symlinks to expected locations from GL extensions
+        rm -fr /etc/{egl,glvnd,OpenCL,vulkan}
+        rm -fr /usr/lib64/{clc,d3d,dri,gallium-pipe,gbm,vdpau}/
+        ln -s ../lib64/GL/{egl,glvnd,OpenCL,vulkan} /etc/
+        ln -s GL/lib/{clc,d3d,dri,gbm,gallium-pipe} GL/vdpau /usr/lib64/
+        # Provide driver implementations with GL extensions
+        rm -f /usr/lib64/libdrm_*.so*
 
-        rm -r /etc/glvnd
-        ln -s ../lib64/GL/glvnd /etc/glvnd
+        # devel-to-runtime dependencies have not been been split yet
+        rm -f /usr/lib64/libLLVM* /usr/lib64/libsensors.so* /usr/lib64/libgallium-*.so \
+              /usr/lib64/libEGL_mesa.so* /usr/lib64/libGLX_{mesa,system}.so* /usr/lib64/libglapi.so*
 
-        rm -r /etc/vulkan
-        ln -s ../lib64/GL/vulkan /etc/vulkan
+        # Create symlinks to expected locations from Vulkan extensions
+        rm -fr /usr/share/vulkan
+        ln -s ../lib64/vulkan/share/vulkan /usr/share/vulkan
 
         touch -d @0 /usr/share/fonts /usr/share/fonts/*
         fc-cache -rs
+
+        for l in `locale -a`; do
+            if [ ! -d /usr/lib/locale/$l ]; then
+                ln -s ../../share/runtime/locale/${l%_*}/lib/$l /usr/lib/locale/$l
+            fi
+        done
+        rm -f /usr/lib/locale/locale-archive*
+
+        cd /usr/share/hunspell
+        for f in *; do
+            l=`echo $f | sed -e 's/\([^-_\.]*\)[-_\.].*/\1/'`
+            case $l in en) continue ;; esac
+            rm -f $f
+            ln -sf ../runtime/locale/$l/hunspell/$f .
+        done
+        cd /usr/share/hyphen
+        for f in *; do
+            l=`echo $f | sed -e 's/hyph_\([^-_\.]*\)[-_\.].*/\1/'`
+            case $l in en) continue ;; esac
+            rm -f $f
+            ln -sf ../runtime/locale/$l/hyphen/$f .
+        done
     packages:
     - abattis-cantarell-vf-fonts
     - abseil-cpp
@@ -311,6 +395,7 @@ flatpak:
     - glibc-common
     - glibc-devel
     - glibc-gconv-extra
+    - glibc-langpack-en
     - glibc-minimal-langpack
     - glibc-nss-devel
     - glslang
@@ -418,123 +503,18 @@ flatpak:
     - hiredis
     - hostname
     - hunspell
-    - hunspell-af
-    - hunspell-ar
-    - hunspell-be
-    - hunspell-bg
-    - hunspell-bn
-    - hunspell-br
-    - hunspell-ca
-    - hunspell-cs
-    - hunspell-da
-    - hunspell-de
+    - hunspell-??
+    - hunspell-??-*
+    - hunspell-???
     - hunspell-devel
-    - hunspell-el
-    - hunspell-en
-    - hunspell-en-GB
     - hunspell-en-US
-    - hunspell-eo
-    - hunspell-es
-    - hunspell-es-AR
-    - hunspell-es-BO
-    - hunspell-es-CL
-    - hunspell-es-CO
-    - hunspell-es-CR
-    - hunspell-es-CU
-    - hunspell-es-DO
-    - hunspell-es-EC
-    - hunspell-es-ES
-    - hunspell-es-GQ
-    - hunspell-es-GT
-    - hunspell-es-HN
-    - hunspell-es-MX
-    - hunspell-es-NI
-    - hunspell-es-PA
-    - hunspell-es-PE
-    - hunspell-es-PR
-    - hunspell-es-PY
-    - hunspell-es-SV
-    - hunspell-es-US
-    - hunspell-es-UY
-    - hunspell-es-VE
-    - hunspell-et
-    - hunspell-fa
     - hunspell-filesystem
-    - hunspell-fr
-    - hunspell-gd
-    - hunspell-gl
-    - hunspell-gu
-    - hunspell-he
-    - hunspell-hi
-    - hunspell-hr
-    - hunspell-hu
-    - hunspell-id
-    - hunspell-is
-    - hunspell-it
-    - hunspell-ko
-    - hunspell-lt
-    - hunspell-lv
-    - hunspell-nb
-    - hunspell-ne
-    - hunspell-nl
-    - hunspell-nn
-    - hunspell-oc
-    - hunspell-pl
-    - hunspell-pt
-    - hunspell-pt-BR
-    - hunspell-ro
-    - hunspell-ru
-    - hunspell-si
-    - hunspell-sk
-    - hunspell-sl
-    - hunspell-sq
-    - hunspell-sr
-    - hunspell-sv
-    - hunspell-sw
-    - hunspell-te
-    - hunspell-th
-    - hunspell-tr
-    - hunspell-uk
-    - hunspell-vi
     - hwdata
     - hyphen
-    - hyphen-af
-    - hyphen-be
-    - hyphen-bg
-    - hyphen-ca
-    - hyphen-cs
-    - hyphen-da
-    - hyphen-de
+    - hyphen-??
+    - hyphen-??-*
+    - hyphen-???
     - hyphen-devel
-    - hyphen-el
-    - hyphen-en
-    - hyphen-eo
-    - hyphen-es
-    - hyphen-et
-    - hyphen-fr
-    - hyphen-gl
-    - hyphen-hr
-    - hyphen-hu
-    - hyphen-id
-    - hyphen-is
-    - hyphen-it
-    - hyphen-lt
-    - hyphen-lv
-    - hyphen-nb
-    - hyphen-nl
-    - hyphen-nn
-    - hyphen-pl
-    - hyphen-pt
-    - hyphen-pt-BR
-    - hyphen-ro
-    - hyphen-ru
-    - hyphen-sk
-    - hyphen-sl
-    - hyphen-sr
-    - hyphen-sv
-    - hyphen-te
-    - hyphen-uk
-    - hyphen-zu
     - ibus-devel
     - ibus-gtk2
     - ibus-gtk3
@@ -773,8 +753,6 @@ flatpak:
     - libpaper
     - libpciaccess
     - libpciaccess-devel
-    - libperf
-    - libperf-devel
     - libpipeline
     - libpipeline-devel
     - libpkgconf
@@ -1017,9 +995,6 @@ flatpak:
     - mesa-libGL-devel
     - mesa-libglapi
     - mesa-libGLU
-    - mesa-va-drivers
-    - mesa-vdpau-drivers
-    - mesa-vulkan-drivers
     - meson
     - mozjs128
     - mozjs128-devel
@@ -1280,7 +1255,6 @@ flatpak:
     - perl-Net-SSLeay
     - perl-NEXT
     - perl-NTLM
-    - perl-Object-HashBase
     - perl-ODBM_File
     - perl-Opcode
     - perl-open
@@ -1432,7 +1406,6 @@ flatpak:
     - python3-tkinter
     - python3-typogrify
     - python3-wheel
-    - qadwaitadecorations-qt6
     - qrencode-libs
     - qt5-srpm-macros
     - qt6-filesystem
@@ -1561,6 +1534,8 @@ flatpak:
     - vala
     - valgrind
     - valgrind-devel
+    - valgrind-gdb
+    - valgrind-scripts
     - valgrind-tools-devel
     - vamp-plugin-sdk
     - vapoursynth-libs

                 reply	other threads:[~2026-10-07 17:16 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=179139336247.1.10383358541667103873.flatpaks-flatpak-sdk-ff6b9d4fbe2f@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