Skip to content

kde-apps/kdenlive: drop forced X from ffmpeg dep in 26.11.90 - #1105

Closed
srohmen wants to merge 1 commit into
gentoo:masterfrom
srohmen:kdenlive-ffmpeg-no-x
Closed

srohmen wants to merge 1 commit into
gentoo:masterfrom
srohmen:kdenlive-ffmpeg-no-x

Conversation

@srohmen

@srohmen srohmen commented Nov 28, 2026

Copy link
Copy Markdown

The ffmpeg dependency forced the X use-flag of media-video/ffmpeg, which pulls X11 libraries into the dependency tree even on Wayland-only systems.

The forced [X] flag is unnecessary: kdenlive works without it. This is an in-place edit of the 26.11.90 ebuild (no revision bump), intended to be carried over into the next release ebuild.

Tested: kdenlive-26.11.90 with the X-free ffmpeg dependency builds and works (starts, renders) on a Wayland system.
Test source: https://github.com/srohmen/localhorst

The ffmpeg dependency forced the X use-flag, pulling X11 libraries
into the dependency tree even on Wayland-only systems. kdenlive's
ffmpeg usage (encode, libass, sdl) does not require it.

Signed-off-by: Stephan Rohmen <s.rohmen@gmx.de>
@thesamesam

Copy link
Copy Markdown
Member

I'd be a bit happier with some history digging first.

@a17r

a17r commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

That much I did, seems the usedep was there from the beginning when added as new package in KDE overlay.

When I look at the extent of header use from ffmpeg, I wonder what else we could drop:

src/otio/otioutil.cpp:#include <libavcodec/avcodec.h>
src/otio/otioutil.cpp:#include <libavformat/avformat.h>
src/jobs/audiolevels/generators.cpp:#include <libavcodec/avcodec.h>
src/jobs/audiolevels/generators.cpp:#include <libavformat/avformat.h>
src/jobs/audiolevels/generators.cpp:#include <libavutil/audio_fifo.h>
src/jobs/audiolevels/generators.cpp:#include <libavutil/channel_layout.h>
src/jobs/audiolevels/generators.cpp:#include <libavutil/samplefmt.h>
src/main.cpp:#include <libavutil/avutil.h>

cmake/modules/FindFFmpeg.cmake:  find_component(AVCODEC     libavcodec     avcodec     libavcodec/avcodec.h)
cmake/modules/FindFFmpeg.cmake:  find_component(AVFILTER    libavfilter    avfilter    libavfilter/avfilter.h)
cmake/modules/FindFFmpeg.cmake:  find_component(AVFORMAT    libavformat    avformat    libavformat/avformat.h)
cmake/modules/FindFFmpeg.cmake:  find_component(AVDEVICE    libavdevice    avdevice    libavdevice/avdevice.h)
cmake/modules/FindFFmpeg.cmake:  find_component(AVUTIL      libavutil      avutil      libavutil/avutil.h)

@a17r

a17r commented Nov 30, 2026

Copy link
Copy Markdown
Member

@ionenwks what do you think?

@eli-schwartz

Copy link
Copy Markdown
Member

Other PRs to ::gentoo don't follow the pull request template?

@ionenwks

Copy link
Copy Markdown
Contributor

what do you think?

Never used kdenlive but the only reason I can think of that a package may want to depend on ffmpeg[X] is for screencapture on X, but that is more of a optfeature-type and shouldn't be needed at build time that I'm aware of. If so, worst case a rare minimalist X user with global USE=-X using kdenlive for screencapture, may wonder why it doesn't work...

@ionenwks

Copy link
Copy Markdown
Contributor

Oh ftr, just noticed this depend on [sdl] too looking at the commit message.

Note that ffmpeg[sdl] is only useful to have ffmpeg build the ffplay binary (it's a minimal/test media player), if kdenlive doesn't actually call ffplay anywhere, this can be dropped too. Just thought the dependency was weird.

@a17r

a17r commented Nov 30, 2026

Copy link
Copy Markdown
Member

haha, it actually does use ffplay. "recommended for some preview jobs"

gentoo-bot pushed a commit that referenced this pull request Nov 30, 2026
…usage

See also: #1105

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants