vlc: upgrade 3.0.21 -> 3.0.23
PATCH 1/1 vlc: upgrade 3.0.21 -> 3.0.23
Vlc can be compiled again against modern ffmpeg - the SKIP_RECIPE tag is removed.
Drop patches that became obsolete, because the underlying problems were solved.
Was able to build it successfully with meta-qt5, and also play a video in core-image-sato.
Some (opt-in) PACKAGECONFIGs are broken (not removed as part of this patch):
- freerdp - it requires a too old freerdp codebase
- opencv - it requires a too old opencv codebase
- vdpau - compilation fails (undefined symbol av_vdpau_get_surface_parameters), not really sure about the reason
Changelog: https://github.com/videolan/vlc/blob/3.0.23/NEWS
Signed-off-by Gyorgy Sarvari <[email protected]>
---
.../0001-taglib-Fix-build-on-x86-32-bit.patch | 50 --------------
.../recipes-multimedia/vlc/vlc/taglib-2.patch | 67 -------------------
.../vlc/{vlc_3.0.21.bb => vlc_3.0.23.bb} | 16 ++---
3 files changed, 8 insertions(+), 125 deletions(-)
delete mode 100644 meta-multimedia/recipes-multimedia/vlc/vlc/0001-taglib-Fix-build-on-x86-32-bit.patch
delete mode 100644 meta-multimedia/recipes-multimedia/vlc/vlc/taglib-2.patch
rename meta-multimedia/recipes-multimedia/vlc/{vlc_3.0.21.bb => vlc_3.0.23.bb} (92%)meta-multimedia/recipes-multimedia/vlc/vlc/0001-taglib-Fix-build-on-x86-32-bit.patch deleted +0 -50
@@ -1,50 +0,0 @@ -From 5b921009b0db2c5c15aef7ce241d3c81f9c272c9 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Sat, 9 Mar 2024 12:26:39 -0800 -Subject: [PATCH] taglib: Fix build on x86 32-bit - -While compiling with clang, there are errors seen such as -on function override signature mismatches - -meta_engine/taglib.cpp:240:10: error: virtual function 'tell' has a different return type ('long') than the function it overrides (which has return type 'offset_t' (aka 'long long')) - 240 | long tell() const - | ~~~~ ^ -/mnt/b/yoe/master/build/tmp/work/core2-32-yoe-linux/vlc/3.0.20/recipe-sysroot/usr/include/taglib/tiostream.h:156:22: note: overridden virtual function is here - 156 | virtual offset_t tell() const = 0; - | ~~~~~~~~ ^ -meta_engine/taglib.cpp:245:10: error: virtual function 'length' has a different return type ('long') than the function it overrides (which has return type 'offset_t' (aka 'long long')) - 245 | long length() - | ~~~~ ^ -/mnt/b/yoe/master/build/tmp/work/core2-32-yoe-linux/vlc/3.0.20/recipe-sysroot/usr/include/taglib/tiostream.h:161:22: note: overridden virtual function is here - 161 | virtual offset_t length() = 0; - | ~~~~~~~~ ^ - -Upstream-Status: Submitted [https://mailman.videolan.org/pipermail/vlc-devel/2024-March/143639.html] -Signed-off-by: Khem Raj <[email protected]> ---- - modules/meta_engine/taglib.cpp | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp -index f371485008..129fdf55f1 100644 ---- a/modules/meta_engine/taglib.cpp -+++ b/modules/meta_engine/taglib.cpp -@@ -237,12 +237,12 @@ public: - return; - } - -- long tell() const -+ offset_t tell() const - { -- return m_previousPos; -+ return (offset_t)m_previousPos; - } - -- long length() -+ offset_t length() - { - uint64_t i_size; - if (vlc_stream_GetSize( m_stream, &i_size ) != VLC_SUCCESS) --- -2.44.0 -
meta-multimedia/recipes-multimedia/vlc/vlc/taglib-2.patch deleted +0 -67
67 lines not on this page · raw message
meta-multimedia/recipes-multimedia/vlc/vlc_3.0.23.bb renamed from meta-multimedia/recipes-multimedia/vlc/vlc_3.0.21.bb +8 -8
@@ -23,10 +23,8 @@ SRC_URI = "https://get.videolan.org/${BPN}/${PV}/${BP}.tar.xz \ file://0004-Use-packageconfig-to-detect-mmal-support.patch \ file://0005-ioctl-does-not-have-same-signature-between-glibc-and.patch \ file://0006-configure-Disable-incompatible-function-pointer-type.patch \ - file://taglib-2.patch \ - file://0001-taglib-Fix-build-on-x86-32-bit.patch \ " -SRC_URI[sha256sum] = "24dbbe1d7dfaeea0994d5def0bbde200177347136dbfe573f5b6a4cee25afbb0" +SRC_URI[sha256sum] = "e891cae6aa3ccda69bf94173d5105cbc55c7a7d9b1d21b9b21666e69eff3e7e0" inherit autotools-brokensep features_check gettext pkgconfig mime-xdg REQUIRED_DISTRO_FEATURES = "x11"
@@ -44,7 +42,6 @@ EXTRA_OECONF = "\ --without-contrib \ --without-kde-solid \ --enable-realrtsp \ - --disable-libtar \ --enable-avcodec \ ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/moc \ ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/rcc \
@@ -94,7 +91,12 @@ PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver" PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama" PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng" PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau" -PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland wayland-native" +PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland wayland-native wayland-protocols" + +do_configure:prepend() { + # use wayland-scanner from native sysroot instead of build host + sed -i 's,\(WAYLAND_SCANNER=\).*,\1${STAGING_BINDIR_NATIVE}/wayland-scanner,' configure.ac +} do_configure:append() { # moc needs support: precreate build paths
@@ -117,7 +119,7 @@ FILES:${PN} += "\ ${datadir}/applications \ ${datadir}/vlc/ \ ${datadir}/icons \ - ${datadir}/metainfo/vlc.appdata.xml \ + ${datadir}/metainfo/org.videolan.vlc.appdata.xml \ " FILES:${PN}-dbg += "\
@@ -132,5 +134,3 @@ FILES:${PN}-staticdev += "\ INSANE_SKIP:${PN} = "dev-so" EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "0", "1", d)}" - -SKIP_RECIPE[vlc] = "requires porting to ffmpeg >= 7 as of ffmpeg >= 5 it requires extensive changes disabling VAAPI (only supported with vlc >= 4)"