Skip to contentSkip to conversation

Qt6 related fixes

PATCH Applied Thomas Petazzoni via buildroot 1 participant 9 messages May 16, 2025 – Jun 3, 2025

lore
Share & tools
lore
#0 lore raw

cover Qt6 related fixes

Hello,

This is a small series extracted from Roy's Qt6 series at:

https://patchwork.ozlabs.org/project/buildroot/list/?series=456986

but from which we extract only the fixes, to which we made some improvements, and added two more fixes that were needed to get everything to build.

Hopefully we can merge those fixes quickly, and then move on to merging the Qt6 bump itself.

Thomas

Roy Kollen Svendsen (2):
package/qt6/qt6base: fix build when xcb support is enabled package/qt6/qt6multimedia: fix ffmpeg plugin build for x11

Thomas Petazzoni (2):
package/qt6/qt6multimedia: ffmpeg support needs headers >= 5.2 package/ffmpeg: bump to latest commit in 6.1.x branch

 ...lpdsp_armv5te-fix-label-format-to-wo.patch | 63 -------------------
 package/ffmpeg/ffmpeg.hash                    |  2 +-
 package/ffmpeg/ffmpeg.mk                      |  8 ++-
 package/qt6/qt6base/Config.in                 |  1 +
 package/qt6/qt6base/qt6base.mk                |  1 +
 package/qt6/qt6multimedia/Config.in           | 12 ++++
 package/qt6/qt6multimedia/qt6multimedia.mk    |  6 ++
 7 files changed, 26 insertions(+), 67 deletions(-)
 delete mode 100644 package/ffmpeg/0008-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch
Signature · 6 lines
2.49.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 1/4 package/qt6/qt6base: fix build when xcb support is enabled

From: Roy Kollen Svendsen <[email protected]>

Fixes:
ERROR: Feature "xcb": Forcing to "ON" breaks its condition:
QT_FEATURE_thread AND TARGET XCB::XCB AND TEST_xcb_syslibs AND QT_FEATURE_xkbcommon_x11 Condition values dump:
QT_FEATURE_thread = "ON"
TARGET XCB::XCB found
TEST_xcb_syslibs = "FALSE"
QT_FEATURE_xkbcommon_x11 not evaluated

The xcb feature is defined in [2].

According to [1] XCB::CURSOR is needed for xcb support.

[1] https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/configure.cmake?h=6.9.0#n522
[2] https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/configure.cmake?h=6.9.0#n1016

This bug was introduced in e634be8906bd64d6a9de1768204d0f03d8d8357a, and fixes the build with the following defconfig:

BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV7_EABIHF_MUSL_STABLE=y BR2_PACKAGE_QT6=y
BR2_PACKAGE_QT6BASE_GUI=y BR2_PACKAGE_QT6BASE_XCB=y
BR2_PACKAGE_XORG7=y

---
 package/qt6/qt6base/Config.in  | 1 +
 package/qt6/qt6base/qt6base.mk | 1 +
 2 files changed, 2 insertions(+)
package/qt6/qt6base/Config.in +1 -0
index 96a0416dbd..7f3948ec27 100644
@@ -61,6 +61,7 @@ config BR2_PACKAGE_QT6BASE_XCB
 	depends on BR2_PACKAGE_XORG7
 	select BR2_PACKAGE_XLIB_LIBX11
 	select BR2_PACKAGE_LIBXCB
+	select BR2_PACKAGE_XCB_UTIL_CURSOR
 	select BR2_PACKAGE_XCB_UTIL_IMAGE
 	select BR2_PACKAGE_XCB_UTIL_KEYSYMS
 	select BR2_PACKAGE_XCB_UTIL_RENDERUTIL
package/qt6/qt6base/qt6base.mk +1 -0
index a4c56da601..39fb440be7 100644
@@ -211,6 +211,7 @@ QT6BASE_CONF_OPTS += \
 QT6BASE_DEPENDENCIES += \
 	libxcb \
 	libxkbcommon \
+	xcb-util-cursor \
 	xcb-util-wm \
 	xcb-util-image \
 	xcb-util-keysyms \
Signature · 6 lines
2.49.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

PATCH 2/4 package/qt6/qt6multimedia: fix ffmpeg plugin build for x11

In reply to Thomas Petazzoni via buildroot

From: Roy Kollen Svendsen <[email protected]>

The following defconfig:

BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV7_EABIHF_MUSL_STABLE=y BR2_PACKAGE_QT6=y
BR2_PACKAGE_QT6BASE_XCB=y BR2_PACKAGE_QT6MULTIMEDIA=y BR2_PACKAGE_QT6MULTIMEDIA_FFMPEG=y BR2_PACKAGE_XORG7=y

would fail to build, due to <X11/extensions/Xext.h> being not found, and then <X11/extensions/Xrandr.h> being not found. Fix that up by introducing the necessary dependencies.

There are no build failures reported for qt6multimedia in the autobuilders, so there is no reference to a build failure.

---
 package/qt6/qt6multimedia/Config.in        | 5 +++++
 package/qt6/qt6multimedia/qt6multimedia.mk | 6 ++++++
 2 files changed, 11 insertions(+)
package/qt6/qt6multimedia/Config.in +5 -0
index ae555f98ea..3107caa597 100644
@@ -38,6 +38,11 @@ config BR2_PACKAGE_QT6MULTIMEDIA_FFMPEG
 	select BR2_PACKAGE_FFMPEG_SWSCALE
 	select BR2_PACKAGE_QT6BASE_CONCURRENT
 	select BR2_PACKAGE_QT6MULTIMEDIA_PULSEAUDIO
+	# libxext/libxrandr are needed for ffmpeg plugin to build with
+	# X11 support:
+	# https://code.qt.io/cgit/qt/qtmultimedia.git/tree/src/plugins/multimedia/ffmpeg/CMakeLists.txt?h=6.8.1#n198
+	select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XLIB_LIBXRANDR if BR2_PACKAGE_XORG7
 	help
 	  This option enables ffmpeg media backend.
 
package/qt6/qt6multimedia/qt6multimedia.mk +6 -0
index 98ab2ec4be..c2a9d250cf 100644
@@ -66,6 +66,12 @@ endif
 ifeq ($(BR2_PACKAGE_QT6MULTIMEDIA_FFMPEG),y)
 QT6MULTIMEDIA_CONF_OPTS += -DFEATURE_ffmpeg=ON
 QT6MULTIMEDIA_DEPENDENCIES += ffmpeg
+# libxext/libxrandr are needed for ffmpeg plugin to build with X11
+# support:
+# https://code.qt.io/cgit/qt/qtmultimedia.git/tree/src/plugins/multimedia/ffmpeg/CMakeLists.txt?h=6.8.1#n198
+ifeq ($(BR2_PACKAGE_XORG7),y)
+QT6MULTIMEDIA_DEPENDENCIES += xlib_libXext xlib_libXrandr
+endif
 else
 QT6MULTIMEDIA_CONF_OPTS += -DFEATURE_ffmpeg=OFF
 endif
Signature · 6 lines
2.49.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Re: [Buildroot] [PATCH 2/4] package/qt6/qt6multimedia: fix ffmpeg plugin build for x11

Quoted 20 lines · Thomas Petazzoni via buildroot

From: Roy Kollen Svendsen <[email protected]>

The following defconfig:

BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV7_EABIHF_MUSL_STABLE=y BR2_PACKAGE_QT6=y
BR2_PACKAGE_QT6BASE_XCB=y BR2_PACKAGE_QT6MULTIMEDIA=y BR2_PACKAGE_QT6MULTIMEDIA_FFMPEG=y BR2_PACKAGE_XORG7=y

would fail to build, due to <X11/extensions/Xext.h> being not found, and then <X11/extensions/Xrandr.h> being not found. Fix that up by introducing the necessary dependencies.

Quoted 5 lines

There are no build failures reported for qt6multimedia in the autobuilders, so there is no reference to a build failure.

Applied to 2025.02.x, thanks.

Regards,
Arnout

Quoted 28 lines
---
  package/qt6/qt6multimedia/Config.in        | 5 +++++
  package/qt6/qt6multimedia/qt6multimedia.mk | 6 ++++++
  2 files changed, 11 insertions(+)
package/qt6/qt6multimedia/Config.in +5 -0
index ae555f98ea..3107caa597 100644
@@ -38,6 +38,11 @@ config BR2_PACKAGE_QT6MULTIMEDIA_FFMPEG
  	select BR2_PACKAGE_FFMPEG_SWSCALE
  	select BR2_PACKAGE_QT6BASE_CONCURRENT
  	select BR2_PACKAGE_QT6MULTIMEDIA_PULSEAUDIO
+	# libxext/libxrandr are needed for ffmpeg plugin to build with
+	# X11 support:
+	# https://code.qt.io/cgit/qt/qtmultimedia.git/tree/src/plugins/multimedia/ffmpeg/CMakeLists.txt?h=6.8.1#n198
+	select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XLIB_LIBXRANDR if BR2_PACKAGE_XORG7
  	help
  	  This option enables ffmpeg media backend.
 
package/qt6/qt6multimedia/qt6multimedia.mk +0 -0
index 98ab2ec4be..c2a9d250cf 100644
@@ -66,6 +66,12 @@ endif
  ifeq ($(BR2_PACKAGE_QT6MULTIMEDIA_FFMPEG),y)
  QT6MULTIMEDIA_CONF_OPTS += -DFEATURE_ffmpeg=ON

package/qt6/qt6multimedia/qt6multimedia.mk endif · line 77

Quoted 10 lines
package/qt6/qt6multimedia/qt6multimedia.mk +6 -0
  QT6MULTIMEDIA_DEPENDENCIES += ffmpeg
+# libxext/libxrandr are needed for ffmpeg plugin to build with X11
+# support:
+# https://code.qt.io/cgit/qt/qtmultimedia.git/tree/src/plugins/multimedia/ffmpeg/CMakeLists.txt?h=6.8.1#n198
+ifeq ($(BR2_PACKAGE_XORG7),y)
+QT6MULTIMEDIA_DEPENDENCIES += xlib_libXext xlib_libXrandr
+endif
  else
  QT6MULTIMEDIA_CONF_OPTS += -DFEATURE_ffmpeg=OFF
  endif

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw

PATCH 3/4 package/qt6/qt6multimedia: ffmpeg support needs headers >= 5.2

In reply to Thomas Petazzoni via buildroot

The V4L2 code in the ffmpeg plugin uses V4L2_PIX_FMT_BGRA32 which was only introduced in kernel headers 5.2, in upstream kernel commit e25ec9141114c7124eeba09385e272dd76fbe617.

Fixes:

/home/thomas/buildroot/buildroot/outputs/qt/build/qt6multimedia-6.8.1/src/plugins/multimedia/ffmpeg/qv4l2camera.cpp:36:43: error: ‘V4L2_PIX_FMT_BGRA 32’ was not declared in this scope; did you mean ‘V4L2_PIX_FMT_BGR32’?

   36 |     { QVideoFrameFormat::Format_BGRA8888, V4L2_PIX_FMT_BGRA32  },
      |                                           ^~~~~~~~~~~~~~~~~~~
      |                                           V4L2_PIX_FMT_BGR32

when building:

BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV7_EABIHF_MUSL_STABLE=y BR2_PACKAGE_QT6=y
BR2_PACKAGE_QT6BASE_XCB=y BR2_PACKAGE_QT6MULTIMEDIA=y BR2_PACKAGE_QT6MULTIMEDIA_FFMPEG=y BR2_PACKAGE_XORG7=y

at a time when the Bootlin stable toolchain was using Linux 4.19 headers.

---
 package/qt6/qt6multimedia/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)
package/qt6/qt6multimedia/Config.in +7 -0
index 3107caa597..f64f60a004 100644
@@ -28,10 +28,17 @@ config BR2_PACKAGE_QT6MULTIMEDIA_EXAMPLES
 	help
 	  This option enables the Qt6 Multimedia examples.
 
+comment "ffmpeg plugin needs kernel headers >= 5.2"
+	depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
+	depends on BR2_PACKAGE_PULSEAUDIO_HAS_ATOMIC
+	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
+
 config BR2_PACKAGE_QT6MULTIMEDIA_FFMPEG
 	bool "ffmpeg plugin"
 	depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
 	depends on BR2_PACKAGE_PULSEAUDIO_HAS_ATOMIC
+	# V4L2_PIX_FMT_BGRA32
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
 	# qt6-multimedia ffmpeg plugin needs
 	# qt6base-concurrent, PulseAudio and ffmpeg-swcale.
 	select BR2_PACKAGE_FFMPEG
Signature · 6 lines
2.49.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

Re: [Buildroot] [PATCH 3/4] package/qt6/qt6multimedia: ffmpeg support needs headers >= 5.2

Quoted 26 lines · Thomas Petazzoni via buildroot

The V4L2 code in the ffmpeg plugin uses V4L2_PIX_FMT_BGRA32 which was only introduced in kernel headers 5.2, in upstream kernel commit e25ec9141114c7124eeba09385e272dd76fbe617.

Fixes:

/home/thomas/buildroot/buildroot/outputs/qt/build/qt6multimedia-6.8.1/src/plugins/multimedia/ffmpeg/qv4l2camera.cpp:36:43: error: ‘V4L2_PIX_FMT_BGRA 32’ was not declared in this scope; did you mean ‘V4L2_PIX_FMT_BGR32’?

    36 |     { QVideoFrameFormat::Format_BGRA8888, V4L2_PIX_FMT_BGRA32  },
       |                                           ^~~~~~~~~~~~~~~~~~~
       |                                           V4L2_PIX_FMT_BGR32

when building:

BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV7_EABIHF_MUSL_STABLE=y BR2_PACKAGE_QT6=y
BR2_PACKAGE_QT6BASE_XCB=y BR2_PACKAGE_QT6MULTIMEDIA=y BR2_PACKAGE_QT6MULTIMEDIA_FFMPEG=y BR2_PACKAGE_XORG7=y

Quoted 4 lines

at a time when the Bootlin stable toolchain was using Linux 4.19 headers.

Applied to 2025.02.x, thanks.

Regards,
Arnout

Quoted 16 lines
---
  package/qt6/qt6multimedia/Config.in | 7 +++++++
  1 file changed, 7 insertions(+)
package/qt6/qt6multimedia/Config.in +4 -0
index 3107caa597..f64f60a004 100644
@@ -28,10 +28,17 @@ config BR2_PACKAGE_QT6MULTIMEDIA_EXAMPLES
  	help
  	  This option enables the Qt6 Multimedia examples.
 
+comment "ffmpeg plugin needs kernel headers >= 5.2"
+	depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
+	depends on BR2_PACKAGE_PULSEAUDIO_HAS_ATOMIC
+	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2

package/qt6/qt6multimedia/Config.in config BR2_PACKAGE_QT6MULTIMEDIA_EXAMPLES · line 44

Quoted 10 lines
package/qt6/qt6multimedia/Config.in +3 -0
+
  config BR2_PACKAGE_QT6MULTIMEDIA_FFMPEG
  	bool "ffmpeg plugin"
  	depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
  	depends on BR2_PACKAGE_PULSEAUDIO_HAS_ATOMIC
+	# V4L2_PIX_FMT_BGRA32
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
  	# qt6-multimedia ffmpeg plugin needs
  	# qt6base-concurrent, PulseAudio and ffmpeg-swcale.
  	select BR2_PACKAGE_FFMPEG

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#6 lore raw

PATCH 4/4 package/ffmpeg: bump to latest commit in 6.1.x branch

In reply to Thomas Petazzoni via buildroot

Version 6.1.2 of ffmpeg fails to build with GCC 14.x due to the V4L2 ioctl code:

libavdevice/v4l2.c:137:17: error: assignment to ‘int (*)(int, long unsigned int, ...)’ from incompatible pointer type ‘int (*)(int, int, ...)’ [-W incompatible-pointer-types]

  137 |     s->ioctl_f  = prefix ## ioctl;      \
      |                 ^
libavdevice/v4l2.c:151:9: note: in expansion of macro ‘SET_WRAPPERS’
  151 |         SET_WRAPPERS();
      |         ^~~~~~~~~~~~

This has been fixed upstream in the release/6.1 branch, which has 27 fixes on top of 6.1.2. The commits necessary to fix our issue are:

f71076c009f84917e7a0f2f1ece86b718de2d8d3 configure: improve check for POSIX ioctl 60593d6c06c9b610359bd6af26a268feff1293eb configure: restore autodetection of v4l2 and fbdev

However, since all other commits are fixes, we believe bumping to the latest commit in the release/6.1 branch is a better idea.

This allows to drop 0008-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch, which is upstream as of:

4c688845a50f7dce3af9afebe60f0f7a493c4f07 libavcodec/arm/mlpdsp_armv5te: fix label format to work with binutils 2.43

Note that we set FFMPEG_CPE_ID_VERSION to get proper CVE matching even with FFMPEG_VERSION being set to n6.1.2-27-ge16ff06adb. One who have ideally set FFMPEG_VERSION to n$(FFMPEG_CPE_ID_VERSION)-ge16ff06adb, but that makes check-package unhappy with:

WARNING: package/ffmpeg/ffmpeg.mk:7: expecting package version to be set before CPE_ID_VERSION

Fixes:

https://autobuild.buildroot.net/results/fe1574443acd50ca7e576bb4beb24467be1713e3/

---
 ...lpdsp_armv5te-fix-label-format-to-wo.patch | 63 -------------------
 package/ffmpeg/ffmpeg.hash                    |  2 +-
 package/ffmpeg/ffmpeg.mk                      |  8 ++-
 3 files changed, 6 insertions(+), 67 deletions(-)
 delete mode 100644 package/ffmpeg/0008-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch
package/ffmpeg/0008-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch deleted +0 -63
deleted file mode 100644
index 178ffbc33b..0000000000
@@ -1,63 +0,0 @@
-From 4c688845a50f7dce3af9afebe60f0f7a493c4f07 Mon Sep 17 00:00:00 2001
-From: Ross Burton <[email protected]>
-Date: Fri, 9 Aug 2024 11:32:00 +0100
-Subject: [PATCH] libavcodec/arm/mlpdsp_armv5te: fix label format to work with
- binutils 2.43
-MIME-Version: 1.0
-Content-Type: text/plain; charset=utf8
-Content-Transfer-Encoding: 8bit
-
-binutils 2.43 has stricter validation for labels[1] and results in errors
-when building ffmpeg for armv5:
-
-src/libavcodec/arm/mlpdsp_armv5te.S:232: Error: junk at end of line, first unrecognized character is `0'
-
-Remove the leading zero in the "01" label to resolve this error.
-
-[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=226749d5a6ff0d5c607d6428d6c81e1e7e7a994b
-
-Signed-off-by: Ross Burton <[email protected]>
-Signed-off-by: Martin Storsjö <[email protected]>
-(cherry picked from commit 654bd47716c4f36719fb0f3f7fd8386d5ed0b916)
-
-Upstream: http://git.videolan.org/?p=ffmpeg.git;a=commit;h=4c688845a50f7dce3af9afebe60f0f7a493c4f07
-
-Signed-off-by: Bernd Kuhls <[email protected]>
----
- libavcodec/arm/mlpdsp_armv5te.S | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/libavcodec/arm/mlpdsp_armv5te.S b/libavcodec/arm/mlpdsp_armv5te.S
-index 4f9aa485fd..d31568611c 100644
---- a/libavcodec/arm/mlpdsp_armv5te.S
-+++ b/libavcodec/arm/mlpdsp_armv5te.S
-@@ -229,7 +229,7 @@ A .endif
-   .endif
- 
-         // Begin loop
--01:
-+1:
-   .if TOTAL_TAPS == 0
-         // Things simplify a lot in this case
-         // In fact this could be pipelined further if it's worth it...
-@@ -241,7 +241,7 @@ A .endif
-         str     ST0, [PST, #-4]!
-         str     ST0, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)]
-         str     ST0, [PSAMP], #4 * MAX_CHANNELS
--        bne     01b
-+        bne     1b
-   .else
-     .if \fir_taps & 1
-       .set LOAD_REG, 1
-@@ -333,7 +333,7 @@ T       orr     AC0, AC0, AC1
-         str     ST3, [PST, #-4]!
-         str     ST2, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)]
-         str     ST3, [PSAMP], #4 * MAX_CHANNELS
--        bne     01b
-+        bne     1b
-   .endif
-         b       99f
- 
--- 
-2.30.2
-
package/ffmpeg/ffmpeg.hash +1 -1
index 630bd70c56..50498a6ba9 100644
@@ -1,5 +1,5 @@
 # Locally calculated
-sha256  3b624649725ecdc565c903ca6643d41f33bd49239922e45c9b1442c63dca4e38  ffmpeg-6.1.2.tar.xz
+sha256  f0b2b07c7014b7aa8c4689095b83a49a85d41887049fc5302543aec0bef7d066  ffmpeg-n6.1.2-27-ge16ff06adb-git4.tar.gz
 sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING.GPLv2
 sha256  b634ab5640e258563c536e658cad87080553df6f34f62269a21d554844e58bfe  COPYING.LGPLv2.1
 sha256  cb48bf09a11f5fb576cddb0431c8f5ed0a60157a9ec942adffc13907cbe083f2  LICENSE.md
package/ffmpeg/ffmpeg.mk +5 -3
index 799201c820..5c00ba2dff 100644
@@ -4,10 +4,12 @@
 #
 ################################################################################
 
-FFMPEG_VERSION = 6.1.2
-FFMPEG_SOURCE = ffmpeg-$(FFMPEG_VERSION).tar.xz
-FFMPEG_SITE = https://ffmpeg.org/releases
+# Update FFMPEG_CPE_ID_VERSION if needed
+FFMPEG_VERSION = n6.1.2-27-ge16ff06adb
+FFMPEG_SITE = https://git.ffmpeg.org/ffmpeg.git
+FFMPEG_SITE_METHOD = git
 FFMPEG_INSTALL_STAGING = YES
+FFMPEG_CPE_ID_VERSION = 6.1.2
 
 FFMPEG_LICENSE = LGPL-2.1+, libjpeg license
 FFMPEG_LICENSE_FILES = LICENSE.md COPYING.LGPLv2.1
Signature · 6 lines
2.49.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw

Re: [Buildroot] [PATCH 4/4] package/ffmpeg: bump to latest commit in 6.1.x branch

Quoted 31 lines · Thomas Petazzoni via buildroot

Version 6.1.2 of ffmpeg fails to build with GCC 14.x due to the V4L2 ioctl code:

libavdevice/v4l2.c:137:17: error: assignment to ‘int (*)(int, long unsigned int, ...)’ from incompatible pointer type ‘int (*)(int, int, ...)’ [-W incompatible-pointer-types]

   137 |     s->ioctl_f  = prefix ## ioctl;      \
       |                 ^
libavdevice/v4l2.c:151:9: note: in expansion of macro ‘SET_WRAPPERS’
   151 |         SET_WRAPPERS();
       |         ^~~~~~~~~~~~

This has been fixed upstream in the release/6.1 branch, which has 27 fixes on top of 6.1.2. The commits necessary to fix our issue are:

f71076c009f84917e7a0f2f1ece86b718de2d8d3 configure: improve check for POSIX ioctl 60593d6c06c9b610359bd6af26a268feff1293eb configure: restore autodetection of v4l2 and fbdev

However, since all other commits are fixes, we believe bumping to the latest commit in the release/6.1 branch is a better idea.

This allows to drop 0008-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch, which is upstream as of:

4c688845a50f7dce3af9afebe60f0f7a493c4f07 libavcodec/arm/mlpdsp_armv5te: fix label format to work with binutils 2.43

Note that we set FFMPEG_CPE_ID_VERSION to get proper CVE matching even with FFMPEG_VERSION being set to n6.1.2-27-ge16ff06adb. One who have ideally set FFMPEG_VERSION to n$(FFMPEG_CPE_ID_VERSION)-ge16ff06adb, but that makes check-package unhappy with:

Quoted 7 lines

WARNING: package/ffmpeg/ffmpeg.mk:7: expecting package version to be set before CPE_ID_VERSION

Fixes:

   https://autobuild.buildroot.net/results/fe1574443acd50ca7e576bb4beb24467be1713e3/

Applied to 2025.02.x, thanks.

Regards,
Arnout

Quoted 97 lines
---
  ...lpdsp_armv5te-fix-label-format-to-wo.patch | 63 -------------------
  package/ffmpeg/ffmpeg.hash                    |  2 +-
  package/ffmpeg/ffmpeg.mk                      |  8 ++-
  3 files changed, 6 insertions(+), 67 deletions(-)

delete mode 100644 package/ffmpeg/0008-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch

package/ffmpeg/0008-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch deleted +0 -63
deleted file mode 100644
index 178ffbc33b..0000000000
@@ -1,63 +0,0 @@
-From 4c688845a50f7dce3af9afebe60f0f7a493c4f07 Mon Sep 17 00:00:00 2001
-From: Ross Burton <[email protected]>
-Date: Fri, 9 Aug 2024 11:32:00 +0100
-Subject: [PATCH] libavcodec/arm/mlpdsp_armv5te: fix label format to work with
- binutils 2.43
-MIME-Version: 1.0
-Content-Type: text/plain; charset=utf8
-Content-Transfer-Encoding: 8bit
-
-binutils 2.43 has stricter validation for labels[1] and results in errors
-when building ffmpeg for armv5:
-
-src/libavcodec/arm/mlpdsp_armv5te.S:232: Error: junk at end of line, first unrecognized character is `0'
-
-Remove the leading zero in the "01" label to resolve this error.
-
-[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=226749d5a6ff0d5c607d6428d6c81e1e7e7a994b
-
-Signed-off-by: Ross Burton <[email protected]>
-Signed-off-by: Martin Storsjö <[email protected]>
-(cherry picked from commit 654bd47716c4f36719fb0f3f7fd8386d5ed0b916)
-
-Upstream: http://git.videolan.org/?p=ffmpeg.git;a=commit;h=4c688845a50f7dce3af9afebe60f0f7a493c4f07
-
-Signed-off-by: Bernd Kuhls <[email protected]>
----
- libavcodec/arm/mlpdsp_armv5te.S | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/libavcodec/arm/mlpdsp_armv5te.S b/libavcodec/arm/mlpdsp_armv5te.S
-index 4f9aa485fd..d31568611c 100644
---- a/libavcodec/arm/mlpdsp_armv5te.S
-+++ b/libavcodec/arm/mlpdsp_armv5te.S
-@@ -229,7 +229,7 @@ A .endif
-   .endif
-
-         // Begin loop
--01:
-+1:
-   .if TOTAL_TAPS == 0
-         // Things simplify a lot in this case
-         // In fact this could be pipelined further if it's worth it...
-@@ -241,7 +241,7 @@ A .endif
-         str     ST0, [PST, #-4]!
-         str     ST0, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)]
-         str     ST0, [PSAMP], #4 * MAX_CHANNELS
--        bne     01b
-+        bne     1b
-   .else
-     .if \fir_taps & 1
-       .set LOAD_REG, 1
-@@ -333,7 +333,7 @@ T       orr     AC0, AC0, AC1
-         str     ST3, [PST, #-4]!
-         str     ST2, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)]
-         str     ST3, [PSAMP], #4 * MAX_CHANNELS
--        bne     01b
-+        bne     1b
-   .endif
-         b       99f
-
---
-2.30.2
-
package/ffmpeg/ffmpeg.hash +1 -1
index 630bd70c56..50498a6ba9 100644
@@ -1,5 +1,5 @@
  # Locally calculated
-sha256  3b624649725ecdc565c903ca6643d41f33bd49239922e45c9b1442c63dca4e38  ffmpeg-6.1.2.tar.xz
+sha256  f0b2b07c7014b7aa8c4689095b83a49a85d41887049fc5302543aec0bef7d066  ffmpeg-n6.1.2-27-ge16ff06adb-git4.tar.gz
  sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING.GPLv2
  sha256  b634ab5640e258563c536e658cad87080553df6f34f62269a21d554844e58bfe  COPYING.LGPLv2.1
  sha256  cb48bf09a11f5fb576cddb0431c8f5ed0a60157a9ec942adffc13907cbe083f2  LICENSE.md
package/ffmpeg/ffmpeg.mk +0 -2
index 799201c820..5c00ba2dff 100644
@@ -4,10 +4,12 @@
  #
  ################################################################################
 
-FFMPEG_VERSION = 6.1.2
-FFMPEG_SOURCE = ffmpeg-$(FFMPEG_VERSION).tar.xz

package/ffmpeg/ffmpeg.mk line 15

Quoted 10 lines
package/ffmpeg/ffmpeg.mk +5 -1
-FFMPEG_SITE = https://ffmpeg.org/releases
+# Update FFMPEG_CPE_ID_VERSION if needed
+FFMPEG_VERSION = n6.1.2-27-ge16ff06adb
+FFMPEG_SITE = https://git.ffmpeg.org/ffmpeg.git
+FFMPEG_SITE_METHOD = git
  FFMPEG_INSTALL_STAGING = YES
+FFMPEG_CPE_ID_VERSION = 6.1.2
 
  FFMPEG_LICENSE = LGPL-2.1+, libjpeg license
  FFMPEG_LICENSE_FILES = LICENSE.md COPYING.LGPLv2.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#8 lore raw
In reply to Thomas Petazzoni via buildroot
Quoted 15 lines · Thomas Petazzoni via buildroot

Hello,

This is a small series extracted from Roy's Qt6 series at:

   https://patchwork.ozlabs.org/project/buildroot/list/?series=456986

but from which we extract only the fixes, to which we made some improvements, and added two more fixes that were needed to get everything to build.

Hopefully we can merge those fixes quickly, and then move on to merging the Qt6 bump itself.

Thomas

Quoted 7 lines

Roy Kollen Svendsen (2):
package/qt6/qt6base: fix build when xcb support is enabled package/qt6/qt6multimedia: fix ffmpeg plugin build for x11

Thomas Petazzoni (2):
package/qt6/qt6multimedia: ffmpeg support needs headers >= 5.2 package/ffmpeg: bump to latest commit in 6.1.x branch

Applied series to master, thanks.

Regards,
Arnout

Quoted 11 lines
  ...lpdsp_armv5te-fix-label-format-to-wo.patch | 63 -------------------
  package/ffmpeg/ffmpeg.hash                    |  2 +-
  package/ffmpeg/ffmpeg.mk                      |  8 ++-
  package/qt6/qt6base/Config.in                 |  1 +
  package/qt6/qt6base/qt6base.mk                |  1 +
  package/qt6/qt6multimedia/Config.in           | 12 ++++
  package/qt6/qt6multimedia/qt6multimedia.mk    |  6 ++
  7 files changed, 26 insertions(+), 67 deletions(-)

delete mode 100644 package/ffmpeg/0008-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot