Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950241 - net-im/telegram-desktop no longer builds with ffmpeg-4.x
Summary: net-im/telegram-desktop no longer builds with ffmpeg-4.x
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Esteve Varela Colominas
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-24 18:37 UTC by jovaska
Modified: 2025-02-24 21:19 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
This patch fixes building with ffmpeg-4.x and is already merged upstream (fix-old-ffmpeg-compilation.patch,3.05 KB, patch)
2025-02-24 18:38 UTC, jovaska
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jovaska 2025-02-24 18:37:33 UTC
A recent change to make net-im/telegram-desktop to depend on >=media-video/ffmpeg-6 prevents having some other packages like sci-libs/opencascade[ffmpeg] installed at the same time.

Reproducible: Always

Steps to Reproduce:
1. Attempt to emerge net-im/telegram desktop
Actual Results:  
Receive dependency conflicts if packages that require =ffmpeg-4* are installed

Expected Results:  
net-im/telegram desktop will emerge without errors

I have created a patch to fix this and it is already merged upstream: https://github.com/telegramdesktop/tdesktop/pull/28999
Comment 1 jovaska 2025-02-24 18:38:53 UTC
Created attachment 919853 [details, diff]
This patch fixes building with ffmpeg-4.x and is already merged upstream

This patch could be added to the telegram-desktop ebuilds that don't get the upstream change.
Comment 2 Paul Zander 2025-02-24 20:42:02 UTC
You do not need sci-libs/opencascade[ffmpeg].
Comment 3 Larry the Git Cow gentoo-dev 2025-02-24 21:19:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ffbd9835a61a06269c191918e0c3a33ec02ec70

commit 0ffbd9835a61a06269c191918e0c3a33ec02ec70
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2025-02-24 20:54:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-24 21:18:56 +0000

    sci-libs/opencascade: Mask ffmpeg use-flag as it's 4.x only
    
    Only builds with ffmpeg-4.x, upstream has no timeline to fix it.
    Fringe usage only to play audio. Which most consumers (freecad, vtk)
    don't do. Mask so the unsuspecting user with ffmpeg in global USE isn't
    restricted to ancient ffmpeg.
    
    Bug: https://bugs.gentoo.org/834422
    Bug: https://bugs.gentoo.org/950241
    See-Also: https://tracker.dev.opencascade.org/view.php?id=32871
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/40739
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/base/package.use.mask | 8 ++++++++
 1 file changed, 8 insertions(+)