clapper icon indicating copy to clipboard operation
clapper copied to clipboard

flatpak: remove ffmpeg-full and bump llvm

Open GeopJr opened this issue 2 months ago • 5 comments

Mostly in preparation for 49 ~~(should probably do it for the non-nightly flatpak too for the ci)~~ done

ffmpeg-full has been replaced by codecs-extra, GNOME 49 runtime autodownloads it so there's no need for manually setting it up anymore!

GeopJr avatar Oct 10 '25 16:10 GeopJr

Hi. Thanks for PR. Seems to be failing due to:

cp: cannot stat '/usr/share/gnu-config/config.sub': No such file or directory
cp: cannot stat '/usr/share/gnu-config/config.guess': No such file or directory

Which is used in libdv build manifest. Any idea what happened to these files in 49? :upside_down_face:

Rafostar avatar Oct 10 '25 17:10 Rafostar

From what I can tell, they were removed from the freedesktop runtime (which the other runtimes are based on) but I can't really tell why from the changelog :/ https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/releases/freedesktop-sdk-25.08.0

┬─[geopjr@UwU:~/P/clapper]─[09:48:16 PM]─[G:feat/remove-ffmpeg-from-nightly]
╰─>$ flatpak run --command=sh org.freedesktop.Sdk//25.08
[📦 org.freedesktop.Sdk ~]$ find / -name "config.sub"
find: ‘/proc/tty/driver’: Permission denied
/usr/share/autoconf/build-aux/config.sub
/usr/share/libtool/build-aux/config.sub
/usr/share/automake-1.18/config.sub
[📦 org.freedesktop.Sdk ~]$ exit
exit
┬─[geopjr@UwU:~/P/clapper]─[09:51:06 PM]─[G:feat/remove-ffmpeg-from-nightly]
╰─>$ flatpak run --command=sh org.freedesktop.Sdk//24.08
[📦 org.freedesktop.Sdk ~]$ find / -name "config.sub"
find: ‘/proc/tty/driver’: Permission denied
/usr/share/autoconf/build-aux/config.sub
/usr/share/automake-1.16/config.sub
/usr/share/libtool/build-aux/config.sub
/usr/share/gnu-config/config.sub
[📦 org.freedesktop.Sdk ~]$ exit

GeopJr avatar Oct 10 '25 18:10 GeopJr

bundled libav with the gnu-config files here for the sake of testing, not sure what's the way forward add a gnu config module? just add the files to the libav manifest?

edit:

uchardet with min cmake >=3.5 hasn't made it into a release yet https://gitlab.freedesktop.org/uchardet/uchardet/-/commit/6e163c978a7c13a6d3ff64a1e3dd4ba81d2d9e09, bundled

edit 2:

savannah managed to die when downloading a single file.... yeah bundling these is the way to go

GeopJr avatar Oct 10 '25 19:10 GeopJr

I think we can just use configs from automake you found. Should be easy change from:

"cp -fp /usr/share/gnu-config/config.{sub,guess} ."

to:

"cp -fp /usr/share/automake-*/config.{sub,guess} ."

Rafostar avatar Oct 11 '25 12:10 Rafostar

welp, no idea on why libgstsvtav1 is failing. I suspected gst-libav-stop-caching-codecs.patch which points to ffmpeg-full but removing it didn't seem to fix anything. FWIW those codecs are under:

[📦 dev.geopjr.Tuba ~]$ find / -name "libavcodec*"
find: ‘/proc/tty/driver’: Permission denied
/usr/lib/x86_64-linux-gnu/libavcodec.so.61.19.101
/usr/lib/x86_64-linux-gnu/codecs-extra/lib/libavcodec.so.61.19.101
/usr/lib/x86_64-linux-gnu/codecs-extra/lib/libavcodec.so.61
/usr/lib/x86_64-linux-gnu/libavcodec.so.61
[📦 dev.geopjr.Tuba ~]$ find / -name "libavformat*"
find: ‘/proc/tty/driver’: Permission denied
/usr/lib/x86_64-linux-gnu/libavformat.so.61
/usr/lib/x86_64-linux-gnu/libavformat.so.61.7.100
/usr/lib/x86_64-linux-gnu/codecs-extra/lib/libavformat.so.61
/usr/lib/x86_64-linux-gnu/codecs-extra/lib/libavformat.so.61.7.100
[📦 dev.geopjr.Tuba ~]$ find / -name "libswscale*"
find: ‘/proc/tty/driver’: Permission denied
/usr/lib/x86_64-linux-gnu/libswscale.so.8.3.100
/usr/lib/x86_64-linux-gnu/codecs-extra/lib/libswscale.so.8.3.100
/usr/lib/x86_64-linux-gnu/codecs-extra/lib/libswscale.so.8
/usr/lib/x86_64-linux-gnu/libswscale.so.8

they shouldn't need a gst_plugin_add_dependency_simple, right?

GeopJr avatar Oct 11 '25 17:10 GeopJr