From 0938f25dc906413ebf54a3e22cd2ebebec79c196 Mon Sep 17 00:00:00 2001 From: prasanth Date: Fri, 16 Oct 2026 09:53:02 +0900 Subject: [PATCH] libcamera: build with 64-bit time_t 64-bit time was turned off for all of libcamera because v4l2-compat. libcamera fixed this upstream in v0.3.0 by also undefining _TIME_BITS for v4l2-compat (commit 705601 "v4l2: Unset _TIME_BITS in addition to _FILE_OFFSET_BITS"), so the workaround is no longer needed. v4l2-compat.so still uses 32-bit APIs on purpose, so keep the 32bit-time QA skip for it. Signed-off-by: Prasanth R Signed-off-by: Khem Raj --- .../recipes-multimedia/libcamera/libcamera_0.7.2.bb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.2.bb b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.2.bb index 22e1058459..624ca1e33e 100644 --- a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.2.bb +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.2.bb @@ -95,10 +95,8 @@ FILES:${PN}-compliance = "${bindir}/lc-compliance" FILES:${PN}-gst = "${libdir}/gstreamer-1.0" FILES:${PN}-pycamera = "${PYTHON_SITEPACKAGES_DIR}/libcamera" -# libcamera-v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to -# both 32 and 64 bit file APIs. -GLIBC_64BIT_TIME_FLAGS = "" - +# v4l2-compat.so is built with 32-bit file and time APIs on purpose, so it +# can wrap both the 32 and 64-bit calls. The rest of libcamera uses 64-bit time. INSANE_SKIP += "32bit-time" CXXFLAGS += "-Wno-error=array-bounds"