Bug 296939 - multimedia/vlc: upgrade to 3.0.23 and switch to Qt6
Summary: multimedia/vlc: upgrade to 3.0.23 and switch to Qt6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Max Brazhnikov
URL: https://code.videolan.org/videolan/vl...
Keywords:
Depends on:
Blocks:
 
Reported: 2026-07-20 21:21 UTC by Thierry Thomas
Modified: 2026-08-18 11:23 UTC (History)
4 users (show)

See Also:
makc: maintainer-feedback+


Attachments
Upgrade VLC to 3.0.23 and switch to Qt6 (29.38 KB, patch)
2026-07-20 21:21 UTC, Thierry Thomas
no flags Details | Diff
Update to 3.0.23, allow to build with Qt6, default to Qt5 (25.94 KB, patch)
2026-08-04 21:31 UTC, Max Brazhnikov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry Thomas freebsd_committer freebsd_triage 2026-07-20 21:21:58 UTC
Created attachment 273035 [details]
Upgrade VLC to 3.0.23 and switch to Qt6

Upgrade VLC to 3.0.23 and switch to Qt6.

Release notes at https://code.videolan.org/videolan/vlc/-/tags/3.0.23

Remark: wayland is disabled by default.
Comment 1 Max Brazhnikov freebsd_committer freebsd_triage 2026-08-02 16:50:14 UTC
What's the purpose of patch-configure.ac and patch-modules_gui_qt_qt6.pro patches? Are you backporting Qt6 support to 3.0.23?
Comment 2 Max Brazhnikov freebsd_committer freebsd_triage 2026-08-02 16:52:00 UTC
Release notes suggests that Qt6 is already supported.
Comment 3 Thierry Thomas freebsd_committer freebsd_triage 2026-08-02 17:49:44 UTC
(In reply to Max Brazhnikov from comment #2)
Yes, they said that, but actually it seems that only the code supports Qt6.
The build environment seems not ready - at least I have not been able to build it without these patches.
Comment 4 Max Brazhnikov freebsd_committer freebsd_triage 2026-08-03 10:41:01 UTC
It probably could be build with less patching. Let me check it.
Comment 5 Max Brazhnikov freebsd_committer freebsd_triage 2026-08-03 21:47:16 UTC
Unfortunately Qt6 version is defective. At the first glance:
VLC fails to load files from the Recent Media menu;
switching between tabs does not work in the Simple Preferences.

I think about adding Qt6 option without removing Qt5 support and making Qt5 the default one. What do you think?
Comment 6 Thierry Thomas freebsd_committer freebsd_triage 2026-08-04 06:52:31 UTC
(In reply to Max Brazhnikov from comment #5)
Yes, we can do that for the moment.
Have you been able to simplify the patches?
Comment 7 Max Brazhnikov freebsd_committer freebsd_triage 2026-08-04 21:31:34 UTC
Created attachment 273467 [details]
Update to 3.0.23, allow to build with Qt6, default to Qt5

Difference from the previous patch:
Removed requirement for autoreconf (patching configure directly for Qt6 build)
Removed bogus DEBUG option
Added QT option which requires either QT5 or QT6.

Please test whether it works for you.
Comment 8 Thierry Thomas freebsd_committer freebsd_triage 2026-08-05 08:10:35 UTC
Great!

But why don't you set Qt6 by default? (it was the original aim of this PR)
Comment 9 Max Brazhnikov freebsd_committer freebsd_triage 2026-08-10 17:23:33 UTC
(In reply to Thierry Thomas from comment #8)
> But why don't you set Qt6 by default? (it was the original aim of this PR)
VLC/Qt6 is not usable, see my notes in https://bugs.freebsd.org/296939#c5
Comment 10 commit-hook freebsd_committer freebsd_triage 2026-08-11 14:41:05 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=03699b0de7a3cd995d346a816674d6710a8f4603

commit 03699b0de7a3cd995d346a816674d6710a8f4603
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2026-08-11 14:40:21 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2026-08-11 14:40:21 +0000

    multimedia/vlc: Update to 3.0.23

    - Allow to build with Qt 6 (experimental). Add general QT option and
      QT5/QT6 radio switch.
    - Enable FRIBIDI by default (required by HARFBUZZ).
    - Remove DEBUG from OPTIONS, respect WITH_DEBUG instead.
    - Do not silence commands.

    Release notes: https://code.videolan.org/videolan/vlc/-/tags/3.0.23

    PR:             296939
    Co-authored-by: Max Brazhnikov <makc@FreeBSD.org>

 multimedia/vlc/Makefile                            |  78 +++--
 multimedia/vlc/distinfo                            |   6 +-
 multimedia/vlc/files/patch-modules_access_rdp.c    |  14 +-
 .../vlc/files/patch-modules_gui_qt_qt6.pro (new)   |  13 +
 multimedia/vlc/files/patch-share_Makefile.in       |   4 +-
 multimedia/vlc/files/patch-src-network-udp.c       |   4 +-
 .../vlc/files/vlc-3.0.22-ffmpeg8.patch (gone)      | 324 ---------------------
 multimedia/vlc/pkg-plist                           |   2 +-
 8 files changed, 77 insertions(+), 368 deletions(-)
Comment 11 commit-hook freebsd_committer freebsd_triage 2026-08-18 11:03:00 UTC
A commit in branch 2026Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5db01aa057d9fb7194ca23a9f342fae7c10463a1

commit 5db01aa057d9fb7194ca23a9f342fae7c10463a1
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2026-08-11 14:40:21 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2026-08-18 11:00:41 +0000

    multimedia/vlc: Update to 3.0.23

    - Allow to build with Qt 6 (experimental). Add general QT option and
      QT5/QT6 radio switch.
    - Enable FRIBIDI by default (required by HARFBUZZ).
    - Remove DEBUG from OPTIONS, respect WITH_DEBUG instead.
    - Do not silence commands.

    Release notes: https://code.videolan.org/videolan/vlc/-/tags/3.0.23

    PR:             296939
    Co-authored-by: Max Brazhnikov <makc@FreeBSD.org>
    (cherry picked from commit 03699b0de7a3cd995d346a816674d6710a8f4603)

 multimedia/vlc/Makefile                            |  78 +++--
 multimedia/vlc/distinfo                            |   6 +-
 multimedia/vlc/files/patch-modules_access_rdp.c    |  14 +-
 .../vlc/files/patch-modules_gui_qt_qt6.pro (new)   |  13 +
 multimedia/vlc/files/patch-share_Makefile.in       |   4 +-
 multimedia/vlc/files/patch-src-network-udp.c       |   4 +-
 .../vlc/files/vlc-3.0.22-ffmpeg8.patch (gone)      | 324 ---------------------
 multimedia/vlc/pkg-plist                           |   2 +-
 8 files changed, 77 insertions(+), 368 deletions(-)