Bug 503622

Summary: Upgrade KDE Flatpak runtime 5.15-23.08 fails with "Error: operand type mismatch for `shr'"
Product: [Developer tools] Qt/KDE Flatpak Runtime Reporter: Francois Carpentier (Francewhoa) <compost.idu_20230512_063308>
Component: generalAssignee: Aleix Pol <aleixpol>
Status: RESOLVED NOT A BUG    
Severity: normal CC: aacid, compost.idu_20230512_063308
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
URL: https://github.com/smplayer-dev/smplayer/issues/1170
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Francois Carpentier (Francewhoa) 2025-05-01 16:31:45 UTC
SUMMARY


STEPS TO REPRODUCE
1. As a maintainer of this SMPlayer Flatpak at https://flathub.org/apps/info.smplayer.SMPlayer try to upgrade its KDE Flatpak Runtime from 5.15-23.08 to a presently supported and secured version. For example, but not limited to DE Flatpak Runtime 6.9.

--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---

OBSERVED RESULT

According to smplayer-dev, after the steps to reproduce above, the upgrade fails

>org.kde.Platform 5.15-24.08 fails to build ffmpeg.
>
>./libavcodec/x86/mathops.h: Assembler messages:
>./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
>
>If I try to use a newer version of ffmpeg fails as well, with other errors.

Source at https://github.com/smplayer-dev/smplayer/issues/1170#issuecomment-2844679664

--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---

EXPECTED RESULT

Flatpak Runtime upgrades from 5.15-23.08 to a presently supported and secured version. For example, but not limited to DE Flatpak Runtime 6.9. Without error message.

--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---

SOFTWARE/OS VERSIONS

Windows: TBD
macOS: TBD
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: TBD
KDE Plasma Version: TBD
KDE Frameworks Version: TBD
Qt Version: TBD

--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---

ADDITIONAL INFORMATION

I created this present ticket as an end-user of KDE Flatpak Runtime used by https://flathub.org/apps/info.smplayer.SMPlayer

I'm not a developer. I'm not the maintainer of https://flathub.org/apps/info.smplayer.SMPlayer 

I created this ticket on behalf of smplayer-dev. Who can be contacted at https://github.com/smplayer-dev/smplayer/issues/1170#issuecomment-2844679664


---

The related challenge is that when end-user try to update https://flathub.org/apps/info.smplayer.SMPlayer 
this warning message is display:
>Info: runtime org.kde.Platform branch 5.15-23.08 is end-of-life, with reason:
>We strongly recommend moving to the latest Qt 5.15-based stable version of the Platform and SDK
>Info: applications using this runtime:
>info.smplayer.SMPlayer

Thus, the need to upgrade the KDE Runtime from 5.15-23.08 to a newer and presently supported version. Details at https://github.com/smplayer-dev/smplayer/issues/1170

For those not familiar with Flatpak commands, to get the present latest version of all available Flatpak runtimes, using a terminal, execute this command `flatpak remote-ls`


---


Documentation KDE Flatpak:

* Summary and introduction to runtimes at https://docs.flatpak.org/en/latest/available-runtimes.html#kde
* Big picture at https://community.kde.org/Guidelines_and_HOWTOs/Flatpak
    * https://develop.kde.org/docs/packaging/flatpak/
* Detail and code repo https://invent.kde.org/packaging/flatpak-kde-runtime
* List of all Flatpak commands at https://docs.flatpak.org/en/latest/flatpak-command-reference.html

---

Related ticket in this SMPlayer Flatpak repository at https://github.com/flathub/info.smplayer.SMPlayer/issues/9

This is a note to myself: ID_T2E2T2C4
Comment 1 Francois Carpentier (Francewhoa) 2025-05-01 16:52:45 UTC
Related comment from smplayer-dev 4 hours ago

>It seems that io.qt.qtwebkit.BaseApp 5.15-24.08 doesn't exist. 
>If I try to install version 23.08 then it says that org.kde.Platform//5.15-23.08 is end-of-life. 
>So it seems an update it's not possible.

Source at https://github.com/smplayer-dev/smplayer/issues/1170
Comment 2 Albert Astals Cid 2025-05-02 21:45:31 UTC
I am sorry we're not here to help anyone build ffmpeg, get inspired by others, there's multiple examples out there.

> It seems that io.qt.qtwebkit.BaseApp 5.15-24.08 doesn't exist.

We do not maintain that, but qtwebkit has been dead for ages, so makes sense that it is not available.
Comment 3 Francois Carpentier (Francewhoa) 2025-05-02 22:27:09 UTC
Hello @Albert Astals Cid, Thanks for your reply. 

@All, For those interested and available to resolve this challenge about building ffmpeg, I passed on your reply at https://github.com/smplayer-dev/smplayer/issues/1170#issuecomment-2848213946